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
@@ -1,9 +1,9 @@
|
|
1
|
-
<%= form_for :manifestations, url:
|
1
|
+
<%= form_for :manifestations, url: manifestations_path(manifestation_id: @manifestation.id), html: {method: 'get'} do -%>
|
2
2
|
<p>
|
3
3
|
<%= label_tag :search_form_top, t('page.search_term') -%>:
|
4
4
|
<%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
|
5
5
|
<%= hidden_field_tag 'reservable', h(@reservable) if @reservable -%>
|
6
|
-
<% if
|
6
|
+
<% if policy(ManifestationRelationship).create? %>
|
7
7
|
<%= render 'page/add' %>
|
8
8
|
<% end %>
|
9
9
|
<%= submit_tag t('page.search') -%>
|
@@ -16,7 +16,7 @@
|
|
16
16
|
<%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
|
17
17
|
<%= hidden_field_tag 'parent_id', @parent.id -%>
|
18
18
|
<%= hidden_field_tag 'reservable', h(@reservable) if @reservable -%>
|
19
|
-
<% if
|
19
|
+
<% if policy(@parent).update? %>
|
20
20
|
<%= render 'page/add' %>
|
21
21
|
<% end %>
|
22
22
|
<%= 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(publisher_id: @index_agent[:publisher].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(Produce).create? %>
|
8
8
|
<%= render 'page/add' %>
|
9
9
|
<% end %>
|
10
10
|
<%= submit_tag t('page.search') -%>
|
@@ -4,12 +4,12 @@
|
|
4
4
|
</h2>
|
5
5
|
|
6
6
|
<div class="search_form">
|
7
|
-
<%= form_for :manifestations, url:
|
7
|
+
<%= form_for :manifestations, url: manifestations_path(series_staetment_id: @series_statement.id), html: {method: 'get'} do -%>
|
8
8
|
<p>
|
9
9
|
<%= label_tag :search_form_top, t('page.search_term') -%>:
|
10
10
|
<%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
|
11
11
|
<%= hidden_field_tag 'reservable', h(@reservable) if @reservable -%>
|
12
|
-
<% if
|
12
|
+
<% if policy(Manifestation).create? %>
|
13
13
|
<%= render 'page/add' %>
|
14
14
|
<% end %>
|
15
15
|
<%= submit_tag t('page.search') -%>
|
@@ -11,6 +11,6 @@
|
|
11
11
|
<%- end -%>
|
12
12
|
<%- end -%>
|
13
13
|
<%- if params[:language] -%>
|
14
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(language: nil, page: nil, view: nil, only_path: true)) -%></li>
|
14
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.permit.merge(language: nil, page: nil, view: nil, only_path: true)) -%></li>
|
15
15
|
<%- end -%>
|
16
16
|
</ul>
|
@@ -6,6 +6,6 @@
|
|
6
6
|
<%= library_facet(current_libraries, facet) %>
|
7
7
|
<%- end -%>
|
8
8
|
<%- if params[:library] -%>
|
9
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(library: nil, page: nil, view: nil, only_path: true)) -%></li>
|
9
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.permit.merge(library: nil, page: nil, view: nil, only_path: true)) -%></li>
|
10
10
|
<%- end -%>
|
11
11
|
</ul>
|
@@ -21,17 +21,21 @@
|
|
21
21
|
<%- if reserve -%>
|
22
22
|
<%= link_to t('reserve.show'), reserve -%><br />
|
23
23
|
<%- else -%>
|
24
|
-
<%= link_to t('activerecord.models.reserve'), new_reserve_path(manifestation_id: manifestation.id) if
|
24
|
+
<%= link_to t('activerecord.models.reserve'), new_reserve_path(manifestation_id: manifestation.id) if policy(Reserve).create? -%><br />
|
25
25
|
<%- end -%>
|
26
26
|
<% end %>
|
27
27
|
<% end %>
|
28
28
|
<% end %>
|
29
|
-
<%- if
|
29
|
+
<%- if policy(manifestation).update? -%>
|
30
30
|
<% unless params[:mode] == 'add' %>
|
31
31
|
<% if manifestation.serial? && manifestation.series_master? %>
|
32
32
|
<%= link_to t('page.new_acquisition'), new_manifestation_path(parent_id: manifestation.id) %>
|
33
33
|
<% end %>
|
34
34
|
<%= link_to t('page.edit'), edit_manifestation_path(manifestation) -%>
|
35
|
+
<%- if policy(Item).create? and not manifestation.series_master? -%>
|
36
|
+
<br />
|
37
|
+
<%= link_to t('page.new_item'), new_item_path(manifestation_id: manifestation.id) -%>
|
38
|
+
<%- end -%>
|
35
39
|
<% else %>
|
36
40
|
<% case %>
|
37
41
|
<% when @parent %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= manifestation.
|
1
|
+
<%= manifestation.to_csv(format: :txt, role: current_user_role_name) -%>
|
@@ -6,12 +6,14 @@
|
|
6
6
|
}else{
|
7
7
|
var ids = JSON.parse(sessionStorage.getItem("<%= flash[:search_query] %>"));
|
8
8
|
var index = $.inArray(<%= manifestation.id %>, ids);
|
9
|
-
if(
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
9
|
+
if (index != -1) {
|
10
|
+
if (ids[index - 1] > 0) {
|
11
|
+
$("#prev_link").html('<a href="<%= manifestations_path %>/' + ids[index - 1] + '"><%= t('page.previous') %></a>');
|
12
|
+
};
|
13
|
+
if (ids[index + 1] > 0) {
|
14
|
+
$("#next_link").html('<a href="<%= manifestations_path %>/' + ids[index + 1] + '"><%= t('page.next') %></a>');
|
15
|
+
};
|
16
|
+
}
|
15
17
|
};
|
16
18
|
});
|
17
19
|
</script>
|
@@ -6,6 +6,6 @@
|
|
6
6
|
</li>
|
7
7
|
<%- end -%>
|
8
8
|
<%- if params[:pub_date_from] and params[:pub_date_until] -%>
|
9
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(pub_date_from: nil, pub_date_until: nil, page: nil, view: nil, only_path: true)) -%></li>
|
9
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.permit.merge(pub_date_from: nil, pub_date_until: nil, page: nil, view: nil, only_path: true)) -%></li>
|
10
10
|
<%- end -%>
|
11
11
|
</ul>
|
@@ -4,11 +4,11 @@
|
|
4
4
|
<% facet.value ? facet_reservable = true : facet_reservable = false %>
|
5
5
|
<li>
|
6
6
|
<%- if @reservable == facet_reservable -%><strong><%- end -%>
|
7
|
-
<%= link_to "#{localized_boolean(facet.value)} (#{facet.count})", url_for(params.merge(page: nil, reservable: facet.value.to_s, view: nil, only_path: true)) -%>
|
7
|
+
<%= link_to "#{localized_boolean(facet.value)} (#{facet.count})", url_for(params.permit.merge(page: nil, reservable: facet.value.to_s, view: nil, only_path: true)) -%>
|
8
8
|
<%- if @reservable == facet_reservable -%></strong><%- end -%>
|
9
9
|
</li>
|
10
10
|
<%- end -%>
|
11
11
|
<%- unless @reservable.nil? -%>
|
12
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(reservable: nil, page: nil, view: nil, only_path: true)) -%></li>
|
12
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.permit.merge(reservable: nil, page: nil, view: nil, only_path: true)) -%></li>
|
13
13
|
<%- end -%>
|
14
14
|
</ul>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div class="nested-fields">
|
2
|
+
<%= f.label :original_title %>
|
3
|
+
<%= f.text_field :original_title, class: 'resource_title' %>
|
4
|
+
<%= link_to_remove_association t('page.remove'), f, data: {confirm: t('page.are_you_sure')} %><br />
|
5
|
+
<%= f.label :title_transcription %>
|
6
|
+
<%= f.text_field :title_transcription, class: 'resource_title' %><br />
|
7
|
+
<%= f.label :volume_number_string %>
|
8
|
+
<%= f.text_field :volume_number_string %><br />
|
9
|
+
<%= f.label :creator_string %>
|
10
|
+
<%= f.text_field :creator_string, class: 'resource_name' %><br />
|
11
|
+
<%= f.label :series_master %>
|
12
|
+
<%= f.check_box :series_master %>
|
13
|
+
</div>
|
@@ -1,87 +1,3 @@
|
|
1
|
-
xml.
|
2
|
-
|
3
|
-
|
4
|
-
xml.titleInfo('type' => 'alternative'){
|
5
|
-
xml.title manifestation.title_alternative
|
6
|
-
}
|
7
|
-
manifestation.creators.readable_by(current_user).each do |creator|
|
8
|
-
case creator.agent_type.name
|
9
|
-
when "person"
|
10
|
-
xml.name('type' => 'personal'){
|
11
|
-
xml.namePart creator.full_name
|
12
|
-
xml.namePart creator.date if creator.date
|
13
|
-
xml.role do
|
14
|
-
xml.roleTerm "creator", 'type' => 'text', 'authority' => 'marcrelator'
|
15
|
-
end
|
16
|
-
}
|
17
|
-
when "corporate_body"
|
18
|
-
xml.name('type' => 'corporate'){
|
19
|
-
xml.namePart creator.full_name
|
20
|
-
xml.role do
|
21
|
-
xml.roleTerm "creator", 'type' => 'text', 'authority' => 'marcrelator'
|
22
|
-
end
|
23
|
-
}
|
24
|
-
when "conference"
|
25
|
-
xml.name('type' => 'conference'){
|
26
|
-
xml.namePart creator.full_name
|
27
|
-
xml.role do
|
28
|
-
xml.roleTerm "creator", 'type' => 'text', 'authority' => 'marcrelator'
|
29
|
-
end
|
30
|
-
}
|
31
|
-
end
|
32
|
-
end
|
33
|
-
manifestation.contributors.readable_by(current_user).each do |contributor|
|
34
|
-
case contributor.agent_type.name
|
35
|
-
when "person"
|
36
|
-
xml.name('type' => 'personal'){
|
37
|
-
xml.namePart contributor.full_name
|
38
|
-
xml.namePart contributor.date if contributor.date
|
39
|
-
}
|
40
|
-
when "corporate_body"
|
41
|
-
xml.name('type' => 'corporate'){
|
42
|
-
xml.namePart contributor.full_name
|
43
|
-
}
|
44
|
-
when "conference"
|
45
|
-
xml.name('type' => 'conference'){
|
46
|
-
xml.namePart contributor.full_name
|
47
|
-
}
|
48
|
-
end
|
49
|
-
end
|
50
|
-
xml.typeOfResource manifestation.carrier_type.mods_type
|
51
|
-
xml.originInfo{
|
52
|
-
manifestation.publishers.readable_by(current_user).each do |agent|
|
53
|
-
xml.publisher agent.full_name
|
54
|
-
end
|
55
|
-
xml.dateIssued manifestation.date_of_publication
|
56
|
-
xml.frequency manifestation.frequency.name
|
57
|
-
}
|
58
|
-
xml.language{
|
59
|
-
xml.languageTerm manifestation.language.iso_639_2, 'authority' => 'iso639-2b', 'type' => 'code' if manifestation.language
|
60
|
-
}
|
61
|
-
xml.physicalDescription{
|
62
|
-
xml.form manifestation.carrier_type.name, 'authority' => 'marcform'
|
63
|
-
xml.extent manifestation.extent
|
64
|
-
}
|
65
|
-
if defined?(EnjuSubject)
|
66
|
-
xml.subject{
|
67
|
-
manifestation.subjects.each do |subject|
|
68
|
-
xml.topic subject.term
|
69
|
-
end
|
70
|
-
}
|
71
|
-
manifestation.classifications.each do |classification|
|
72
|
-
xml.classification classification.category, 'authority' => classification.classification_type.name
|
73
|
-
end
|
74
|
-
end
|
75
|
-
xml.abstract manifestation.description
|
76
|
-
xml.note manifestation.note
|
77
|
-
manifestation.identifier_contents(:isbn).each do |i|
|
78
|
-
xml.identifier i, type: 'isbn'
|
79
|
-
end
|
80
|
-
manifestation.identifier_contents(:lccn).each do |l|
|
81
|
-
xml.identifier l, type: 'lccn'
|
82
|
-
end
|
83
|
-
xml.recordInfo{
|
84
|
-
xml.recordCreationDate manifestation.created_at
|
85
|
-
xml.recordChangeDate manifestation.updated_at
|
86
|
-
xml.recordIdentifier manifestation_url(manifestation)
|
87
|
-
}
|
1
|
+
xml.title manifestation.original_title
|
2
|
+
xml.link manifestation_url(manifestation)
|
3
|
+
xml.description [ agents_list(manifestation.publishers, nolink: true), manifestation.pub_date, manifestation.description ].reject(&:blank?).join("; ")
|
File without changes
|
@@ -16,7 +16,6 @@
|
|
16
16
|
(<%= manifestation.pub_date -%>)
|
17
17
|
<%- end -%>
|
18
18
|
<% if defined?(EnjuSubject) %>
|
19
|
-
<%= ';' if manifestation.classifications.count >= 1 %>
|
20
19
|
<% manifestation.classifications.each_with_index do |classification| %>
|
21
20
|
<%= link_to "#{classification.classification_type.display_name.localize}: #{classification.category}", manifestations_path(query: "classification_sm:#{classification.classification_type.name}_#{classification.category}") %>
|
22
21
|
<% end %>
|
@@ -66,27 +66,25 @@
|
|
66
66
|
</td>
|
67
67
|
</tr>
|
68
68
|
<% end %>
|
69
|
-
|
70
|
-
<
|
71
|
-
|
72
|
-
<
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
</tr>
|
89
|
-
<%- end -%>
|
69
|
+
<tr>
|
70
|
+
<td><%= t('page.identifier') -%>:</td>
|
71
|
+
<td>
|
72
|
+
<ul>
|
73
|
+
<% manifestation.identifiers.each do |identifier| %>
|
74
|
+
<li>
|
75
|
+
<%= identifier.identifier_type.display_name.localize %>:
|
76
|
+
<%= identifier_link(identifier) %>
|
77
|
+
</li>
|
78
|
+
<% end %>
|
79
|
+
<% if manifestation.manifestation_identifier %>
|
80
|
+
<li>
|
81
|
+
<%= t('activerecord.attributes.manifestation.manifestation_identifier') %>:
|
82
|
+
<%= manifestation.manifestation_identifier %>
|
83
|
+
</li>
|
84
|
+
<% end %>
|
85
|
+
</ul>
|
86
|
+
</td>
|
87
|
+
</tr>
|
90
88
|
<%- unless manifestation.attachment_file_name.blank? -%>
|
91
89
|
<%= render 'manifestations/attachment_file', manifestation: manifestation -%>
|
92
90
|
<%- end -%>
|
@@ -115,7 +113,7 @@
|
|
115
113
|
<%- if manifestation.items.exists? -%>
|
116
114
|
<%= render 'manifestations/show_holding', manifestation: manifestation, items: manifestation.items %>
|
117
115
|
<%- end -%>
|
118
|
-
<%- if
|
116
|
+
<%- if policy(Item).create? -%>
|
119
117
|
<p><%= link_to t('page.new', model: t('activerecord.models.item')), new_item_path(manifestation_id: manifestation.id) -%></p>
|
120
118
|
<%- end -%>
|
121
119
|
<%= render 'manifestations/tab_list', manifestation: manifestation %>
|
@@ -68,21 +68,19 @@
|
|
68
68
|
</td>
|
69
69
|
</tr>
|
70
70
|
<% end %>
|
71
|
-
|
72
|
-
<
|
73
|
-
|
74
|
-
<
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
</tr>
|
85
|
-
<%- end -%>
|
71
|
+
<tr>
|
72
|
+
<td><%= t('page.identifier') -%>:</td>
|
73
|
+
<td>
|
74
|
+
<ul>
|
75
|
+
<% manifestation.identifiers.each do |identifier| %>
|
76
|
+
<li>
|
77
|
+
<%= identifier.identifier_type.display_name.localize %>:
|
78
|
+
<%= identifier_link(identifier) %>
|
79
|
+
</li>
|
80
|
+
<% end %>
|
81
|
+
</ul>
|
82
|
+
</td>
|
83
|
+
</tr>
|
86
84
|
<%- unless manifestation.attachment_file_name.blank? -%>
|
87
85
|
<%= render 'manifestations/attachment_file', manifestation: manifestation -%>
|
88
86
|
<%- end -%>
|
File without changes
|
File without changes
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<ul>
|
2
|
-
<% if
|
2
|
+
<% if policy(Manifestation).create? %>
|
3
3
|
<li><%= link_to t('page.new', model: t('activerecord.models.manifestation')), new_manifestation_path(parent_id: @parent.id) %></li>
|
4
4
|
<% end %>
|
5
|
-
<% if
|
5
|
+
<% if policy(@parent).update? %>
|
6
6
|
<li><%= link_to t('page.edit'), edit_manifestation_path(@parent) %></li>
|
7
7
|
<% end %>
|
8
|
-
<% if
|
8
|
+
<% if policy(@parent).destroy? %>
|
9
9
|
<li><%= link_to t('page.destroy'), manifestation_path(@parent), data: {confirm: t('page.are_you_sure')}, method: :delete %></li>
|
10
10
|
<% end %>
|
11
11
|
</ul>
|
File without changes
|
@@ -9,13 +9,9 @@
|
|
9
9
|
<%= render 'manifestations/book_jacket', manifestation: @manifestation -%>
|
10
10
|
<ul>
|
11
11
|
<li><%= link_to t('page.show'), @manifestation -%></li>
|
12
|
-
<% if
|
12
|
+
<% if policy(@manifestation).destroy? %>
|
13
13
|
<li><%= link_to t('page.destroy'), @manifestation, data: {confirm: t('page.are_you_sure')}, method: :delete -%></li>
|
14
14
|
<% end %>
|
15
|
-
|
16
|
-
<li><%= link_to t('page.back'), publisher_manifestations_path(@agent) -%></li>
|
17
|
-
<%- else -%>
|
18
|
-
<li><%= link_to t('page.back'), manifestations_path -%></li>
|
19
|
-
<%- end -%>
|
15
|
+
<li><%= link_to t('page.back'), :back -%></li>
|
20
16
|
</ul>
|
21
17
|
</div>
|
File without changes
|
@@ -35,24 +35,36 @@
|
|
35
35
|
<%- end -%>
|
36
36
|
</p>
|
37
37
|
|
38
|
-
<
|
39
|
-
<%=
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
38
|
+
<div class="field right">
|
39
|
+
<%= form_for :manifestations, url: manifestations_path, html: {method: 'get'} do -%>
|
40
|
+
<p>
|
41
|
+
<%= select_tag 'per_page', options_for_select({
|
42
|
+
t('page.per_page', num: 10) => 10,
|
43
|
+
t('page.per_page', num: 20) => 20,
|
44
|
+
t('page.per_page', num: 50) => 50,
|
45
|
+
t('page.per_page', num: 100) => 100,
|
46
|
+
}, selected: params[:per_page]) %>
|
47
|
+
<%= select_tag 'sort_by', options_for_select({
|
48
|
+
[t('page.sort_criteria.created_at'),
|
49
|
+
t('page.sort_criteria.date_desc')].join(" : ") => 'created_at:desc',
|
50
|
+
[t('page.sort_criteria.created_at'),
|
51
|
+
t('page.sort_criteria.date_asc')].join(" : ") => 'created_at:asc',
|
52
|
+
[t('activerecord.attributes.manifestation.pub_date'),
|
53
|
+
t('page.sort_criteria.date_desc')].join(" : ") => 'pub_date:desc',
|
54
|
+
[t('activerecord.attributes.manifestation.pub_date'),
|
55
|
+
t('page.sort_criteria.date_asc')].join(" : ") => 'pub_date:asc',
|
56
|
+
[t('page.score'),
|
57
|
+
t('page.sort_criteria.score_desc')].join(" : ") => 'score:desc',
|
58
|
+
[t('page.title'),
|
59
|
+
t('page.sort_criteria.title_asc')].join(" : ") => 'title:asc',
|
60
|
+
[t('page.title'),
|
61
|
+
t('page.sort_criteria.title_desc')].join(" : ") => 'title:desc',
|
62
|
+
}, selected: params[:sort_by] || 'created_at:desc') -%>
|
63
|
+
<%= hidden_field_tag 'query', @query -%>
|
64
|
+
<%= submit_tag t('page.show') -%><br />
|
65
|
+
</p>
|
49
66
|
<%- end -%>
|
50
|
-
|
51
|
-
<strong><%= t('page.title') -%></strong>
|
52
|
-
<%- else -%>
|
53
|
-
<%= link_to t('page.title'), url_for(params.merge(sort_by: 'title', only_path: true)) -%>
|
54
|
-
<%- end -%>
|
55
|
-
</p>
|
67
|
+
</div>
|
56
68
|
|
57
69
|
<div class="autopagerize_page_element" id="list">
|
58
70
|
<table class="table table-striped index" id="manifestation_list">
|
@@ -71,8 +83,12 @@
|
|
71
83
|
</div>
|
72
84
|
<% end %>
|
73
85
|
<%- else -%>
|
74
|
-
|
75
|
-
|
86
|
+
<%- if @parent -%>
|
87
|
+
<p><%= t('manifestation.record_not_added') %></p>
|
88
|
+
<%- else -%>
|
89
|
+
<!-- TODO: 検索結果が少ない場合にも表示させる -->
|
90
|
+
<%= render 'manifestations/not_found' -%>
|
91
|
+
<%- end -%>
|
76
92
|
<%- end -%>
|
77
93
|
|
78
94
|
<div class="autopagerize_insert_before"></div>
|
@@ -81,18 +97,18 @@
|
|
81
97
|
</div>
|
82
98
|
|
83
99
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
84
|
-
<% if @parent and
|
100
|
+
<% if @parent and policy(@parent).update? %>
|
85
101
|
<%= render 'submenu_parent' %>
|
86
102
|
<% end %>
|
87
|
-
<h3><%= link_to h("#{t('page.total')}: #{@count[:query_result]}"), url_for(params.merge(action: 'index', view: nil, carrier_type: nil, library: nil, language: nil, subject: nil, only_path: true)) -%></h3>
|
103
|
+
<h3><%= link_to h("#{t('page.total')}: #{@count[:query_result]}"), url_for(params.permit.merge(action: 'index', view: nil, carrier_type: nil, library: nil, language: nil, subject: nil, only_path: true)) -%></h3>
|
88
104
|
<%- if @manifestations.total_count > 0 -%>
|
89
105
|
<%= render 'manifestations/all_facet' -%>
|
90
106
|
<%- end -%>
|
91
107
|
<div>
|
92
108
|
<%- if params[:library_id].blank? -%>
|
93
|
-
<%= link_to((image_tag 'icons/feed.png', size: '16x16', alt: t('page.feed'), class: 'icon'), url_for(params.merge(format: :rss, page: nil, library_id: nil, only_path: true))) -%> <%= link_to t('page.search_result_feed'), url_for(params.merge(format: :rss, page: nil, library_id: nil, commit: nil, only_path: true)) -%>
|
109
|
+
<%= link_to((image_tag 'icons/feed.png', size: '16x16', alt: t('page.feed'), class: 'icon'), url_for(params.permit.merge(format: :rss, page: nil, library_id: nil, only_path: true))) -%> <%= link_to t('page.search_result_feed'), url_for(params.permit.merge(format: :rss, page: nil, library_id: nil, commit: nil, only_path: true)) -%>
|
94
110
|
<%- else -%>
|
95
|
-
<%= link_to((image_tag 'icons/feed.png', size: '16x16', alt: t('page.feed'), class: 'icon'), url_for(params.merge(format: :rss, page: nil, only_path: true))) -%> <%= link_to t('page.search_result_feed'), url_for(params.merge(format: :rss, page: nil, commit: nil, only_path: true)) -%>
|
111
|
+
<%= link_to((image_tag 'icons/feed.png', size: '16x16', alt: t('page.feed'), class: 'icon'), url_for(params.permit.merge(format: :rss, page: nil, only_path: true))) -%> <%= link_to t('page.search_result_feed'), url_for(params.permit.merge(format: :rss, page: nil, commit: nil, only_path: true)) -%>
|
96
112
|
<%- end -%>
|
97
113
|
</div>
|
98
114
|
<%= render 'manifestations/export_list' %>
|
@@ -101,7 +117,7 @@
|
|
101
117
|
<% if defined?(EnjuBookmark) %>
|
102
118
|
<script type="text/javascript">
|
103
119
|
window.onload = function() {
|
104
|
-
$("#tag_cloud_list").load('<%= url_for(params.merge(view: "tag_cloud", only_path: true)) -%>', hideTagCloudSpinner);
|
120
|
+
$("#tag_cloud_list").load('<%= url_for(params.permit.merge(view: "tag_cloud", only_path: true)) -%>', hideTagCloudSpinner);
|
105
121
|
}
|
106
122
|
|
107
123
|
function hideTagCloudSpinner(){
|
@@ -8,9 +8,9 @@ xml.rdf(:RDF,
|
|
8
8
|
'xmlns:foaf' => "http://xmlns.com/foaf/0.1/",
|
9
9
|
'xmlns:prism' => "http://prismstandard.org/namespaces/basic/2.0/",
|
10
10
|
'xmlns:rdfs' =>"http://www.w3.org/2000/01/rdf-schema#"){
|
11
|
-
xml.channel("rdf:about" => manifestations_url(params: params.merge(format: 'rdf', only_path: true))){
|
11
|
+
xml.channel("rdf:about" => manifestations_url(params: params.permit.merge(format: 'rdf', only_path: true))){
|
12
12
|
xml.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name.localize)
|
13
|
-
xml.link "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(format: nil, only_path: true))}"
|
13
|
+
xml.link "#{request.protocol}#{request.host_with_port}#{url_for(params.permit.merge(format: nil, only_path: true))}"
|
14
14
|
xml.description "Next-L Enju, an open source integrated library system developed by Project Next-L"
|
15
15
|
xml.language @locale.to_s
|
16
16
|
xml.ttl "60"
|
@@ -25,6 +25,8 @@ xml.rdf(:RDF,
|
|
25
25
|
end
|
26
26
|
}
|
27
27
|
@manifestations.each do |manifestation|
|
28
|
-
xml
|
28
|
+
xml.item('rdf:about' => manifestation_url(manifestation)) do
|
29
|
+
xml << render('manifestations/show', manifestation: manifestation)
|
30
|
+
end
|
29
31
|
end
|
30
32
|
}
|
@@ -5,11 +5,11 @@ xml.rss('version' => "2.0",
|
|
5
5
|
'xmlns:atom' => "http://www.w3.org/2005/Atom"){
|
6
6
|
xml.channel{
|
7
7
|
xml.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name.localize)
|
8
|
-
xml.link "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(format: nil, only_path: true))}"
|
8
|
+
xml.link "#{request.protocol}#{request.host_with_port}#{url_for(params.permit.merge(format: nil, only_path: true))}"
|
9
9
|
xml.description "Next-L Enju, an open source integrated library system developed by Project Next-L"
|
10
10
|
xml.language @locale.to_s
|
11
11
|
xml.ttl "60"
|
12
|
-
xml.tag! "atom:link", rel: 'self', href: "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(format: :rss, only_path: true))}"
|
12
|
+
xml.tag! "atom:link", rel: 'self', href: "#{request.protocol}#{request.host_with_port}#{url_for(params.permit.merge(format: :rss, only_path: true))}"
|
13
13
|
xml.tag! "atom:link", rel: 'alternate', href: manifestations_url
|
14
14
|
xml.tag! "atom:link", rel: 'search', type: 'application/opensearchdescription+xml', href: page_opensearch_url
|
15
15
|
unless params[:query].blank?
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
<%= render @manifestations %>
|
1
|
+
<%= Manifestation.csv_header(current_user_role_name, col_sep: "\t") -%><%= render @manifestations -%>
|
@@ -15,6 +15,6 @@
|
|
15
15
|
</tr>
|
16
16
|
</table>
|
17
17
|
<%- if @manifestation.items.for_checkout.on_shelf.exists? -%>
|
18
|
-
<%= render 'manifestations/show_holding', manifestation: @manifestation
|
18
|
+
<%= render 'manifestations/show_holding', manifestation: @manifestation, items: @manifestation.items.for_checkout.on_shelf %>
|
19
19
|
<%- end -%>
|
20
20
|
</div>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
<li><%= t('page.total') %>: <%= @manifestation.picture_files.count %> <%= t('page.number_of_pictures', count: @manifestation.picture_files.count) %></li>
|
24
24
|
<li><%= link_to t('page.listing', model: t('activerecord.models.picture_file')), picture_files_path(manifestation_id: @manifestation.id) -%></li>
|
25
25
|
<% end %>
|
26
|
-
<%- if
|
26
|
+
<%- if policy(PictureFile).create? -%>
|
27
27
|
<li><%= link_to t('page.new', model: t('activerecord.models.picture_file')), new_picture_file_path(manifestation_id: @manifestation.id) -%></li>
|
28
28
|
<%- end -%>
|
29
29
|
</ul>
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
<%= render @manifestation %>
|
1
|
+
<%= Manifestation.csv_header(current_user_role_name, col_sep: "\t") -%><%= render @manifestation -%>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<%- @medium_of_performances.each do |medium_of_performance| -%>
|
19
19
|
<tr class="line<%= cycle("0", "1") -%>">
|
20
20
|
<td>
|
21
|
-
<%- if
|
21
|
+
<%- if policy(medium_of_performance).update? -%>
|
22
22
|
<%= move_position(medium_of_performance) -%>
|
23
23
|
<%- end -%>
|
24
24
|
</td>
|
@@ -29,10 +29,10 @@
|
|
29
29
|
<%= medium_of_performance.note %>
|
30
30
|
</td>
|
31
31
|
<td>
|
32
|
-
<%- if
|
32
|
+
<%- if policy(medium_of_performance).update? -%>
|
33
33
|
<%= link_to t('page.edit'), edit_medium_of_performance_path(medium_of_performance) -%>
|
34
34
|
<% end %>
|
35
|
-
<%- if
|
35
|
+
<%- if policy(medium_of_performance).destroy? -%>
|
36
36
|
<%= link_to t('page.destroy'), medium_of_performance_path(medium_of_performance), 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(MediumOfPerformance).create? -%>
|
49
49
|
<li><%= link_to t('page.new', model: t('activerecord.models.medium_of_performance')), new_medium_of_performance_path -%></li>
|
50
50
|
<%- end -%>
|
51
51
|
</ul>
|