enju_biblio 0.1.3 → 0.2.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +3 -3
- data/app/controllers/agent_import_files_controller.rb +13 -3
- data/app/controllers/agent_import_results_controller.rb +12 -1
- data/app/controllers/agent_merge_lists_controller.rb +11 -1
- data/app/controllers/agent_merges_controller.rb +12 -2
- data/app/controllers/agent_relationship_types_controller.rb +13 -2
- data/app/controllers/agent_relationships_controller.rb +13 -4
- data/app/controllers/agent_types_controller.rb +13 -2
- data/app/controllers/agents_controller.rb +18 -12
- data/app/controllers/carrier_types_controller.rb +12 -2
- data/app/controllers/concerns/enju_biblio/controller.rb +99 -0
- data/app/controllers/content_types_controller.rb +12 -1
- data/app/controllers/countries_controller.rb +12 -1
- data/app/controllers/create_types_controller.rb +13 -2
- data/app/controllers/creates_controller.rb +13 -4
- data/app/controllers/donates_controller.rb +11 -1
- data/app/controllers/form_of_works_controller.rb +13 -2
- data/app/controllers/frequencies_controller.rb +13 -2
- data/app/controllers/identifier_types_controller.rb +13 -2
- data/app/controllers/import_requests_controller.rb +19 -9
- data/app/controllers/items_controller.rb +25 -13
- data/app/controllers/languages_controller.rb +12 -1
- data/app/controllers/licenses_controller.rb +13 -2
- data/app/controllers/manifestation_relationship_types_controller.rb +12 -1
- data/app/controllers/manifestation_relationships_controller.rb +13 -4
- data/app/controllers/manifestations_controller.rb +58 -30
- data/app/controllers/medium_of_performances_controller.rb +13 -2
- data/app/controllers/owns_controller.rb +12 -3
- data/app/controllers/picture_files_controller.rb +13 -3
- data/app/controllers/produce_types_controller.rb +13 -2
- data/app/controllers/produces_controller.rb +13 -4
- data/app/controllers/realize_types_controller.rb +13 -2
- data/app/controllers/realizes_controller.rb +13 -4
- data/app/controllers/resource_export_files_controller.rb +13 -3
- data/app/controllers/resource_import_files_controller.rb +14 -4
- data/app/controllers/resource_import_results_controller.rb +12 -1
- data/app/controllers/series_statement_merge_lists_controller.rb +11 -1
- data/app/controllers/series_statement_merges_controller.rb +12 -2
- data/app/controllers/series_statements_controller.rb +13 -5
- data/app/helpers/manifestations_helper.rb +8 -8
- data/app/jobs/agent_import_file_job.rb +7 -0
- data/app/jobs/resource_export_file_job.rb +7 -0
- data/app/jobs/resource_import_file_job.rb +7 -0
- data/app/models/agent.rb +23 -1
- data/app/models/agent_import_file.rb +0 -1
- data/app/models/carrier_type.rb +0 -1
- data/app/models/identifier.rb +1 -1
- data/app/models/item.rb +2 -9
- data/app/models/manifestation.rb +180 -75
- data/app/models/picture_file.rb +1 -1
- data/app/models/resource_export_file.rb +5 -3
- data/app/models/resource_import_file.rb +34 -50
- data/app/models/series_statement.rb +8 -1
- data/app/policies/agent_import_file_policy.rb +21 -0
- data/app/policies/agent_import_result_policy.rb +21 -0
- data/app/policies/agent_merge_list_policy.rb +25 -0
- data/app/policies/agent_merge_policy.rb +25 -0
- data/app/policies/agent_policy.rb +30 -0
- data/app/policies/agent_relationship_policy.rb +21 -0
- data/app/policies/agent_relationship_type_policy.rb +21 -0
- data/app/policies/agent_type_policy.rb +23 -0
- data/app/policies/carrier_type_policy.rb +23 -0
- data/app/policies/content_type_policy.rb +23 -0
- data/app/policies/country_policy.rb +21 -0
- data/app/policies/create_policy.rb +21 -0
- data/app/policies/create_type_policy.rb +21 -0
- data/app/policies/donate_policy.rb +21 -0
- data/app/policies/form_of_work_policy.rb +21 -0
- data/app/policies/frequency_policy.rb +23 -0
- data/app/policies/identifier_type_policy.rb +23 -0
- data/app/policies/import_request_policy.rb +21 -0
- data/app/policies/item_policy.rb +27 -0
- data/app/policies/language_policy.rb +21 -0
- data/app/policies/license_policy.rb +21 -0
- data/app/policies/manifestation_policy.rb +67 -0
- data/app/policies/manifestation_relationship_policy.rb +21 -0
- data/app/policies/manifestation_relationship_type_policy.rb +21 -0
- data/app/policies/medium_of_performance_policy.rb +21 -0
- data/app/policies/own_policy.rb +21 -0
- data/app/policies/picture_file_policy.rb +32 -0
- data/app/policies/produce_policy.rb +21 -0
- data/app/policies/produce_type_policy.rb +21 -0
- data/app/policies/realize_policy.rb +21 -0
- data/app/policies/realize_type_policy.rb +21 -0
- data/app/policies/resource_export_file_policy.rb +21 -0
- data/app/policies/resource_import_file_policy.rb +21 -0
- data/app/policies/resource_import_result_policy.rb +21 -0
- data/app/policies/series_statement_merge_list_policy.rb +25 -0
- data/app/policies/series_statement_merge_policy.rb +25 -0
- data/app/policies/series_statement_policy.rb +25 -0
- data/app/views/agent_relationship_types/index.html.erb +4 -4
- data/app/views/agent_types/index.html.erb +4 -4
- data/app/views/agent_types/show.html.erb +1 -1
- data/app/views/agents/_agent.html.erb +2 -2
- data/app/views/agents/_index.html.erb +1 -1
- data/app/views/agents/_index_agent.html.erb +4 -4
- data/app/views/agents/_index_agent_merge_list.html.erb +2 -2
- data/app/views/agents/_index_expression.html.erb +3 -3
- data/app/views/agents/_index_manifestation.html.erb +3 -3
- data/app/views/agents/_index_work.html.erb +3 -3
- data/app/views/agents/edit.html.erb +1 -1
- data/app/views/agents/{index.mobile.erb → index.html+phone.erb} +0 -0
- data/app/views/agents/index.json.jbuilder +5 -0
- data/app/views/agents/index.rss.builder +2 -2
- data/app/views/agents/{show.mobile.erb → show.html+phone.erb} +0 -0
- data/app/views/agents/show.html.erb +3 -3
- data/app/views/carrier_types/_form.html.erb +1 -1
- data/app/views/carrier_types/index.html.erb +4 -4
- data/app/views/carrier_types/show.html.erb +1 -1
- data/app/views/content_types/index.html.erb +4 -4
- data/app/views/content_types/show.html.erb +1 -1
- data/app/views/countries/index.html.erb +3 -3
- data/app/views/countries/show.html.erb +1 -1
- data/app/views/create_types/index.html.erb +4 -4
- data/app/views/creates/_index.html.erb +2 -2
- data/app/views/creates/_index_agent.html.erb +3 -3
- data/app/views/creates/_index_work.html.erb +2 -2
- data/app/views/donates/index.html.erb +2 -2
- data/app/views/form_of_works/index.html.erb +4 -4
- data/app/views/form_of_works/show.html.erb +1 -1
- data/app/views/frequencies/index.html.erb +4 -4
- data/app/views/frequencies/show.html.erb +1 -1
- data/app/views/identifier_types/index.html.erb +4 -4
- data/app/views/identifier_types/show.html.erb +1 -1
- data/app/views/import_requests/index.html.erb +1 -1
- data/app/views/items/{_shelf_picture.mobile.erb → _shelf_picture.html+phone.erb} +0 -0
- data/app/views/items/edit.html.erb +2 -2
- data/app/views/items/{index.mobile.erb → index.html+phone.erb} +1 -1
- data/app/views/items/index.html.erb +2 -2
- data/app/views/items/new.html.erb +1 -5
- data/app/views/items/{show.mobile.erb → show.html+phone.erb} +0 -0
- data/app/views/items/show.html.erb +10 -6
- data/app/views/languages/index.html.erb +3 -3
- data/app/views/languages/show.html.erb +1 -1
- data/app/views/layouts/{agents.mobile.erb → agents.html+phone.erb} +1 -1
- data/app/views/layouts/agents.html.erb +2 -2
- data/app/views/layouts/{manifestations.mobile.erb → manifestations.html+phone.erb} +1 -1
- data/app/views/layouts/manifestations.html.erb +2 -2
- data/app/views/licenses/index.html.erb +4 -4
- data/app/views/manifestation_relationship_types/index.html.erb +4 -4
- data/app/views/manifestations/_attachment_file.html.erb +1 -1
- data/app/views/manifestations/_carrier_type_facet.html.erb +1 -1
- data/app/views/manifestations/_classification_facet.html.erb +2 -2
- data/app/views/manifestations/_contributor_fields.html.erb +4 -0
- data/app/views/manifestations/_creator_fields.html.erb +5 -0
- data/app/views/manifestations/_edit_detail.html.erb +1 -1
- data/app/views/manifestations/_export_list.html.erb +3 -3
- data/app/views/manifestations/_form.html.erb +25 -30
- data/app/views/manifestations/_holding.html.erb +6 -8
- data/app/views/manifestations/_identifier_fields.html.erb +5 -0
- data/app/views/manifestations/_index_form_contributor.html.erb +2 -2
- data/app/views/manifestations/_index_form_creator.html.erb +2 -2
- data/app/views/manifestations/_index_form_item.html.erb +2 -2
- data/app/views/manifestations/_index_form_manifestation.html.erb +2 -2
- data/app/views/manifestations/_index_form_parent.html.erb +1 -1
- data/app/views/manifestations/_index_form_publisher.html.erb +2 -2
- data/app/views/manifestations/_index_form_series_statement.html.erb +2 -2
- data/app/views/manifestations/_language_facet.html.erb +1 -1
- data/app/views/manifestations/_library_facet.html.erb +1 -1
- data/app/views/manifestations/_manifestation.html.erb +6 -2
- data/app/views/manifestations/_manifestation.txt.erb +1 -1
- data/app/views/manifestations/_paginate_id_store.html.erb +8 -6
- data/app/views/manifestations/_pub_year_facet.html.erb +1 -1
- data/app/views/manifestations/_publisher_fields.html.erb +4 -0
- data/app/views/manifestations/_reservable_facet.html.erb +2 -2
- data/app/views/manifestations/_series_statement_fields.html.erb +13 -0
- data/app/views/manifestations/_show.rdf.builder +3 -87
- data/app/views/manifestations/{_show_creators.mobile.erb → _show_creators.html+phone.erb} +0 -0
- data/app/views/manifestations/_show_creators.html.erb +0 -1
- data/app/views/manifestations/_show_detail_librarian.html.erb +20 -22
- data/app/views/manifestations/_show_detail_user.html.erb +13 -15
- data/app/views/manifestations/{_show_holding.mobile.erb → _show_holding.html+phone.erb} +0 -0
- data/app/views/manifestations/_show_holding.html.erb +1 -1
- data/app/views/manifestations/{_show_index.mobile.erb → _show_index.html+phone.erb} +0 -0
- data/app/views/manifestations/_submenu_parent.html.erb +3 -3
- data/app/views/manifestations/{_title.mobile.erb → _title.html+phone.erb} +0 -0
- data/app/views/manifestations/edit.html.erb +2 -6
- data/app/views/manifestations/{index.mobile.erb → index.html+phone.erb} +0 -0
- data/app/views/manifestations/index.html.erb +40 -24
- data/app/views/manifestations/index.rdf.builder +5 -3
- data/app/views/manifestations/index.rss.builder +2 -2
- data/app/views/manifestations/index.txt.erb +1 -2
- data/app/views/manifestations/{show.mobile.erb → show.html+phone.erb} +1 -1
- data/app/views/manifestations/show.html.erb +1 -1
- data/app/views/manifestations/show.txt.erb +1 -2
- data/app/views/medium_of_performances/index.html.erb +4 -4
- data/app/views/owns/index.html.erb +2 -2
- data/app/views/picture_files/_index.html.erb +3 -3
- data/app/views/picture_files/_index_agent.html.erb +4 -4
- data/app/views/picture_files/_index_manifestation.html.erb +4 -4
- data/app/views/picture_files/{_link.mobile.erb → _link.html+phone.erb} +0 -0
- data/app/views/picture_files/{show.mobile.erb → show.html+phone.erb} +0 -0
- data/app/views/produce_types/index.html.erb +4 -4
- data/app/views/produces/_index.html.erb +2 -2
- data/app/views/produces/_index_agent.html.erb +2 -2
- data/app/views/produces/_index_manifestation.html.erb +2 -2
- data/app/views/realize_types/index.html.erb +4 -4
- data/app/views/realizes/_index.html.erb +2 -2
- data/app/views/realizes/_index_agent.html.erb +2 -2
- data/app/views/realizes/_index_expression.html.erb +2 -2
- data/app/views/series_statement_merges/show.html.erb +0 -2
- data/app/views/series_statements/_index.html.erb +4 -4
- data/app/views/series_statements/_index_series_statement_merge_list.html.erb +2 -2
- data/app/views/series_statements/show.html.erb +1 -1
- data/config/locales/translation_en.yml +13 -0
- data/config/locales/translation_ja.yml +13 -0
- data/config/routes.rb +3 -43
- data/lib/enju_biblio/engine.rb +0 -1
- data/lib/enju_biblio/version.rb +1 -1
- data/lib/enju_biblio.rb +0 -107
- data/lib/tasks/enju_biblio_tasks.rake +1 -1
- data/spec/cassette_library/ImportRequest/import/should_import_bibliographic_record.yml +43 -43
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_isbn_which_is_already_imported/redirects_to_the_created_import_request.yml +45 -45
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml +50 -50
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/redirects_to_the_created_import_request.yml +44 -44
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml +48 -48
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/redirects_to_the_created_import_request.yml +41 -41
- data/spec/cassette_library/ResourceImportFile/should_import_in_background.yml +50 -50
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/ISBN_import/with_record_not_found/should_record_an_error_message.yml +49 -49
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_has_only_isbn/should_be_imported.yml +45 -45
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_shift_jis/should_be_imported.yml +50 -50
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_be_imported.yml +48 -48
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_be_searchable_right_after_the_import.yml +512 -0
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_send_message_when_import_is_completed.yml +42 -42
- data/spec/controllers/agent_import_files_controller_spec.rb +5 -5
- data/spec/controllers/agent_import_results_controller_spec.rb +3 -3
- data/spec/controllers/agent_merge_lists_controller_spec.rb +9 -9
- data/spec/controllers/agent_merges_controller_spec.rb +9 -9
- data/spec/controllers/agent_relationship_types_controller_spec.rb +14 -14
- data/spec/controllers/agent_relationships_controller_spec.rb +9 -9
- data/spec/controllers/agent_types_controller_spec.rb +2 -2
- data/spec/controllers/agents_controller_spec.rb +8 -8
- data/spec/controllers/carrier_types_controller_spec.rb +1 -1
- data/spec/controllers/content_types_controller_spec.rb +1 -1
- data/spec/controllers/countries_controller_spec.rb +10 -10
- data/spec/controllers/create_types_controller_spec.rb +2 -2
- data/spec/controllers/creates_controller_spec.rb +7 -7
- data/spec/controllers/donates_controller_spec.rb +9 -9
- data/spec/controllers/form_of_works_controller_spec.rb +2 -2
- data/spec/controllers/frequencies_controller_spec.rb +2 -2
- data/spec/controllers/identifier_types_controller_spec.rb +2 -2
- data/spec/controllers/import_requests_controller_spec.rb +9 -9
- data/spec/controllers/items_controller_spec.rb +13 -7
- data/spec/controllers/languages_controller_spec.rb +8 -8
- data/spec/controllers/licenses_controller_spec.rb +2 -2
- data/spec/controllers/manifestation_relationship_types_controller_spec.rb +10 -10
- data/spec/controllers/manifestation_relationships_controller_spec.rb +9 -9
- data/spec/controllers/manifestations_controller_spec.rb +86 -12
- data/spec/controllers/medium_of_performances_controller_spec.rb +2 -2
- data/spec/controllers/owns_controller_spec.rb +7 -7
- data/spec/controllers/picture_files_controller_spec.rb +9 -9
- data/spec/controllers/produce_types_controller_spec.rb +2 -2
- data/spec/controllers/produces_controller_spec.rb +7 -7
- data/spec/controllers/realize_types_controller_spec.rb +2 -2
- data/spec/controllers/realizes_controller_spec.rb +7 -7
- data/spec/controllers/resource_export_files_controller_spec.rb +9 -15
- data/spec/controllers/resource_import_files_controller_spec.rb +7 -7
- data/spec/controllers/resource_import_results_controller_spec.rb +3 -3
- data/spec/controllers/series_statement_merge_lists_controller_spec.rb +9 -9
- data/spec/controllers/series_statement_merges_controller_spec.rb +9 -9
- data/spec/controllers/series_statements_controller_spec.rb +7 -7
- data/spec/dummy/app/assets/javascripts/application.js +0 -2
- data/spec/dummy/app/controllers/application_controller.rb +10 -6
- data/spec/dummy/app/models/user.rb +4 -4
- data/spec/dummy/config/application.rb +13 -41
- data/spec/dummy/config/environments/development.rb +22 -18
- data/spec/dummy/config/environments/production.rb +46 -34
- data/spec/dummy/config/environments/test.rb +19 -14
- data/spec/dummy/config/initializers/assets.rb +1 -1
- data/spec/dummy/config/initializers/enju_leaf.rb +8 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/db/migrate/20150924115059_create_withdraws.rb +13 -0
- data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +13 -0
- data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +9 -0
- data/spec/dummy/db/schema.rb +27 -2
- data/spec/factories/classification_type.rb +5 -0
- data/spec/factories/reserve.rb +12 -0
- data/spec/factories/role.rb +9 -0
- data/spec/factories/subject.rb +7 -0
- data/spec/factories/subject_heading_type.rb +5 -0
- data/spec/factories/subject_heading_type_has_subject.rb +6 -0
- data/spec/factories/subject_type.rb +5 -0
- data/spec/fixtures/checked_items.yml +4 -4
- data/spec/fixtures/checkouts.yml +12 -12
- data/spec/fixtures/classification_types.yml +1 -1
- data/spec/fixtures/classifications.yml +1 -0
- data/spec/fixtures/manifestations.yml +4 -4
- data/spec/fixtures/reserves.yml +16 -16
- data/spec/fixtures/subjects.yml +79 -0
- data/spec/models/agent_import_file_spec.rb +1 -1
- data/spec/models/manifestation_spec.rb +27 -13
- data/spec/models/resource_export_file_spec.rb +15 -2
- data/spec/models/resource_import_file_spec.rb +29 -9
- data/spec/models/series_statement_merge_list_spec.rb +1 -1
- data/spec/policies/manifestation_policy_spec.rb +24 -0
- data/spec/rails_helper.rb +82 -0
- data/spec/spec_helper.rb +81 -56
- data/spec/support/devise.rb +2 -2
- data/spec/support/vcr.rb +8 -0
- data/spec/views/agent_types/index.html.erb_spec.rb +2 -1
- data/spec/views/agent_types/show.html.erb_spec.rb +1 -0
- data/spec/views/create_types/index.html.erb_spec.rb +2 -1
- data/spec/views/creates/edit.html.erb_spec.rb +0 -3
- data/spec/views/creates/index.html.erb_spec.rb +2 -4
- data/spec/views/creates/new.html.erb_spec.rb +0 -3
- data/spec/views/creates/show.html.erb_spec.rb +0 -3
- data/spec/views/import_requests/index.html.erb_spec.rb +3 -2
- data/spec/views/manifestations/index.html.erb_spec.rb +25 -0
- data/spec/views/manifestations/index.rdf.builder_spec.rb +23 -0
- data/spec/views/manifestations/index.txt.erb_spec.rb +17 -0
- data/spec/views/manifestations/show.html.erb_spec.rb +2 -3
- data/spec/views/manifestations/show.txt.erb_spec.rb +16 -0
- data/spec/views/owns/edit.html.erb_spec.rb +0 -3
- data/spec/views/owns/index.html.erb_spec.rb +2 -4
- data/spec/views/owns/new.html.erb_spec.rb +0 -3
- data/spec/views/owns/show.html.erb_spec.rb +0 -3
- data/spec/views/produce_types/index.html.erb_spec.rb +2 -1
- data/spec/views/produces/edit.html.erb_spec.rb +0 -3
- data/spec/views/produces/index.html.erb_spec.rb +2 -4
- data/spec/views/produces/new.html.erb_spec.rb +0 -3
- data/spec/views/produces/show.html.erb_spec.rb +0 -3
- data/spec/views/realize_types/index.html.erb_spec.rb +2 -1
- data/spec/views/realizes/edit.html.erb_spec.rb +0 -3
- data/spec/views/realizes/index.html.erb_spec.rb +2 -4
- data/spec/views/realizes/new.html.erb_spec.rb +0 -3
- data/spec/views/realizes/show.html.erb_spec.rb +0 -3
- data/spec/views/resource_import_files/index.html.erb_spec.rb +0 -3
- data/spec/views/resource_import_files/{show.html.erb_spec.erb → show.html.erb_spec.rb} +0 -3
- data/spec/views/resource_import_results/index.html.erb_spec.rb +0 -3
- data/spec/views/resource_import_results/{show.html.erb_spec.erb → show.html.erb_spec.rb} +1 -4
- data/spec/views/series_statement_merge_lists/index.html.erb_spec.rb +1 -1
- data/spec/views/series_statement_merges/edit.html.erb_spec.rb +0 -3
- data/spec/views/series_statement_merges/index.html.erb_spec.rb +0 -3
- data/spec/views/series_statement_merges/new.html.erb_spec.rb +0 -3
- data/spec/views/series_statement_merges/show.html.erb_spec.rb +0 -3
- metadata +170 -131
- data/app/models/enju_biblio/ability.rb +0 -238
- data/app/workers/agent_import_file_queue.rb +0 -7
- data/app/workers/resource_export_file_queue.rb +0 -7
- data/app/workers/resource_import_file_queue.rb +0 -7
- data/spec/dummy/config/application.yml +0 -42
@@ -18,7 +18,7 @@
|
|
18
18
|
<%- @form_of_works.each do |form_of_work| -%>
|
19
19
|
<tr class="line<%= cycle("0", "1") -%>">
|
20
20
|
<td>
|
21
|
-
<%- if
|
21
|
+
<%- if policy(form_of_work).update? -%>
|
22
22
|
<%= move_position(form_of_work) -%>
|
23
23
|
<%- end -%>
|
24
24
|
</td>
|
@@ -29,10 +29,10 @@
|
|
29
29
|
<%= form_of_work.note %>
|
30
30
|
</td>
|
31
31
|
<td>
|
32
|
-
<%- if
|
32
|
+
<%- if policy(form_of_work).update? -%>
|
33
33
|
<%= link_to t('page.edit'), edit_form_of_work_path(form_of_work) -%>
|
34
34
|
<% end %>
|
35
|
-
<%- if
|
35
|
+
<%- if policy(form_of_work).destroy? -%>
|
36
36
|
<%= link_to t('page.destroy'), form_of_work_path(form_of_work), data: {confirm: t('page.are_you_sure')}, method: :delete -%>
|
37
37
|
<%- end -%>
|
38
38
|
</td>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
47
47
|
<ul>
|
48
|
-
<%- if
|
48
|
+
<%- if policy(FormOfWork).create? -%>
|
49
49
|
<li><%= link_to t('page.new', model: t('activerecord.models.form_of_work')), new_form_of_work_path -%></li>
|
50
50
|
<%- end -%>
|
51
51
|
</ul>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
25
25
|
<ul>
|
26
|
-
<%- if
|
26
|
+
<%- if policy(@form_of_work).update? -%>
|
27
27
|
<li><%= link_to t('page.edit'), edit_form_of_work_path(@form_of_work) -%></li>
|
28
28
|
<%- end -%>
|
29
29
|
<li><%= back_to_index(flash[:page_info]) -%></li>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<%- @frequencies.each do |frequency| -%>
|
19
19
|
<tr class="line<%= cycle("0", "1") -%>">
|
20
20
|
<td>
|
21
|
-
<%- if
|
21
|
+
<%- if policy(frequency).update? -%>
|
22
22
|
<%= move_position(frequency) -%>
|
23
23
|
<%- end -%>
|
24
24
|
</td>
|
@@ -29,10 +29,10 @@
|
|
29
29
|
<%= frequency.note %>
|
30
30
|
</td>
|
31
31
|
<td>
|
32
|
-
<%- if
|
32
|
+
<%- if policy(frequency).update? -%>
|
33
33
|
<%= link_to t('page.edit'), edit_frequency_path(frequency) -%>
|
34
34
|
<% end %>
|
35
|
-
<%- if
|
35
|
+
<%- if policy(frequency).destroy? -%>
|
36
36
|
<%= link_to t('page.destroy'), frequency_path(frequency), data: {confirm: t('page.are_you_sure')}, method: :delete -%>
|
37
37
|
<%- end -%>
|
38
38
|
</td>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
47
47
|
<ul>
|
48
|
-
<%- if
|
48
|
+
<%- if policy(Frequency).create? -%>
|
49
49
|
<li><%= link_to t('page.new', model: t('activerecord.models.frequency')), new_frequency_path -%></li>
|
50
50
|
<%- end -%>
|
51
51
|
</ul>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
25
25
|
<ul>
|
26
|
-
<%- if
|
26
|
+
<%- if policy(@frequency).update? -%>
|
27
27
|
<li><%= link_to t('page.edit'), edit_frequency_path(@frequency) -%></li>
|
28
28
|
<%- end -%>
|
29
29
|
<li><%= back_to_index(flash[:page_info]) -%></li>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<%- @identifier_types.each do |identifier_type| -%>
|
19
19
|
<tr class="line<%= cycle("0", "1") -%>">
|
20
20
|
<td>
|
21
|
-
<%- if
|
21
|
+
<%- if policy(identifier_type).update? -%>
|
22
22
|
<%= move_position(identifier_type) -%>
|
23
23
|
<%- end -%>
|
24
24
|
</td>
|
@@ -29,10 +29,10 @@
|
|
29
29
|
<%= identifier_type.note %>
|
30
30
|
</td>
|
31
31
|
<td>
|
32
|
-
<%- if
|
32
|
+
<%- if policy(identifier_type).update? -%>
|
33
33
|
<%= link_to t('page.edit'), edit_identifier_type_path(identifier_type) -%>
|
34
34
|
<% end %>
|
35
|
-
<%- if
|
35
|
+
<%- if policy(identifier_type).destroy? -%>
|
36
36
|
<%= link_to t('page.destroy'), identifier_type_path(identifier_type), data: {confirm: t('page.are_you_sure')}, method: :delete -%>
|
37
37
|
<%- end -%>
|
38
38
|
</td>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
47
47
|
<ul>
|
48
|
-
<%- if
|
48
|
+
<%- if policy(IdentifierType).create? -%>
|
49
49
|
<li><%= link_to t('page.new', model: t('activerecord.models.identifier_type')), new_identifier_type_path -%></li>
|
50
50
|
<%- end -%>
|
51
51
|
</ul>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
25
25
|
<ul>
|
26
|
-
<%- if
|
26
|
+
<%- if policy(@identifier_type).update? -%>
|
27
27
|
<li><%= link_to t('page.edit'), edit_identifier_type_path(@identifier_type) -%></li>
|
28
28
|
<%- end -%>
|
29
29
|
<li><%= back_to_index(flash[:page_info]) -%></li>
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<td><%= localized_state(import_request.current_state) -%></td>
|
28
28
|
<td><%= link_to import_request.manifestation.original_title, import_request.manifestation if import_request.manifestation -%></td>
|
29
29
|
<td>
|
30
|
-
<%- if
|
30
|
+
<%- if policy(import_request).destroy? -%>
|
31
31
|
<%= link_to t('page.destroy'), import_request, data: {confirm: t('page.are_you_sure')}, method: :delete -%>
|
32
32
|
<%- end -%>
|
33
33
|
</td>
|
File without changes
|
@@ -9,9 +9,9 @@
|
|
9
9
|
<%= render 'manifestations/book_jacket', manifestation: @item.manifestation -%>
|
10
10
|
<ul>
|
11
11
|
<li><%= link_to t('page.show'), @item -%></li>
|
12
|
-
<% if
|
12
|
+
<% if policy(@item).destroy? %>
|
13
13
|
<li><%= link_to t('page.destroy'), @item, data: {confirm: t('page.are_you_sure')}, method: :delete -%></li>
|
14
14
|
<% end %>
|
15
|
-
<li><%= link_to t('page.back'),
|
15
|
+
<li><%= link_to t('page.back'), :back -%></li>
|
16
16
|
</ul>
|
17
17
|
</div>
|
@@ -41,7 +41,7 @@
|
|
41
41
|
<td><%= link_to item.shelf.library.display_name.localize, item.shelf.library -%></td>
|
42
42
|
<td><%= link_to item.shelf_display_name.localize, item.shelf -%></td>
|
43
43
|
<td><%= item.circulation_status.display_name.localize -%></td>
|
44
|
-
<%- if
|
44
|
+
<%- if policy(item).destroy? -%>
|
45
45
|
<td><%= link_to t('page.edit'), edit_item_path(item) -%></td>
|
46
46
|
<%- end -%>
|
47
47
|
</tr>
|
@@ -72,7 +72,7 @@
|
|
72
72
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
73
73
|
<%= render 'manifestations/book_jacket', manifestation: @manifestation if @manifestation -%>
|
74
74
|
<ul>
|
75
|
-
<%- if
|
75
|
+
<%- if policy(Item).create? and @manifestation -%>
|
76
76
|
<li><%= link_to t('page.new', model: t('activerecord.models.item')), new_item_path(manifestation_id: @manifestation.id) -%></li>
|
77
77
|
<%- end -%>
|
78
78
|
</ul>
|
@@ -83,7 +83,7 @@
|
|
83
83
|
<li><%= circulation_status_facet(facet) %></li>
|
84
84
|
<%- end -%>
|
85
85
|
<%- if params[:circulation_status] -%>
|
86
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(circulation_status: nil, page: nil, view: nil, only_path: true)) -%></li>
|
86
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.permit.merge(circulation_status: nil, page: nil, view: nil, only_path: true)) -%></li>
|
87
87
|
<%- end -%>
|
88
88
|
</ul>
|
89
89
|
<% end %>
|
@@ -11,10 +11,6 @@
|
|
11
11
|
<%- end -%>
|
12
12
|
|
13
13
|
<ul>
|
14
|
-
|
15
|
-
<li><%= link_to t('page.back'), items_path(manifestation_id: @manifestation.id) -%></li>
|
16
|
-
<%- else -%>
|
17
|
-
<li><%= link_to t('page.back'), items_path -%></li>
|
18
|
-
<%- end -%>
|
14
|
+
<li><%= link_to t('page.back'), :back %></li>
|
19
15
|
</ul>
|
20
16
|
</div>
|
File without changes
|
@@ -136,14 +136,14 @@
|
|
136
136
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
137
137
|
<%= render 'manifestations/book_jacket', manifestation: @item.manifestation -%>
|
138
138
|
<ul>
|
139
|
-
<li><%=
|
140
|
-
<% if
|
139
|
+
<li><%= link_to t('page.back'), :back -%></li>
|
140
|
+
<% if policy(@item).update? %>
|
141
141
|
<li><%= link_to t('page.edit'), edit_item_path(@item) -%></li>
|
142
142
|
<% end %>
|
143
143
|
<% if defined?(EnjuInterLibraryLoan) %>
|
144
144
|
<li><%= link_to t('page.listing', model: t('activerecord.models.inter_library_loan')), item_inter_library_loans_path(@item) -%></li>
|
145
145
|
<% end %>
|
146
|
-
<% if
|
146
|
+
<% if policy(@item).destroy? %>
|
147
147
|
<li><%= link_to t('page.destroy'), @item, data: {confirm: t('page.are_you_sure')}, method: :delete -%></li>
|
148
148
|
<% end %>
|
149
149
|
<% if defined?(EnjuInterLibraryLoan) %>
|
@@ -152,12 +152,16 @@
|
|
152
152
|
<%- end -%>
|
153
153
|
<% end %>
|
154
154
|
<% if defined?(EnjuCirculation) %>
|
155
|
-
|
156
|
-
|
155
|
+
<% if policy(LendingPolicy).index? %>
|
156
|
+
<li><%= link_to t('page.listing', model: t('activerecord.models.lending_policy')), lending_policies_path(item_id: @item.id) -%></li>
|
157
|
+
<% end %>
|
158
|
+
<% if policy(Checkout).index? %>
|
159
|
+
<li><%= link_to t('page.checkout_history'), checkouts_path(item_id: @item.id) -%></li>
|
160
|
+
<% end %>
|
157
161
|
<% end %>
|
158
162
|
</ul>
|
159
163
|
</div>
|
160
164
|
|
161
|
-
<% if
|
165
|
+
<% if policy(@item).update? %>
|
162
166
|
<%= render 'tooltip', item: @item %>
|
163
167
|
<% end %>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<%- @languages.each do |language| -%>
|
19
19
|
<tr class="line<%= cycle("0", "1") -%>">
|
20
20
|
<td>
|
21
|
-
<%- if
|
21
|
+
<%- if policy(language).update? -%>
|
22
22
|
<%= move_position(language) -%>
|
23
23
|
<%- end -%>
|
24
24
|
</td>
|
@@ -29,7 +29,7 @@
|
|
29
29
|
<td><%= language.iso_639_2 -%></td>
|
30
30
|
<td><%= language.iso_639_3 -%></td>
|
31
31
|
<td>
|
32
|
-
<%- if
|
32
|
+
<%- if policy(language).update? -%>
|
33
33
|
<%= link_to t('page.edit'), edit_language_path(language) -%>
|
34
34
|
<%- end -%>
|
35
35
|
</td>
|
@@ -42,7 +42,7 @@
|
|
42
42
|
</div>
|
43
43
|
|
44
44
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
45
|
-
<%- if
|
45
|
+
<%- if policy(Language).create? -%>
|
46
46
|
<ul>
|
47
47
|
<li><%= link_to t('page.new', model: t('activerecord.models.language')), new_language_path -%></li>
|
48
48
|
</ul>
|
@@ -43,7 +43,7 @@
|
|
43
43
|
|
44
44
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
45
45
|
<ul>
|
46
|
-
<%- if
|
46
|
+
<%- if policy(@language).update? -%>
|
47
47
|
<li><%= link_to t('page.edit'), edit_language_path(@language) -%></li>
|
48
48
|
<%- end -%>
|
49
49
|
<li><%= back_to_index(flash[:page_info]) -%></li>
|
@@ -5,8 +5,8 @@
|
|
5
5
|
<title><%= title(controller.controller_name) %></title>
|
6
6
|
<%= render 'page/include' %>
|
7
7
|
<%- if controller.action_name == 'index' -%>
|
8
|
-
<%= auto_discovery_link_tag(:rss, url_for(params.merge(format: 'rss', page: nil, commit: nil, only_path: true)), title: (t('agent.library_group_agent', library_group_name: @library_group.display_name.localize) + " (RSS)")) %>
|
9
|
-
<%= auto_discovery_link_tag(:atom, url_for(params.merge(format: 'atom', page: nil, commit: nil, only_path: true)), title: (t('agent.library_group_agent', library_group_name: @library_group.display_name.localize) + " (Atom)")) %>
|
8
|
+
<%= auto_discovery_link_tag(:rss, url_for(params.permit.merge(format: 'rss', page: nil, commit: nil, only_path: true)), title: (t('agent.library_group_agent', library_group_name: @library_group.display_name.localize) + " (RSS)")) %>
|
9
|
+
<%= auto_discovery_link_tag(:atom, url_for(params.permit.merge(format: 'atom', page: nil, commit: nil, only_path: true)), title: (t('agent.library_group_agent', library_group_name: @library_group.display_name.localize) + " (Atom)")) %>
|
10
10
|
<%- end -%>
|
11
11
|
</head>
|
12
12
|
<body>
|
@@ -5,8 +5,8 @@
|
|
5
5
|
<title><%= resource_title(@manifestation, controller.action_name) %></title>
|
6
6
|
<%= render 'page/include' %>
|
7
7
|
<%- if controller.action_name == 'index' -%>
|
8
|
-
<%= auto_discovery_link_tag(:rss, url_for(params.merge(format: :rss, page: nil, commit: nil, only_path: true)), title: (t('manifestation.library_group_manifestation', library_group_name: @library_group.display_name.localize) + " (RSS)")) %>
|
9
|
-
<%= auto_discovery_link_tag(:atom, url_for(params.merge(format: :atom, page: nil, commit: nil, only_path: true)), title: (t('manifestation.library_group_manifestation', library_group_name: @library_group.display_name.localize) + " (Atom)")) %>
|
8
|
+
<%= auto_discovery_link_tag(:rss, url_for(params.permit.merge(format: :rss, page: nil, commit: nil, only_path: true)), title: (t('manifestation.library_group_manifestation', library_group_name: @library_group.display_name.localize) + " (RSS)")) %>
|
9
|
+
<%= auto_discovery_link_tag(:atom, url_for(params.permit.merge(format: :atom, page: nil, commit: nil, only_path: true)), title: (t('manifestation.library_group_manifestation', library_group_name: @library_group.display_name.localize) + " (Atom)")) %>
|
10
10
|
<%- end -%>
|
11
11
|
<% if %w(show edit).include?(controller.action_name) %>
|
12
12
|
<%= book_jacket_header(@library_group.settings[:book_jacket_source]) %>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<%- @licenses.each do |license| -%>
|
19
19
|
<tr class="line<%= cycle("0", "1") -%>">
|
20
20
|
<td>
|
21
|
-
<%- if
|
21
|
+
<%- if policy(license).update? -%>
|
22
22
|
<%= move_position(license) -%>
|
23
23
|
<%- end -%>
|
24
24
|
</td>
|
@@ -29,10 +29,10 @@
|
|
29
29
|
<%= license.note %>
|
30
30
|
</td>
|
31
31
|
<td>
|
32
|
-
<%- if
|
32
|
+
<%- if policy(license).update? -%>
|
33
33
|
<%= link_to t('page.edit'), edit_license_path(license) -%>
|
34
34
|
<% end %>
|
35
|
-
<%- if
|
35
|
+
<%- if policy(license).destroy? -%>
|
36
36
|
<%= link_to t('page.destroy'), license_path(license), data: {confirm: t('page.are_you_sure')}, method: :delete -%>
|
37
37
|
<%- end -%>
|
38
38
|
</td>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
47
47
|
<ul>
|
48
|
-
<%- if
|
48
|
+
<%- if policy(License).create? -%>
|
49
49
|
<li><%= link_to t('page.new', model: t('activerecord.models.license')), new_license_path -%></li>
|
50
50
|
<%- end -%>
|
51
51
|
</ul>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<%- @manifestation_relationship_types.each do |manifestation_relationship_type| -%>
|
19
19
|
<tr class="line<%= cycle("0", "1") -%>">
|
20
20
|
<td>
|
21
|
-
<%- if
|
21
|
+
<%- if policy(manifestation_relationship_type).update? -%>
|
22
22
|
<%= move_position(manifestation_relationship_type) -%>
|
23
23
|
<%- end -%>
|
24
24
|
</td>
|
@@ -29,10 +29,10 @@
|
|
29
29
|
<%= manifestation_relationship_type.note %>
|
30
30
|
</td>
|
31
31
|
<td>
|
32
|
-
<%- if
|
32
|
+
<%- if policy(manifestation_relationship_type).update? -%>
|
33
33
|
<%= link_to t('page.edit'), edit_manifestation_relationship_type_path(manifestation_relationship_type) -%>
|
34
34
|
<% end %>
|
35
|
-
<%- if
|
35
|
+
<%- if policy(manifestation_relationship_type).destroy? -%>
|
36
36
|
<%= link_to t('page.destroy'), manifestation_relationship_type_path(manifestation_relationship_type), data: {confirm: t('page.are_you_sure')}, method: :delete -%>
|
37
37
|
<%- end -%>
|
38
38
|
</td>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
47
47
|
<ul>
|
48
|
-
<%- if
|
48
|
+
<%- if policy(ManifestationRelationshipType).create? -%>
|
49
49
|
<li><%= link_to t('page.new', model: t('activerecord.models.manifestation_relationship_type')), new_manifestation_relationship_type_path -%></li>
|
50
50
|
<%- end -%>
|
51
51
|
</ul>
|
@@ -4,6 +4,6 @@
|
|
4
4
|
<li><%= carrier_type_facet(facet) %></li>
|
5
5
|
<%- end -%>
|
6
6
|
<%- if params[:carrier_type] -%>
|
7
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(carrier_type: nil, page: nil, view: nil, only_path: true)) -%></li>
|
7
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.permit.merge(carrier_type: nil, page: nil, view: nil, only_path: true)) -%></li>
|
8
8
|
<%- end -%>
|
9
9
|
</ul>
|
@@ -4,12 +4,12 @@
|
|
4
4
|
<% @classification_facet.each do |category| %>
|
5
5
|
<li>
|
6
6
|
<% if category.value == params[:classification].to_s.downcase %><strong><% end %>
|
7
|
-
<%= link_to "#{t('classification.category', number: category.value)} #{category_name(category.value)} (#{category.count})", url_for(params.merge(classification: category.value, page: nil, view: nil, only_path: true)) %>
|
7
|
+
<%= link_to "#{t('classification.category', number: category.value)} #{category_name(category.value)} (#{category.count})", url_for(params.permit.merge(classification: category.value, page: nil, view: nil, only_path: true)) %>
|
8
8
|
<% if category.value == params[:classification].to_s.downcase %></strong><% end %>
|
9
9
|
</li>
|
10
10
|
<% end %>
|
11
11
|
<%- if params[:classification] -%>
|
12
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(classification: nil, page: nil, view: nil, only_path: true)) -%></li>
|
12
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.permit.merge(classification: nil, page: nil, view: nil, only_path: true)) -%></li>
|
13
13
|
<%- end -%>
|
14
14
|
</ul>
|
15
15
|
<%- else -%>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
(<%= link_to t('manifestation.new_item'), new_item_path(manifestation_id: @manifestation.id) %>)
|
8
8
|
</li>
|
9
9
|
<li><%= link_to t('manifestation.add_derivation'), manifestations_path(parent_id: @manifestation.id, mode: 'add') -%></li>
|
10
|
-
<% if
|
10
|
+
<% if policy(@manifestation).destroy? %>
|
11
11
|
<li><%= link_to t('page.destroy'), @manifestation, data: {confirm: t('page.are_you_sure')}, method: :delete -%></li>
|
12
12
|
<% end %>
|
13
13
|
</ul>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<h4><%= t('page.other_format') %></h4>
|
2
2
|
<ul>
|
3
|
-
<li><%= link_to 'RDF/XML', url_for(params.merge(format: :rdf, only_path: true)) %>
|
4
|
-
<li><%= link_to 'MODS', url_for(params.merge(format: :mods, only_path: true)) %></li>
|
5
|
-
<li><%= link_to 'TSV', url_for(params.merge(format: :txt, only_path: true)) %></li>
|
3
|
+
<li><%= link_to 'RDF/XML', url_for(params.permit.merge(format: :rdf, only_path: true)) %>
|
4
|
+
<li><%= link_to 'MODS', url_for(params.permit.merge(format: :mods, only_path: true)) %></li>
|
5
|
+
<li><%= link_to 'TSV', url_for(params.permit.merge(format: :txt, only_path: true)) %></li>
|
6
6
|
</ul>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= render 'page/required_field' %>
|
2
|
-
<%=
|
2
|
+
<%= simple_form_for(@manifestation, html: { multipart: true }) do |f| -%>
|
3
3
|
<%= f.error_messages -%>
|
4
4
|
|
5
5
|
<% if @manifestation.original_manifestations.exists? or @parent %>
|
@@ -62,51 +62,46 @@
|
|
62
62
|
<div class="field">
|
63
63
|
<%= f.label :series_statement_string -%><br />
|
64
64
|
<%= f.fields_for :series_statements do |series_form| %>
|
65
|
-
<%=
|
66
|
-
<%= series_form.text_field :original_title, class: 'resource_title' %>
|
67
|
-
<%= series_form.link_to_remove t('page.remove'), confirm: t('page.are_you_sure') %><br />
|
68
|
-
<%= series_form.label :title_transcription %>
|
69
|
-
<%= series_form.text_field :title_transcription, class: 'resource_title' %><br />
|
70
|
-
<%= series_form.label :volume_number_string %>
|
71
|
-
<%= series_form.text_field :volume_number_string %><br />
|
72
|
-
<%= series_form.label :creator_string %>
|
73
|
-
<%= series_form.text_field :creator_string %><br />
|
74
|
-
<%= series_form.label :series_master %>
|
75
|
-
<%= series_form.check_box :series_master %>
|
65
|
+
<%= render 'series_statement_fields', f: series_form %>
|
76
66
|
<% end %>
|
77
|
-
<
|
67
|
+
<div class="links">
|
68
|
+
<p><%= link_to_add_association t('page.add_series_statement'), f, :series_statements %></p>
|
69
|
+
</div>
|
78
70
|
</div>
|
79
71
|
|
80
|
-
<div class="field">
|
72
|
+
<div class="field" id="creator_form">
|
81
73
|
<%= f.label :creator_string -%><br />
|
82
74
|
<%= f.fields_for :creators do |creator_form| %>
|
83
|
-
<%=
|
84
|
-
<%= creator_form.link_to_remove t('page.remove'), confirm: t('page.are_you_sure') %>
|
75
|
+
<%= render 'creator_fields', f: creator_form %>
|
85
76
|
<% end %>
|
86
|
-
<
|
77
|
+
<div class="links">
|
78
|
+
<p><%= link_to_add_association t('page.add'), f, :creators %></p>
|
79
|
+
</div>
|
87
80
|
</div>
|
88
81
|
|
89
|
-
<div class="field">
|
82
|
+
<div class="field" id="contributor_form">
|
90
83
|
<%= f.label :contributor_string -%><br />
|
91
84
|
<%= f.fields_for :contributors do |contributor_form| %>
|
92
|
-
<%=
|
93
|
-
<%= contributor_form.link_to_remove t('page.remove'), confirm: t('page.are_you_sure') %>
|
85
|
+
<%= render 'contributor_fields', f: contributor_form %>
|
94
86
|
<% end %>
|
95
|
-
<
|
87
|
+
<div class="links">
|
88
|
+
<p><%= link_to_add_association t('page.add'), f, :contributors %></p>
|
89
|
+
</div>
|
96
90
|
</div>
|
97
91
|
|
98
|
-
<div class="field">
|
92
|
+
<div class="field" id="publisher_form">
|
99
93
|
<%= f.label :publisher_string -%><br />
|
100
94
|
<%= f.fields_for :publishers do |publisher_form| %>
|
101
|
-
<%=
|
102
|
-
<%= publisher_form.link_to_remove t('page.remove'), confirm: t('page.are_you_sure') %>
|
95
|
+
<%= render 'publisher_fields', f: publisher_form %>
|
103
96
|
<% end %>
|
104
|
-
<
|
97
|
+
<div class="links">
|
98
|
+
<p><%= link_to_add_association t('page.add'), f, :publishers %></p>
|
99
|
+
</div>
|
105
100
|
</div>
|
106
101
|
|
107
102
|
<div class="field">
|
108
103
|
<%= f.label :publication_place -%>
|
109
|
-
<%= f.text_field :publication_place %>
|
104
|
+
<%= f.text_field :publication_place, class: 'resource_title' %>
|
110
105
|
</div>
|
111
106
|
|
112
107
|
<div class="field">
|
@@ -139,11 +134,11 @@
|
|
139
134
|
<div class="field">
|
140
135
|
<%= f.label :identifier -%><br />
|
141
136
|
<%= f.fields_for :identifiers do |identifier_form| %>
|
142
|
-
<%=
|
143
|
-
<%= identifier_form.text_field :body, class: 'resource_identifier_body', style: 'ime-mode: disabled' -%>
|
144
|
-
<%= identifier_form.link_to_remove t('page.remove'), confirm: t('page.are_you_sure') %>
|
137
|
+
<%= render 'identifier_fields', f: identifier_form %>
|
145
138
|
<% end %>
|
146
|
-
<
|
139
|
+
<div class="links">
|
140
|
+
<p><%= link_to_add_association t('page.add'), f, :identifiers %></p>
|
141
|
+
</div>
|
147
142
|
</div>
|
148
143
|
|
149
144
|
<div class="field">
|
@@ -1,15 +1,13 @@
|
|
1
|
-
<% if manifestation.items.available_for(current_user).count >= 1 %>
|
2
|
-
<div id="holding_link_<%= manifestation.id %>">
|
3
|
-
(<%= link_to t('page.holding'), manifestation_path(manifestation), remote: true %>)
|
4
|
-
</div>
|
5
|
-
<% end %>
|
6
1
|
<% if defined?(EnjuBookmark) %>
|
7
2
|
<%- if manifestation.tags.first -%>
|
8
3
|
(<%= link_to "#", { onclick: "$('#tag_#{manifestation.id}').toggle(); return false;" } do t('activerecord.models.tag') end %>)
|
9
4
|
<%- end -%>
|
10
5
|
<%= render 'manifestations/show_tag', manifestation: manifestation -%>
|
11
6
|
<% end %>
|
12
|
-
|
13
|
-
|
14
|
-
<
|
7
|
+
|
8
|
+
<% if manifestation.items.available_for(current_user).count >= 1 %>
|
9
|
+
<div id="holding_link_<%= manifestation.id %>">
|
10
|
+
(<%= link_to t('page.holding'), manifestation_path(manifestation), remote: true %>)
|
11
|
+
</div>
|
12
|
+
<div id="holding_<%= manifestation.id -%>"></div>
|
15
13
|
<%- end -%>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<div class="nested-fields">
|
2
|
+
<%= f.select(:identifier_type_id, @identifier_types.collect{|i| [i.display_name.localize, i.id]}) %>
|
3
|
+
<%= f.text_field :body, class: 'resource_identifier_body', style: 'ime-mode: disabled' -%>
|
4
|
+
<%= link_to_remove_association t('page.remove'), f, data: {confirm: t('page.are_you_sure')} %><br />
|
5
|
+
</div>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<div class="search_form">
|
2
|
-
<%= form_for :manifestations, url:
|
2
|
+
<%= form_for :manifestations, url: manifestations_path(contributor_id: @index_agent[:contributor].id), html: {method: 'get'} do -%>
|
3
3
|
<p>
|
4
4
|
<%= label_tag :search_form_top, t('page.search_term') -%>:
|
5
5
|
<%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
|
6
6
|
<%= hidden_field_tag 'reservable', h(@reservable) if @reservable -%>
|
7
|
-
<% if
|
7
|
+
<% if policy(Realize).create? %>
|
8
8
|
<%= render 'page/add' %>
|
9
9
|
<% end %>
|
10
10
|
<%= submit_tag t('page.search') -%>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<div class="search_form">
|
2
|
-
<%= form_for :manifestations, url:
|
2
|
+
<%= form_for :manifestations, url: manifestations_path(creator_id: @index_agent[:creator].id), html: {method: 'get'} do -%>
|
3
3
|
<p>
|
4
4
|
<%= label_tag :search_form_top, t('page.search_term') -%>:
|
5
5
|
<%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
|
6
6
|
<%= hidden_field_tag 'reservable', h(@reservable) if @reservable -%>
|
7
|
-
<% if
|
7
|
+
<% if policy(Create).create? %>
|
8
8
|
<%= render 'page/add' %>
|
9
9
|
<% end %>
|
10
10
|
<%= submit_tag t('page.search') -%>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<div class="search_form">
|
2
|
-
<%= form_for :manifestations, url:
|
2
|
+
<%= form_for :manifestations, url: manifestations_path(item_id: @item.id), html: {method: 'get'} do -%>
|
3
3
|
<p>
|
4
4
|
<%= label_tag :search_form_top, t('page.search_term') -%>:
|
5
5
|
<%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
|
6
|
-
<% if
|
6
|
+
<% if policy(Create).create? %>
|
7
7
|
<%= render 'page/add' %>
|
8
8
|
<% end %>
|
9
9
|
<%= submit_tag t('page.search') -%>
|