enju_biblio 0.3.13 → 0.4.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.md +2 -3
- data/app/controllers/agents_controller.rb +6 -0
- data/app/controllers/content_types_controller.rb +1 -1
- data/app/controllers/items_controller.rb +10 -18
- data/app/controllers/manifestations_controller.rb +85 -80
- data/app/controllers/resource_import_results_controller.rb +2 -6
- data/app/controllers/series_statements_controller.rb +6 -0
- data/app/helpers/enju_biblio/application_helper.rb +5 -5
- data/app/helpers/manifestations_helper.rb +12 -12
- data/app/models/agent.rb +4 -13
- data/app/models/agent_import_file.rb +1 -1
- data/app/models/agent_relationship_type.rb +8 -7
- data/app/models/agent_type.rb +10 -7
- data/app/models/carrier_type.rb +14 -11
- data/app/models/content_type.rb +10 -7
- data/app/models/create_type.rb +8 -7
- data/app/models/doi_record.rb +36 -0
- data/app/models/form_of_work.rb +11 -8
- data/app/models/frequency.rb +11 -8
- data/app/models/identifier.rb +1 -1
- data/app/models/identifier_type.rb +1 -0
- data/app/models/import_request.rb +3 -4
- data/app/models/isbn_record.rb +51 -0
- data/app/models/isbn_record_and_manifestation.rb +18 -0
- data/app/models/issn_record.rb +49 -0
- data/app/models/issn_record_and_manifestation.rb +18 -0
- data/app/models/item.rb +7 -55
- data/app/models/language.rb +10 -9
- data/app/models/license.rb +9 -7
- data/app/models/manifestation.rb +271 -158
- data/app/models/manifestation_relationship_type.rb +9 -7
- data/app/models/medium_of_performance.rb +11 -8
- data/app/models/periodical.rb +33 -0
- data/app/models/periodical_and_manifestation.rb +16 -0
- data/app/models/picture_file.rb +2 -0
- data/app/models/produce_type.rb +8 -7
- data/app/models/realize_type.rb +8 -7
- data/app/models/resource_export_file.rb +8 -6
- data/app/models/resource_export_file_state_machine.rb +1 -1
- data/app/models/resource_import_file.rb +62 -153
- data/app/views/agent_import_results/index.txt.erb +3 -0
- data/app/views/agent_relationship_types/index.html.erb +1 -1
- data/app/views/agent_relationship_types/show.html.erb +1 -1
- data/app/views/agent_relationships/_form.html.erb +1 -1
- data/app/views/agent_types/index.html.erb +1 -1
- data/app/views/agent_types/show.html.erb +1 -1
- data/app/views/agents/_agent.html.erb +1 -1
- data/app/views/agents/_agent_list.html.erb +2 -2
- data/app/views/agents/_form.html.erb +4 -4
- data/app/views/agents/_index_agent.html.erb +1 -1
- data/app/views/agents/_index_agent_merge_list.html.erb +1 -1
- data/app/views/agents/_index_expression.html.erb +2 -2
- data/app/views/agents/_index_manifestation.html.erb +2 -2
- data/app/views/agents/_index_work.html.erb +2 -2
- data/app/views/agents/index.atom.builder +1 -1
- data/app/views/agents/index.rss.builder +3 -3
- data/app/views/agents/show.html+phone.erb +2 -2
- data/app/views/agents/show.html.erb +2 -2
- data/app/views/carrier_types/index.html.erb +2 -2
- data/app/views/carrier_types/show.html.erb +3 -3
- data/app/views/content_types/index.html.erb +1 -1
- data/app/views/content_types/show.html.erb +1 -1
- data/app/views/countries/index.html.erb +1 -1
- data/app/views/countries/show.html.erb +1 -1
- data/app/views/create_types/index.html.erb +1 -1
- data/app/views/create_types/show.html.erb +1 -1
- data/app/views/creates/_form.html.erb +1 -1
- data/app/views/form_of_works/index.html.erb +1 -1
- data/app/views/form_of_works/show.html.erb +1 -1
- data/app/views/frequencies/index.html.erb +1 -1
- data/app/views/frequencies/show.html.erb +1 -1
- data/app/views/identifier_types/index.html.erb +1 -1
- data/app/views/identifier_types/show.html.erb +1 -1
- data/app/views/items/_form.html.erb +13 -33
- data/app/views/items/index.html+phone.erb +3 -3
- data/app/views/items/index.html.erb +3 -3
- data/app/views/items/show.html+phone.erb +5 -5
- data/app/views/items/show.html.erb +119 -134
- data/app/views/languages/index.html.erb +1 -1
- data/app/views/languages/show.html.erb +1 -1
- data/app/views/layouts/agents.html.erb +2 -2
- data/app/views/layouts/items.html.erb +1 -1
- data/app/views/layouts/manifestations.html.erb +4 -4
- data/app/views/licenses/index.html.erb +1 -1
- data/app/views/licenses/show.html.erb +1 -1
- data/app/views/manifestation_relationship_types/index.html.erb +1 -1
- data/app/views/manifestation_relationship_types/show.html.erb +1 -1
- data/app/views/manifestation_relationships/_form.html.erb +1 -1
- data/app/views/manifestations/_call_number.html.erb +3 -3
- 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/_export_detail.html.erb +0 -1
- data/app/views/manifestations/_export_list.html.erb +3 -4
- data/app/views/manifestations/_form.html.erb +8 -31
- data/app/views/manifestations/_identifier_fields.html.erb +1 -1
- 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.txt.erb +1 -1
- data/app/views/manifestations/_pub_year_facet.html.erb +1 -1
- data/app/views/manifestations/_reservable_facet.html.erb +2 -2
- data/app/views/manifestations/_show_creators.html.erb +1 -1
- data/app/views/manifestations/_show_detail_librarian.html.erb +13 -37
- data/app/views/manifestations/_show_detail_user.html.erb +13 -25
- data/app/views/manifestations/_show_holding.html+phone.erb +3 -3
- data/app/views/manifestations/_show_holding.html.erb +2 -2
- data/app/views/manifestations/explain.sru +9 -0
- data/app/views/manifestations/index.atom.builder +1 -1
- data/app/views/manifestations/index.html.erb +7 -7
- data/app/views/manifestations/index.opds.builder +1 -1
- data/app/views/manifestations/index.rdf.builder +3 -3
- data/app/views/manifestations/index.rss.builder +3 -3
- data/app/views/manifestations/index.sru.builder +101 -0
- data/app/views/manifestations/index.txt.erb +1 -0
- data/app/views/manifestations/show.txt.erb +1 -0
- data/app/views/medium_of_performances/index.html.erb +1 -1
- data/app/views/medium_of_performances/show.html.erb +1 -1
- data/app/views/notifier/manifestation_info.en.text.erb +1 -1
- data/app/views/notifier/manifestation_info.ja.text.erb +1 -1
- data/app/views/picture_files/edit.html.erb +0 -4
- data/app/views/produce_types/index.html.erb +1 -1
- data/app/views/produce_types/show.html.erb +1 -1
- data/app/views/produces/_form.html.erb +1 -1
- data/app/views/realize_types/index.html.erb +1 -1
- data/app/views/realize_types/show.html.erb +1 -1
- data/app/views/realizes/_form.html.erb +1 -1
- data/app/views/resource_import_files/_results.html.erb +0 -6
- data/app/views/resource_import_files/new.html.erb +2 -2
- data/app/views/resource_import_results/index.html.erb +11 -0
- data/app/views/resource_import_results/index.txt.erb +3 -0
- data/app/views/series_statements/_form.html.erb +8 -6
- data/app/views/series_statements/show.html.erb +0 -12
- data/config/locales/translation_en.yml +1 -28
- data/config/locales/translation_ja.yml +3 -30
- data/config/routes.rb +0 -2
- data/db/migrate/20081027150907_create_picture_files.rb +2 -0
- data/db/migrate/20160319144230_create_issn_records.rb +11 -0
- data/db/migrate/20160506144040_create_isbn_records.rb +11 -0
- data/db/migrate/20170116134107_create_issn_record_and_manifestations.rb +11 -0
- data/db/migrate/20170116134120_create_isbn_record_and_manifestations.rb +11 -0
- data/db/migrate/20190102034126_create_doi_records.rb +13 -0
- data/db/migrate/20190311154610_create_periodicals.rb +10 -0
- data/db/migrate/20190312033839_create_periodical_and_manifestations.rb +11 -0
- data/db/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb +21 -0
- data/lib/enju_biblio/openurl.rb +1 -5
- data/lib/enju_biblio/porta_cql.rb +282 -0
- data/lib/enju_biblio/sru.rb +83 -0
- data/lib/enju_biblio/version.rb +1 -1
- data/lib/enju_biblio.rb +2 -0
- data/lib/generators/enju_biblio/setup/setup_generator.rb +0 -2
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/agent_relationship_types.yml +3 -3
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/agent_types.yml +2 -4
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/carrier_types.yml +8 -26
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/content_types.yml +12 -24
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/create_types.yml +4 -22
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/form_of_works.yml +1 -1
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/frequencies.yml +9 -18
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/languages.yml +2 -4
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/licenses.yml +2 -2
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/manifestation_relationship_types.yml +2 -4
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/medium_of_performances.yml +15 -0
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/produce_types.yml +2 -19
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/realize_types.yml +3 -21
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_isbn_which_is_already_imported/assigns_a_newly_created_import_request_as_import_request.yml +121 -0
- data/spec/controllers/content_types_controller_spec.rb +1 -1
- data/spec/controllers/items_controller_spec.rb +1 -59
- data/spec/controllers/manifestations_controller_spec.rb +19 -49
- data/spec/dummy/app/helpers/application_helper.rb +1 -1
- data/spec/dummy/app/models/user.rb +4 -0
- data/spec/dummy/bin/bundle +1 -1
- data/spec/dummy/bin/setup +1 -3
- data/spec/dummy/bin/update +4 -2
- data/spec/dummy/bin/yarn +3 -3
- data/spec/dummy/config/application.rb +1 -2
- data/spec/dummy/config/database.yml +70 -9
- data/spec/dummy/config/initializers/assets.rb +2 -2
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/002_devise_create_users.rb +1 -0
- data/spec/dummy/db/migrate/113_create_events.rb +2 -4
- data/spec/dummy/db/migrate/154_create_messages.rb +4 -8
- data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +3 -3
- data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +2 -4
- data/spec/dummy/db/migrate/20090519203307_create_participates.rb +2 -4
- data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +2 -2
- data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +1 -0
- data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140524135607_create_bookmark_stat_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140720192418_add_default_library_id_to_event_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20140812152348_create_event_export_files.rb +1 -1
- data/spec/dummy/db/migrate/20140812153137_create_event_export_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140814070854_add_default_event_category_id_to_event_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20151128142913_create_places.rb +14 -0
- data/spec/dummy/db/migrate/20151201163718_add_place_id_to_event.rb +5 -0
- data/spec/dummy/db/migrate/20160703184258_add_most_recent_to_event_import_file_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160703184311_add_most_recent_to_event_export_file_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160813191533_add_book_jacket_source_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20160813191820_add_screenshot_generator_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20160815045420_add_most_recent_to_bookmark_stat_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20170116150432_create_jpno_records.rb +10 -0
- data/spec/dummy/db/migrate/20171126072934_create_ndla_records.rb +10 -0
- data/spec/dummy/db/migrate/20180107162659_add_constraints_to_most_recent_for_message_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107162711_add_constraints_to_most_recent_for_message_request_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107164558_add_constraints_to_most_recent_for_event_import_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107164617_add_constraints_to_most_recent_for_event_export_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107172413_add_constraints_to_most_recent_for_bookmark_stat_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180709023035_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb +36 -0
- data/spec/dummy/db/migrate/20180709023036_add_missing_unique_indices.acts_as_taggable_on_engine.rb +26 -0
- data/spec/dummy/db/migrate/20180709023037_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +20 -0
- data/spec/dummy/db/migrate/20180709023038_add_missing_taggable_index.acts_as_taggable_on_engine.rb +15 -0
- data/spec/dummy/db/migrate/20180709023039_change_collation_for_tag_names.acts_as_taggable_on_engine.rb +15 -0
- data/spec/dummy/db/migrate/20180709023040_add_missing_indexes_on_taggings.acts_as_taggable_on_engine.rb +23 -0
- data/spec/dummy/db/migrate/20180709161346_add_created_at_to_tag.rb +6 -0
- data/spec/dummy/db/migrate/20181119170645_add_foreign_key_to_events_referencing_event_categories.rb +5 -0
- data/spec/dummy/db/migrate/20190501043418_create_ndl_bib_id_records.rb +10 -0
- data/spec/dummy/db/migrate/20190508160525_create_retains.rb +10 -0
- data/spec/dummy/db/migrate/20190630113817_add_display_name_translations_to_library_group.rb +12 -0
- data/spec/dummy/db/migrate/20190630115523_add_login_banner_translations_to_library_group.rb +6 -0
- data/spec/dummy/db/migrate/20190630151446_add_display_name_translations_to_role.rb +5 -0
- data/spec/dummy/db/migrate/20190630153136_add_display_name_translations_to_event.rb +6 -0
- data/spec/dummy/db/migrate/20190706052525_add_display_name_translations_to_circulation_status.rb +5 -0
- data/spec/dummy/db/schema.rb +335 -221
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/factories/create_types.rb +8 -7
- data/spec/factories/produce_types.rb +8 -7
- data/spec/factories/realize_types.rb +8 -7
- data/spec/factories/series_statement.rb +3 -4
- data/spec/fixtures/agent_relationship_types.yml +8 -7
- data/spec/fixtures/agent_types.yml +11 -10
- data/spec/fixtures/carrier_types.yml +16 -15
- data/spec/fixtures/content_types.yml +20 -31
- data/spec/fixtures/create_types.yml +12 -15
- data/spec/fixtures/creates.yml +0 -2
- data/spec/fixtures/form_of_works.yml +11 -10
- data/spec/fixtures/frequencies.yml +17 -25
- data/spec/fixtures/items.yml +11 -12
- data/spec/fixtures/languages.yml +11 -11
- data/spec/fixtures/libraries.yml +30 -30
- data/spec/fixtures/library_groups.yml +11 -6
- data/spec/fixtures/licenses.yml +8 -7
- data/spec/fixtures/manifestation_relationship_types.yml +12 -11
- data/spec/fixtures/manifestations.yml +0 -1
- data/spec/fixtures/medium_of_performances.yml +10 -9
- data/spec/fixtures/picture_files.yml +2 -0
- data/spec/fixtures/produce_types.yml +10 -11
- data/spec/fixtures/produces.yml +0 -2
- data/spec/fixtures/profiles.yml +8 -5
- data/spec/fixtures/realize_types.yml +11 -13
- data/spec/fixtures/realizes.yml +0 -2
- data/spec/fixtures/request_status_types.yml +14 -14
- data/spec/fixtures/request_types.yml +13 -13
- data/spec/fixtures/resource_export_files.yml +1 -1
- data/spec/fixtures/resource_import_results.yml +2 -2
- data/spec/fixtures/roles.yml +22 -5
- data/spec/fixtures/shelves.yml +16 -16
- data/spec/fixtures/user_groups.yml +12 -12
- data/spec/fixtures/user_has_roles.yml +3 -4
- data/spec/fixtures/users.yml +0 -3
- data/spec/models/agent_relationship_type_spec.rb +8 -7
- data/spec/models/agent_type_spec.rb +8 -7
- data/spec/models/carrier_type_spec.rb +12 -11
- data/spec/models/content_type_spec.rb +8 -7
- data/spec/models/create_type_spec.rb +8 -7
- data/spec/models/doi_record_spec.rb +19 -0
- data/spec/models/form_of_work_spec.rb +8 -7
- data/spec/models/frequency_spec.rb +8 -7
- data/spec/models/item_spec.rb +0 -7
- data/spec/models/language_spec.rb +10 -9
- data/spec/models/license_spec.rb +8 -7
- data/spec/models/manifestation_relationship_type_spec.rb +8 -7
- data/spec/models/manifestation_spec.rb +81 -24
- data/spec/models/medium_of_performance_spec.rb +8 -7
- data/spec/models/periodical_and_manifestation_spec.rb +17 -0
- data/spec/models/periodical_spec.rb +16 -0
- data/spec/models/picture_file_spec.rb +2 -0
- data/spec/models/produce_type_spec.rb +8 -7
- data/spec/models/realize_type_spec.rb +8 -7
- data/spec/models/resource_export_file_spec.rb +9 -62
- data/spec/models/resource_import_file_spec.rb +14 -44
- data/spec/rails_helper.rb +8 -4
- data/spec/system/manifestations_spec.rb +0 -30
- data/spec/views/items/index.html.erb_spec.rb +6 -7
- data/spec/views/manifestations/index.html.erb_spec.rb +1 -1
- data/spec/views/manifestations/index.rdf.builder_spec.rb +1 -0
- data/spec/views/manifestations/{index.txt.ruby_spec.rb → index.txt.erb_spec.rb} +1 -1
- data/spec/views/manifestations/{show.txt.ruby_spec.rb → show.txt.erb_spec.rb} +2 -2
- data/spec/views/resource_import_results/show.html.erb_spec.rb +1 -1
- metadata +560 -718
- data/app/controllers/item_custom_properties_controller.rb +0 -69
- data/app/controllers/manifestation_custom_properties_controller.rb +0 -69
- data/app/models/item_custom_property.rb +0 -18
- data/app/models/item_custom_value.rb +0 -17
- data/app/models/manifestation_custom_property.rb +0 -18
- data/app/models/manifestation_custom_value.rb +0 -17
- data/app/policies/item_custom_property_policy.rb +0 -21
- data/app/policies/manifestation_custom_property_policy.rb +0 -21
- data/app/views/agent_import_results/index.txt.ruby +0 -5
- data/app/views/item_custom_properties/_form.html.erb +0 -32
- data/app/views/item_custom_properties/edit.html.erb +0 -13
- data/app/views/item_custom_properties/index.html.erb +0 -43
- data/app/views/item_custom_properties/new.html.erb +0 -12
- data/app/views/item_custom_properties/show.html.erb +0 -28
- data/app/views/items/_item.json.jbuilder +0 -17
- data/app/views/items/index.json.jbuilder +0 -5
- data/app/views/items/show.json.jbuilder +0 -1
- data/app/views/manifestation_custom_properties/_form.html.erb +0 -32
- data/app/views/manifestation_custom_properties/edit.html.erb +0 -13
- data/app/views/manifestation_custom_properties/index.html.erb +0 -43
- data/app/views/manifestation_custom_properties/new.html.erb +0 -12
- data/app/views/manifestation_custom_properties/show.html.erb +0 -28
- data/app/views/manifestations/index.txt.ruby +0 -7
- data/app/views/manifestations/show.json.jbuilder +0 -2
- data/app/views/manifestations/show.txt.ruby +0 -5
- data/app/views/resource_import_results/index.txt.ruby +0 -5
- data/db/migrate/20190818075603_add_memo_to_manifestation.rb +0 -5
- data/db/migrate/20190818075628_add_memo_to_item.rb +0 -5
- data/db/migrate/20200425072340_create_manifestation_custom_properties.rb +0 -12
- data/db/migrate/20200425072349_create_item_custom_properties.rb +0 -12
- data/db/migrate/20200425074758_create_manifestation_custom_values.rb +0 -12
- data/db/migrate/20200425074822_create_item_custom_values.rb +0 -12
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/agents.yml +0 -19
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_import_custom_values.yml +0 -121
- data/spec/cassette_library/resource_import_results/index_txt_ruby/renders_a_list_of_resource_import_results.yml +0 -121
- data/spec/controllers/item_custom_properties_controller_spec.rb +0 -449
- data/spec/controllers/manifestation_custom_properties_controller_spec.rb +0 -449
- data/spec/dummy/db/migrate/20081117143156_create_inventory_files.rb +0 -18
- data/spec/dummy/db/migrate/20081117143455_create_inventories.rb +0 -17
- data/spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb +0 -15
- data/spec/dummy/db/migrate/20091202124834_create_versions.rb +0 -18
- data/spec/dummy/db/migrate/20100525171356_acts_as_taggable_on_migration.rb +0 -30
- data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +0 -5
- data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +0 -6
- data/spec/dummy/db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb +0 -5
- data/spec/dummy/db/migrate/20150421023923_create_identities.rb +0 -14
- data/spec/dummy/db/migrate/20151126005552_add_provider_to_identity.rb +0 -5
- data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +0 -18
- data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +0 -22
- data/spec/factories/item_custom_property.rb +0 -6
- data/spec/factories/item_custom_value.rb +0 -6
- data/spec/factories/manifestation_custom_property.rb +0 -6
- data/spec/factories/manifestation_custom_value.rb +0 -6
- data/spec/fixtures/carrier_type_has_checkout_types.yml +0 -31
- data/spec/fixtures/checkout_stat_has_manifestations.yml +0 -24
- data/spec/fixtures/checkout_stat_has_users.yml +0 -24
- data/spec/fixtures/checkout_types.yml +0 -34
- data/spec/fixtures/circulation_statuses.yml +0 -136
- data/spec/fixtures/inventory_files.yml +0 -40
- data/spec/fixtures/item_custom_properties.yml +0 -24
- data/spec/fixtures/manifestation_checkout_stats.yml +0 -29
- data/spec/fixtures/manifestation_custom_properties.yml +0 -24
- data/spec/fixtures/manifestation_reserve_stats.yml +0 -29
- data/spec/fixtures/reserve_stat_has_manifestations.yml +0 -24
- data/spec/fixtures/reserve_stat_has_users.yml +0 -24
- data/spec/fixtures/reserve_transitions.yml +0 -104
- data/spec/fixtures/reserves.yml +0 -143
- data/spec/fixtures/use_restrictions.yml +0 -93
- data/spec/fixtures/user_checkout_stats.yml +0 -28
- data/spec/fixtures/user_group_has_checkout_types.yml +0 -111
- data/spec/fixtures/user_reserve_stats.yml +0 -28
- data/spec/models/item_custom_property_spec.rb +0 -18
- data/spec/models/item_custom_value_spec.rb +0 -17
- data/spec/models/manifestation_custom_property_spec.rb +0 -18
- data/spec/models/manifestation_custom_value_spec.rb +0 -17
- data/spec/requests/item_custom_properties_spec.rb +0 -129
- data/spec/requests/manifestation_custom_properties_spec.rb +0 -129
- data/spec/routing/item_custom_properties_routing_spec.rb +0 -38
- data/spec/routing/manifestation_custom_properties_routing_spec.rb +0 -38
- data/spec/system/items_spec.rb +0 -121
- data/spec/system/series_statements_spec.rb +0 -16
- data/spec/views/agent_import_results/index.html.erb_spec.rb +0 -29
- data/spec/views/agent_import_results/index.txt.ruby_spec.rb +0 -20
- data/spec/views/agent_import_results/show.html.erb_spec.rb +0 -24
- data/spec/views/item_custom_properties/edit.html.erb_spec.rb +0 -21
- data/spec/views/item_custom_properties/index.html.erb_spec.rb +0 -25
- data/spec/views/item_custom_properties/new.html.erb_spec.rb +0 -21
- data/spec/views/item_custom_properties/show.html.erb_spec.rb +0 -16
- data/spec/views/items/index.json.jbuilder_spec.rb +0 -15
- data/spec/views/items/show.json.jbuilder_spec.rb +0 -15
- data/spec/views/manifestation_custom_properties/edit.html.erb_spec.rb +0 -21
- data/spec/views/manifestation_custom_properties/index.html.erb_spec.rb +0 -25
- data/spec/views/manifestation_custom_properties/new.html.erb_spec.rb +0 -21
- data/spec/views/manifestation_custom_properties/show.html.erb_spec.rb +0 -16
- data/spec/views/manifestations/show.json.jbuilder_spec.rb +0 -16
- data/spec/views/resource_import_results/index.txt.ruby_spec.rb +0 -22
@@ -23,7 +23,7 @@
|
|
23
23
|
</div>
|
24
24
|
<div class="field">
|
25
25
|
<%= f.label :manifestation_relationship_type_id %><br />
|
26
|
-
<%= f.select(:manifestation_relationship_type_id, @manifestation_relationship_types.collect{|r| [r.display_name
|
26
|
+
<%= f.select(:manifestation_relationship_type_id, @manifestation_relationship_types.collect{|r| [r.display_name, r.id]}) -%>
|
27
27
|
</div>
|
28
28
|
<div class="actions">
|
29
29
|
<%= f.submit %>
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<table class="call_number_table">
|
2
2
|
<tr>
|
3
3
|
<td class="call_number_table">
|
4
|
-
<%= item.shelf.library.display_name
|
4
|
+
<%= item.shelf.library.display_name -%>
|
5
5
|
<br />
|
6
|
-
<%= link_to item.shelf.display_name
|
6
|
+
<%= link_to item.shelf.display_name, item.shelf -%>
|
7
7
|
<br />
|
8
8
|
<% if defined?(EnjuCirculation) %>
|
9
|
-
<%= item.circulation_status.display_name
|
9
|
+
<%= item.circulation_status.display_name if item.circulation_status -%>
|
10
10
|
<% end %>
|
11
11
|
|
12
12
|
</td>
|
@@ -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(
|
7
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(filtered_params.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(
|
7
|
+
<%= link_to "#{t('classification.category', number: category.value)} #{category_name(category.value)} (#{category.count})", url_for(filtered_params.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(
|
12
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(filtered_params.merge(classification: nil, page: nil, view: nil, only_path: true)) -%></li>
|
13
13
|
<%- end -%>
|
14
14
|
</ul>
|
15
15
|
<%- else -%>
|
@@ -4,5 +4,4 @@
|
|
4
4
|
<li><%= link_to 'RDF/XML', manifestation_url(@manifestation, format: :rdf) %></li>
|
5
5
|
<li><%= link_to 'MODS', manifestation_url(@manifestation, format: :mods) %></li>
|
6
6
|
<li><%= link_to 'TSV', manifestation_url(@manifestation, format: :txt) %></li>
|
7
|
-
<li><%= link_to 'JSON', manifestation_url(@manifestation, format: :json) %></li>
|
8
7
|
</ul>
|
@@ -1,7 +1,6 @@
|
|
1
1
|
<h4><%= t('page.other_format') %></h4>
|
2
2
|
<ul>
|
3
|
-
<li><%= link_to 'RDF/XML', url_for(
|
4
|
-
<li><%= link_to 'MODS', url_for(
|
5
|
-
<li><%= link_to 'TSV', url_for(
|
6
|
-
<li><%= link_to 'JSON', url_for(request.params.merge(format: :json, only_path: true)) %></li>
|
3
|
+
<li><%= link_to 'RDF/XML', url_for(filtered_params.merge(format: :rdf, only_path: true)) %>
|
4
|
+
<li><%= link_to 'MODS', url_for(filtered_params.merge(format: :mods, only_path: true)) %></li>
|
5
|
+
<li><%= link_to 'TSV', url_for(filtered_params.merge(format: :txt, only_path: true)) %></li>
|
7
6
|
</ul>
|
@@ -71,7 +71,7 @@
|
|
71
71
|
|
72
72
|
<div class="field" id="creator_form">
|
73
73
|
<%= f.label :creator_string -%><br />
|
74
|
-
<%= f.fields_for :creators
|
74
|
+
<%= f.fields_for :creators do |creator_form| %>
|
75
75
|
<%= render 'creator_fields', f: creator_form %>
|
76
76
|
<% end %>
|
77
77
|
<div class="links">
|
@@ -81,7 +81,7 @@
|
|
81
81
|
|
82
82
|
<div class="field" id="contributor_form">
|
83
83
|
<%= f.label :contributor_string -%><br />
|
84
|
-
<%= f.fields_for :contributors
|
84
|
+
<%= f.fields_for :contributors do |contributor_form| %>
|
85
85
|
<%= render 'contributor_fields', f: contributor_form %>
|
86
86
|
<% end %>
|
87
87
|
<div class="links">
|
@@ -91,7 +91,7 @@
|
|
91
91
|
|
92
92
|
<div class="field" id="publisher_form">
|
93
93
|
<%= f.label :publisher_string -%><br />
|
94
|
-
<%= f.fields_for :publishers
|
94
|
+
<%= f.fields_for :publishers do |publisher_form| %>
|
95
95
|
<%= render 'publisher_fields', f: publisher_form %>
|
96
96
|
<% end %>
|
97
97
|
<div class="links">
|
@@ -116,19 +116,19 @@
|
|
116
116
|
|
117
117
|
<div class="field">
|
118
118
|
<%= f.label t('activerecord.models.content_type') -%>
|
119
|
-
<%= f.select(:content_type_id, @content_types.collect{|c| [c.display_name
|
119
|
+
<%= f.select(:content_type_id, @content_types.collect{|c| [c.display_name, c.id]}) -%>
|
120
120
|
|
121
121
|
<%= f.label t('activerecord.models.carrier_type') -%>
|
122
|
-
<%= f.select(:carrier_type_id, @carrier_types.collect{|c| [c.display_name
|
122
|
+
<%= f.select(:carrier_type_id, @carrier_types.collect{|c| [c.display_name, c.id]}) -%>
|
123
123
|
<!-- TODO: Formの切り替え時に入力項目をAjaxで書き換える -->
|
124
124
|
</div>
|
125
125
|
|
126
126
|
<div class="field">
|
127
127
|
<%= f.label t('activerecord.models.frequency') -%>
|
128
|
-
<%= f.select(:frequency_id, @frequencies.collect{|frequency| [frequency.display_name
|
128
|
+
<%= f.select(:frequency_id, @frequencies.collect{|frequency| [frequency.display_name, frequency.id]}) -%>
|
129
129
|
|
130
130
|
<%= f.label t('activerecord.models.language') -%>
|
131
|
-
<%= f.select(:language_id, @languages.collect{|language| [language.display_name
|
131
|
+
<%= f.select(:language_id, @languages.collect{|language| [language.display_name, language.id]}) -%>
|
132
132
|
</div>
|
133
133
|
|
134
134
|
<div class="field">
|
@@ -184,28 +184,10 @@
|
|
184
184
|
|
185
185
|
<div class="field">
|
186
186
|
<%= f.label t('role.required_role') -%>
|
187
|
-
<%= f.select(:required_role_id, @roles.collect{|r| [r.display_name
|
187
|
+
<%= f.select(:required_role_id, @roles.collect{|r| [r.display_name, r.id]}) -%>
|
188
188
|
</div>
|
189
189
|
|
190
|
-
<% if ManifestationCustomProperty.first %>
|
191
|
-
<div class="field">
|
192
|
-
<% ManifestationCustomProperty.order(:position).each do |c| %>
|
193
|
-
<% @manifestation.manifestation_custom_values.new(manifestation_custom_property: c) unless @manifestation.manifestation_custom_values.map{|value| value.manifestation_custom_property_id}.include?(c.id) %>
|
194
|
-
<% end %>
|
195
|
-
<%= f.fields_for :manifestation_custom_values do |custom_form| %>
|
196
|
-
<%= custom_form.label custom_form.object.manifestation_custom_property.name.to_sym, custom_form.object.manifestation_custom_property.display_name.localize %>
|
197
|
-
<%= custom_form.hidden_field :manifestation_custom_property_id %>
|
198
|
-
<%= custom_form.text_field :value, class: 'form-control' %>
|
199
|
-
<% end %>
|
200
|
-
</div>
|
201
|
-
<% end %>
|
202
|
-
|
203
190
|
<div class="field">
|
204
|
-
<%= f.label :abstract -%><br />
|
205
|
-
<%= f.text_area :abstract, class: 'resource_textarea' -%>
|
206
|
-
</div>
|
207
|
-
|
208
|
-
<div class="form-group">
|
209
191
|
<%= f.label :description -%><br />
|
210
192
|
<%= f.text_area :description, class: 'resource_textarea' -%>
|
211
193
|
</div>
|
@@ -215,11 +197,6 @@
|
|
215
197
|
<%= f.text_area :note, class: 'resource_textarea' -%>
|
216
198
|
</div>
|
217
199
|
|
218
|
-
<div class="field">
|
219
|
-
<%= f.label :memo -%><br />
|
220
|
-
<%= f.text_area :memo, class: 'resource_textarea' -%>
|
221
|
-
</div>
|
222
|
-
|
223
200
|
<div class="actions">
|
224
201
|
<%= f.hidden_field :parent_id %>
|
225
202
|
<%= f.hidden_field :lock_version %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="nested-fields">
|
2
|
-
<%= f.select(:identifier_type_id, @identifier_types.collect{|i| [i.display_name
|
2
|
+
<%= f.select(:identifier_type_id, @identifier_types.collect{|i| [i.display_name, i.id]}) %>
|
3
3
|
<%= f.text_field :body, class: 'resource_identifier_body', style: 'ime-mode: disabled' -%>
|
4
4
|
<%= link_to_remove_association t('page.remove'), f, data: {confirm: t('page.are_you_sure')} %><br />
|
5
5
|
</div>
|
@@ -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(
|
14
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(filtered_params.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(
|
9
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(filtered_params.merge(library: nil, page: nil, view: nil, only_path: true)) -%></li>
|
10
10
|
<%- end -%>
|
11
11
|
</ul>
|
@@ -1 +1 @@
|
|
1
|
-
<%= manifestation.
|
1
|
+
<%= manifestation.to_csv(format: :txt, role: current_user_role_name) -%>
|
@@ -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(
|
9
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(filtered_params.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(
|
7
|
+
<%= link_to "#{localized_boolean(facet.value)} (#{facet.count})", url_for(filtered_params.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(
|
12
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(filtered_params.merge(reservable: nil, page: nil, view: nil, only_path: true)) -%></li>
|
13
13
|
<%- end -%>
|
14
14
|
</ul>
|
@@ -17,6 +17,6 @@
|
|
17
17
|
<%- end -%>
|
18
18
|
<% if defined?(EnjuSubject) %>
|
19
19
|
<% manifestation.classifications.each_with_index do |classification| %>
|
20
|
-
<%= link_to "#{classification.classification_type.display_name
|
20
|
+
<%= link_to "#{classification.classification_type.display_name}: #{classification.category}", manifestations_path(query: "classification_sm:#{classification.classification_type.name}_#{classification.category}") %>
|
21
21
|
<% end %>
|
22
22
|
<% end %>
|
@@ -3,27 +3,23 @@
|
|
3
3
|
<div id="detail">
|
4
4
|
<% cache([manifestation, fragment: 'show_detail_librarian_html', role: current_user_role_name, locale: @locale]) do %>
|
5
5
|
<table class="table table-striped" id="resource_detail">
|
6
|
-
<%= embed_content(manifestation)
|
7
|
-
<tr>
|
8
|
-
<td style="width: 200px"><%= t('activerecord.attributes.manifestation.original_title') -%>:</td>
|
9
|
-
<td style="width: 500px"><%= manifestation.original_title -%></td>
|
10
|
-
</tr>
|
6
|
+
<%= embed_content(manifestation) -%>
|
11
7
|
<% if manifestation.title_transcription? %>
|
12
8
|
<tr>
|
13
|
-
<td><%= t('activerecord.attributes.manifestation.title_transcription') -%>:</td>
|
14
|
-
<td><%= manifestation.title_transcription -%></td>
|
9
|
+
<td style="width: 200px"><%= t('activerecord.attributes.manifestation.title_transcription') -%>:</td>
|
10
|
+
<td style="width: 500px"><%= manifestation.title_transcription -%></td>
|
15
11
|
</tr>
|
16
12
|
<% end %>
|
17
13
|
<% if manifestation.title_alternative? %>
|
18
14
|
<tr>
|
19
|
-
<td><%= t('activerecord.attributes.manifestation.title_alternative') -%>:</td>
|
20
|
-
<td><%= manifestation.title_alternative -%></td>
|
15
|
+
<td style="width: 200px"><%= t('activerecord.attributes.manifestation.title_alternative') -%>:</td>
|
16
|
+
<td style="width: 500px"><%= manifestation.title_alternative -%></td>
|
21
17
|
</tr>
|
22
18
|
<% end %>
|
23
19
|
<%- if manifestation.series_statements.exists? -%>
|
24
20
|
<tr>
|
25
|
-
<td><%= t('activerecord.models.series_statement') -%>:</td>
|
26
|
-
<td>
|
21
|
+
<td style="width: 200px"><%= t('activerecord.models.series_statement') -%>:</td>
|
22
|
+
<td style="width: 500px">
|
27
23
|
<%= render 'show_series_detail', manifestation: manifestation %>
|
28
24
|
<%- unless manifestation.identifier_contents(:issn).empty? -%>
|
29
25
|
(<%= t('activerecord.attributes.manifestation.issn') -%>: <%= manifestation.identifier_contents(:issn).join(" ") -%>)
|
@@ -33,15 +29,15 @@
|
|
33
29
|
<% end %>
|
34
30
|
<%= render 'edition_and_number', manifestation: manifestation %>
|
35
31
|
<tr>
|
36
|
-
<td><%= t('page.form') -%>:</td>
|
37
|
-
<td>
|
38
|
-
<%= form_icon(manifestation.carrier_type) -%> <%= manifestation.carrier_type.display_name
|
39
|
-
<%= content_type_icon(manifestation.manifestation_content_type) -%> <%= manifestation.manifestation_content_type.display_name
|
32
|
+
<td style="width: 200px"><%= t('page.form') -%>:</td>
|
33
|
+
<td style="width: 500px">
|
34
|
+
<%= form_icon(manifestation.carrier_type) -%> <%= manifestation.carrier_type.display_name -%> /
|
35
|
+
<%= content_type_icon(manifestation.manifestation_content_type) -%> <%= manifestation.manifestation_content_type.display_name if manifestation.manifestation_content_type -%>
|
40
36
|
</td>
|
41
37
|
</tr>
|
42
38
|
<tr>
|
43
39
|
<td><%= t('activerecord.models.language') -%>:</td>
|
44
|
-
<td><span itemprop="inLanguage"><%= manifestation.language.display_name
|
40
|
+
<td><span itemprop="inLanguage"><%= manifestation.language.display_name -%></span></td>
|
45
41
|
</tr>
|
46
42
|
<tr>
|
47
43
|
<td><%= t('activerecord.attributes.manifestation.publication_place') -%>:</td>
|
@@ -75,7 +71,7 @@
|
|
75
71
|
<ul>
|
76
72
|
<% manifestation.identifiers.each do |identifier| %>
|
77
73
|
<li>
|
78
|
-
<%= identifier.identifier_type.display_name
|
74
|
+
<%= identifier.identifier_type.display_name %>:
|
79
75
|
<%= identifier_link(identifier) %>
|
80
76
|
</li>
|
81
77
|
<% end %>
|
@@ -99,38 +95,18 @@
|
|
99
95
|
<td><%= t('page.updated_at') -%>:</td>
|
100
96
|
<td><%=l manifestation.updated_at if manifestation.updated_at -%></td>
|
101
97
|
</tr>
|
102
|
-
<tr>
|
103
|
-
<td><%= t('activerecord.attributes.manifestation.abstract') -%>:</td>
|
104
|
-
<td>
|
105
|
-
<%= raw simple_format(h(manifestation.abstract)) -%>
|
106
|
-
</td>
|
107
|
-
</tr>
|
108
98
|
<tr>
|
109
99
|
<td><%= t('activerecord.attributes.manifestation.description') -%>:</td>
|
110
100
|
<td>
|
111
101
|
<%= raw simple_format(h(manifestation.description)) -%>
|
112
102
|
</td>
|
113
103
|
</tr>
|
114
|
-
<% @manifestation.manifestation_custom_values.each do |value| %>
|
115
|
-
<tr>
|
116
|
-
<td><%= value.manifestation_custom_property.display_name.localize -%>:</td>
|
117
|
-
<td>
|
118
|
-
<%= value.value -%>
|
119
|
-
</td>
|
120
|
-
</tr>
|
121
|
-
<% end %>
|
122
104
|
<tr>
|
123
105
|
<td><%= t('activerecord.attributes.manifestation.note') -%>:</td>
|
124
106
|
<td>
|
125
107
|
<%= raw simple_format(h(manifestation.note)) -%>
|
126
108
|
</td>
|
127
109
|
</tr>
|
128
|
-
<tr>
|
129
|
-
<td><%= t('activerecord.attributes.manifestation.memo') -%>:</td>
|
130
|
-
<td>
|
131
|
-
<%= simple_format(manifestation.memo) -%>
|
132
|
-
</td>
|
133
|
-
</tr>
|
134
110
|
</table>
|
135
111
|
<% end %>
|
136
112
|
<% if defined?(EnjuCirculation) %>
|
@@ -3,27 +3,23 @@
|
|
3
3
|
<div id="detail">
|
4
4
|
<% cache([manifestation, fragment: 'show_detail_user_html', role: current_user_role_name, locale: @locale]) do %>
|
5
5
|
<table class="table table-striped" id="resource_detail">
|
6
|
-
<%= embed_content(manifestation)
|
7
|
-
<tr>
|
8
|
-
<td style="width: 200px"><%= t('activerecord.attributes.manifestation.original_title') -%>:</td>
|
9
|
-
<td style="width: 500px"><%= manifestation.original_title -%></td>
|
10
|
-
</tr>
|
6
|
+
<%= embed_content(manifestation) -%>
|
11
7
|
<% if manifestation.title_transcription? %>
|
12
8
|
<tr>
|
13
|
-
<td><%= t('activerecord.attributes.manifestation.title_transcription') -%>:</td>
|
14
|
-
<td><%= manifestation.title_transcription -%></td>
|
9
|
+
<td style="width: 200px"><%= t('activerecord.attributes.manifestation.title_transcription') -%>:</td>
|
10
|
+
<td style="width: 500px"><%= manifestation.title_transcription -%></td>
|
15
11
|
</tr>
|
16
12
|
<% end %>
|
17
13
|
<% if manifestation.title_alternative? %>
|
18
14
|
<tr>
|
19
|
-
<td><%= t('activerecord.attributes.manifestation.title_alternative') -%>:</td>
|
20
|
-
<td><%= manifestation.title_alternative -%></td>
|
15
|
+
<td style="width: 200px"><%= t('activerecord.attributes.manifestation.title_alternative') -%>:</td>
|
16
|
+
<td style="width: 500px"><%= manifestation.title_alternative -%></td>
|
21
17
|
</tr>
|
22
18
|
<% end %>
|
23
19
|
<%- if manifestation.series_statements.exists? -%>
|
24
20
|
<tr>
|
25
|
-
<td><%= t('activerecord.models.series_statement') -%>:</td>
|
26
|
-
<td>
|
21
|
+
<td style="width: 200px"><%= t('activerecord.models.series_statement') -%>:</td>
|
22
|
+
<td style="width: 500px">
|
27
23
|
<%= render 'show_series_detail', manifestation: manifestation %>
|
28
24
|
<%- unless manifestation.identifier_contents(:issn).empty? -%>
|
29
25
|
(<%= t('activerecord.attributes.manifestation.issn') -%>: <%= manifestation.identifier_contents(:issn).join(" ") -%>)
|
@@ -33,15 +29,15 @@
|
|
33
29
|
<% end %>
|
34
30
|
<%= render 'edition_and_number', manifestation: manifestation %>
|
35
31
|
<tr>
|
36
|
-
<td><%= t('page.form') -%>:</td>
|
37
|
-
<td>
|
38
|
-
<%= form_icon(manifestation.carrier_type) -%> <%= manifestation.carrier_type.display_name
|
39
|
-
<%= content_type_icon(manifestation.manifestation_content_type) -%> <%= manifestation.manifestation_content_type.display_name
|
32
|
+
<td style="width: 200px"><%= t('page.form') -%>:</td>
|
33
|
+
<td style="width: 500px">
|
34
|
+
<%= form_icon(manifestation.carrier_type) -%> <%= manifestation.carrier_type.display_name -%> /
|
35
|
+
<%= content_type_icon(manifestation.manifestation_content_type) -%> <%= manifestation.manifestation_content_type.display_name if manifestation.manifestation_content_type -%>
|
40
36
|
</td>
|
41
37
|
</tr>
|
42
38
|
<tr>
|
43
39
|
<td><%= t('activerecord.models.language') -%>:</td>
|
44
|
-
<td><span itemprop="inLanguage"><%= manifestation.language.display_name
|
40
|
+
<td><span itemprop="inLanguage"><%= manifestation.language.display_name -%></span></td>
|
45
41
|
</tr>
|
46
42
|
<tr>
|
47
43
|
<td><%= t('activerecord.attributes.manifestation.publication_place') -%>:</td>
|
@@ -77,7 +73,7 @@
|
|
77
73
|
<ul>
|
78
74
|
<% manifestation.identifiers.each do |identifier| %>
|
79
75
|
<li>
|
80
|
-
<%= identifier.identifier_type.display_name
|
76
|
+
<%= identifier.identifier_type.display_name %>:
|
81
77
|
<%= identifier_link(identifier) %>
|
82
78
|
</li>
|
83
79
|
<% end %>
|
@@ -95,14 +91,6 @@
|
|
95
91
|
<td><%= t('page.updated_at') -%>:</td>
|
96
92
|
<td><%=l manifestation.updated_at if manifestation.updated_at -%></td>
|
97
93
|
</tr>
|
98
|
-
<% if manifestation.abstract.present? %>
|
99
|
-
<tr>
|
100
|
-
<td><%= t('activerecord.attributes.manifestation.abstract') -%>:</td>
|
101
|
-
<td>
|
102
|
-
<%= raw simple_format(h(manifestation.abstract)) -%>
|
103
|
-
</td>
|
104
|
-
</tr>
|
105
|
-
<% end %>
|
106
94
|
<% if manifestation.description.present? %>
|
107
95
|
<tr>
|
108
96
|
<td><%= t('activerecord.attributes.manifestation.description') -%>:</td>
|
@@ -9,10 +9,10 @@
|
|
9
9
|
<%- items.each do |item| -%>
|
10
10
|
<tr>
|
11
11
|
<td>
|
12
|
-
<%= item.shelf.library.display_name
|
12
|
+
<%= item.shelf.library.display_name %>
|
13
13
|
</td>
|
14
14
|
<td>
|
15
|
-
<%= item.shelf_display_name
|
15
|
+
<%= item.shelf_display_name -%>
|
16
16
|
</td>
|
17
17
|
<td>
|
18
18
|
<%= item.call_number -%>
|
@@ -25,7 +25,7 @@
|
|
25
25
|
<%- end -%>
|
26
26
|
</td>
|
27
27
|
<td>
|
28
|
-
<%= item.circulation_status.display_name
|
28
|
+
<%= item.circulation_status.display_name if item.circulation_status -%>
|
29
29
|
<%- if item.rent? -%>
|
30
30
|
(
|
31
31
|
<%= t('activerecord.attributes.checkout.due_date') -%>:
|
@@ -20,10 +20,10 @@
|
|
20
20
|
<%- end -%>
|
21
21
|
</td>
|
22
22
|
<td>
|
23
|
-
<%= link_to(item.shelf.library.display_name
|
23
|
+
<%= link_to(item.shelf.library.display_name, item.shelf.library, id: "library_item_#{item.id}") %>
|
24
24
|
</td>
|
25
25
|
<td>
|
26
|
-
<%= link_to(item.shelf_display_name
|
26
|
+
<%= link_to(item.shelf_display_name, item.shelf, id: "shelf_item_#{item.id}")-%>
|
27
27
|
<%= render 'items/shelf_picture', item: item -%>
|
28
28
|
</td>
|
29
29
|
<td>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<sru:explainResponse xmlns:sru="http://www.loc.gov/zing/srw/">
|
2
|
+
<sru:version>1.2</sru:version>
|
3
|
+
<sru:record>
|
4
|
+
<sru:recordPacking>XML</sru:recordPacking>
|
5
|
+
<sru:recordSchema>http://explain.z3950.org/dtd/2.1/</sru:recordSchema>
|
6
|
+
<sru:recordData>
|
7
|
+
</sru:recordData>
|
8
|
+
</sru:record>
|
9
|
+
</sru:explainResponse>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
atom_feed(url: manifestations_url(format: :atom)) do |feed|
|
2
|
-
feed.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name
|
2
|
+
feed.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name)
|
3
3
|
feed.updated(@manifestations.first ? @manifestations.first.created_at : Time.zone.now)
|
4
4
|
|
5
5
|
@manifestations.each do |manifestation|
|
@@ -43,7 +43,7 @@
|
|
43
43
|
t('page.per_page', num: 20) => 20,
|
44
44
|
t('page.per_page', num: 50) => 50,
|
45
45
|
t('page.per_page', num: 100) => 100,
|
46
|
-
}, selected:
|
46
|
+
}, selected: filtered_params[:per_page]) %>
|
47
47
|
<%= select_tag 'sort_by', options_for_select({
|
48
48
|
[t('page.sort_criteria.created_at'),
|
49
49
|
t('page.sort_criteria.date_desc')].join(" : ") => 'created_at:desc',
|
@@ -59,10 +59,10 @@
|
|
59
59
|
t('page.sort_criteria.title_asc')].join(" : ") => 'title:asc',
|
60
60
|
[t('page.title'),
|
61
61
|
t('page.sort_criteria.title_desc')].join(" : ") => 'title:desc',
|
62
|
-
}, selected:
|
62
|
+
}, selected: filtered_params[:sort_by] || 'created_at:desc') -%>
|
63
63
|
<%= hidden_field_tag 'query', @query -%>
|
64
64
|
<% [ :reservable, :carrier_type, :library, :language, :pub_year ].each do |p| -%>
|
65
|
-
<%= hidden_field_tag p,
|
65
|
+
<%= hidden_field_tag p, filtered_params[p] if filtered_params[p] -%>
|
66
66
|
<% end -%>
|
67
67
|
<%= submit_tag t('page.show') -%><br />
|
68
68
|
</p>
|
@@ -103,15 +103,15 @@
|
|
103
103
|
<% if @parent and policy(@parent).update? %>
|
104
104
|
<%= render 'submenu_parent' %>
|
105
105
|
<% end %>
|
106
|
-
<h3><%= link_to h("#{t('page.total')}: #{@count[:query_result]}"), url_for(
|
106
|
+
<h3><%= link_to h("#{t('page.total')}: #{@count[:query_result]}"), url_for(filtered_params.merge(action: 'index', view: nil, carrier_type: nil, library: nil, language: nil, subject: nil, only_path: true)) -%></h3>
|
107
107
|
<%- if @manifestations.total_count > 0 -%>
|
108
108
|
<%= render 'manifestations/all_facet' -%>
|
109
109
|
<%- end -%>
|
110
110
|
<div>
|
111
111
|
<%- if params[:library_id].blank? -%>
|
112
|
-
<%= link_to((image_tag 'icons/feed.png', size: '16x16', alt: t('page.feed'), class: 'enju_icon'), url_for(
|
112
|
+
<%= link_to((image_tag 'icons/feed.png', size: '16x16', alt: t('page.feed'), class: 'enju_icon'), url_for(filtered_params.merge(format: :rss, page: nil, library_id: nil, only_path: true))) -%> <%= link_to t('page.search_result_feed'), url_for(filtered_params.merge(format: :rss, page: nil, library_id: nil, commit: nil, only_path: true)) -%>
|
113
113
|
<%- else -%>
|
114
|
-
<%= link_to((image_tag 'icons/feed.png', size: '16x16', alt: t('page.feed'), class: 'enju_icon'), url_for(
|
114
|
+
<%= link_to((image_tag 'icons/feed.png', size: '16x16', alt: t('page.feed'), class: 'enju_icon'), url_for(filtered_params.merge(format: :rss, page: nil, only_path: true))) -%> <%= link_to t('page.search_result_feed'), url_for(filtered_params.merge(format: :rss, page: nil, commit: nil, only_path: true)) -%>
|
115
115
|
<%- end -%>
|
116
116
|
</div>
|
117
117
|
<%= render 'manifestations/export_list' %>
|
@@ -120,7 +120,7 @@
|
|
120
120
|
<% if defined?(EnjuBookmark) %>
|
121
121
|
<script type="text/javascript">
|
122
122
|
window.onload = function() {
|
123
|
-
$("#tag_cloud_list").load('<%= url_for(
|
123
|
+
$("#tag_cloud_list").load('<%= url_for(filtered_params.merge(view: "tag_cloud", only_path: true)) -%>', hideTagCloudSpinner);
|
124
124
|
}
|
125
125
|
|
126
126
|
function hideTagCloudSpinner(){
|
@@ -2,7 +2,7 @@ atom_feed(url: manifestations_url(format: :atom),
|
|
2
2
|
"xmlns:opds" => "http://opds-spec.org/2010/catalog",
|
3
3
|
"xmlns:jepa" => "http://www.jepa.or.jp/xmlns/atomPhonetics/1.1"
|
4
4
|
) do |feed|
|
5
|
-
feed.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name
|
5
|
+
feed.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name)
|
6
6
|
feed.updated(@manifestations.first ? @manifestations.first.created_at : Time.zone.now)
|
7
7
|
feed.link rel: 'start', href: manifestations_url(format: :opds), type: "application/atom+xml;profile=opds-catalog;kind=navigation"
|
8
8
|
|
@@ -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:
|
12
|
-
xml.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name
|
13
|
-
xml.link "#{request.protocol}#{request.host_with_port}#{url_for(
|
11
|
+
xml.channel("rdf:about" => manifestations_url(params: filtered_params.merge(format: 'rdf', only_path: true))){
|
12
|
+
xml.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name)
|
13
|
+
xml.link "#{request.protocol}#{request.host_with_port}#{url_for(filtered_params.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"
|
@@ -4,12 +4,12 @@ xml.rss('version' => "2.0",
|
|
4
4
|
'xmlns:dc' => "http://purl.org/dc/elements/1.1/",
|
5
5
|
'xmlns:atom' => "http://www.w3.org/2005/Atom"){
|
6
6
|
xml.channel{
|
7
|
-
xml.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name
|
8
|
-
xml.link "#{request.protocol}#{request.host_with_port}#{url_for(
|
7
|
+
xml.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name)
|
8
|
+
xml.link "#{request.protocol}#{request.host_with_port}#{url_for(filtered_params.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(
|
12
|
+
xml.tag! "atom:link", rel: 'self', href: "#{request.protocol}#{request.host_with_port}#{url_for(filtered_params.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
|
if params[:query].present?
|