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
data/spec/fixtures/libraries.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
library_00001:
|
3
3
|
name: web
|
4
4
|
short_display_name: Web
|
5
|
-
|
5
|
+
display_name_translations: {"en": "World Wide Web", "ja": "ウェブ"}
|
6
6
|
fax_number:
|
7
7
|
updated_at: 2007-08-31 00:18:06.662349 +09:00
|
8
8
|
telephone_number_1:
|
@@ -19,7 +19,7 @@ library_00001:
|
|
19
19
|
library_00002:
|
20
20
|
name: kamata
|
21
21
|
short_display_name: 蒲田
|
22
|
-
|
22
|
+
display_name_translations: {"en": "Kamata Library", "ja": "蒲田図書館"}
|
23
23
|
fax_number: ""
|
24
24
|
updated_at: 2007-08-31 00:18:06.662349 +09:00
|
25
25
|
telephone_number_1: 81-3-3732-5111
|
@@ -37,7 +37,7 @@ library_00002:
|
|
37
37
|
library_00003:
|
38
38
|
name: hachioji
|
39
39
|
short_display_name: 八王子
|
40
|
-
|
40
|
+
display_name_translations: {"en": "Hachioji Library", "ja": "八王子図書館"}
|
41
41
|
fax_number: 042-637-2116
|
42
42
|
updated_at: 2007-08-31 00:18:16.188285 +09:00
|
43
43
|
telephone_number_1: 042-637-2033
|
@@ -54,7 +54,7 @@ library_00003:
|
|
54
54
|
library_00004:
|
55
55
|
name: mita
|
56
56
|
short_display_name: 三田
|
57
|
-
|
57
|
+
display_name_translations: {"en": "Mita Library", "ja": "三田図書館"}
|
58
58
|
fax_number: ""
|
59
59
|
updated_at: 2007-08-31 00:18:20.043951 +09:00
|
60
60
|
telephone_number_1: ""
|
@@ -73,30 +73,30 @@ library_00004:
|
|
73
73
|
#
|
74
74
|
# Table name: libraries
|
75
75
|
#
|
76
|
-
# id
|
77
|
-
# name
|
78
|
-
# display_name
|
79
|
-
# short_display_name
|
80
|
-
# zip_code
|
81
|
-
# street
|
82
|
-
# locality
|
83
|
-
# region
|
84
|
-
# telephone_number_1
|
85
|
-
# telephone_number_2
|
86
|
-
# fax_number
|
87
|
-
# note
|
88
|
-
# call_number_rows
|
89
|
-
# call_number_delimiter
|
90
|
-
# library_group_id
|
91
|
-
# users_count
|
92
|
-
# position
|
93
|
-
# country_id
|
94
|
-
# created_at
|
95
|
-
# updated_at
|
96
|
-
# deleted_at
|
97
|
-
# opening_hour
|
98
|
-
#
|
99
|
-
#
|
100
|
-
#
|
76
|
+
# id :integer not null, primary key
|
77
|
+
# name :string not null
|
78
|
+
# display_name :text
|
79
|
+
# short_display_name :string not null
|
80
|
+
# zip_code :string
|
81
|
+
# street :text
|
82
|
+
# locality :text
|
83
|
+
# region :text
|
84
|
+
# telephone_number_1 :string
|
85
|
+
# telephone_number_2 :string
|
86
|
+
# fax_number :string
|
87
|
+
# note :text
|
88
|
+
# call_number_rows :integer default(1), not null
|
89
|
+
# call_number_delimiter :string default("|"), not null
|
90
|
+
# library_group_id :integer not null
|
91
|
+
# users_count :integer default(0), not null
|
92
|
+
# position :integer
|
93
|
+
# country_id :integer
|
94
|
+
# created_at :datetime
|
95
|
+
# updated_at :datetime
|
96
|
+
# deleted_at :datetime
|
97
|
+
# opening_hour :text
|
98
|
+
# isil :string
|
99
|
+
# latitude :float
|
100
|
+
# longitude :float
|
101
|
+
# display_name_translations :jsonb not null
|
101
102
|
#
|
102
|
-
|
@@ -1,15 +1,18 @@
|
|
1
1
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
2
|
one:
|
3
3
|
id: 1
|
4
|
-
name:
|
5
|
-
|
6
|
-
short_name:
|
4
|
+
name: enju_library
|
5
|
+
display_name_translations: {"en": "Enju Library", "ja": "えんじゅ図書館"}
|
6
|
+
short_name: enju_library
|
7
7
|
note:
|
8
8
|
my_networks: "0.0.0.0/0\r\n\
|
9
9
|
::/0"
|
10
10
|
url: "http://localhost:3000/"
|
11
11
|
position: 1
|
12
|
-
|
12
|
+
login_banner_translations: {"ja": "オープンソース図書館システム Next-L Enju です。このメッセージは管理者としてログインした後に変更することができます。",
|
13
|
+
"en": "Next-L Enju, an open-source integrated library system. You can edit this message after logging in as Administrator."}
|
14
|
+
footer_banner_translations: {"en":"[Next-L Enju Leaf __VERSION__](https://github.com/next-l/enju_leaf), an open source integrated library system | [About this system](/page/about) | [Report bugs](https://github.com/next-l/enju_leaf/issues) | [Manual](https://next-l.github.io/manual/1.3/)",
|
15
|
+
"ja":"[Next-L Enju Leaf __VERSION__](https://github.com/next-l/enju_leaf), オープンソース統合図書館システム | [このシステムについて](/page/about) | [不具合を報告する](https://github.com/next-l/enju_leaf/issues) | [マニュアル](https://next-l.github.io/manual/1.3/)"}
|
13
16
|
admin_networks: "0.0.0.0/0\r\n\
|
14
17
|
::/0"
|
15
18
|
user_id: 1
|
@@ -31,7 +34,6 @@ one:
|
|
31
34
|
# created_at :datetime
|
32
35
|
# updated_at :datetime
|
33
36
|
# admin_networks :text
|
34
|
-
# allow_bookmark_external_url :boolean default(FALSE), not null
|
35
37
|
# url :string default("http://localhost:3000/")
|
36
38
|
# settings :text
|
37
39
|
# html_snippet :text
|
@@ -44,7 +46,10 @@ one:
|
|
44
46
|
# csv_charset_conversion :boolean default(FALSE), not null
|
45
47
|
# header_logo_file_name :string
|
46
48
|
# header_logo_content_type :string
|
47
|
-
# header_logo_file_size :
|
49
|
+
# header_logo_file_size :bigint
|
48
50
|
# header_logo_updated_at :datetime
|
49
51
|
# header_logo_meta :text
|
52
|
+
# display_name_translations :jsonb not null
|
53
|
+
# login_banner_translations :jsonb not null
|
54
|
+
# footer_banner_translations :jsonb not null
|
50
55
|
#
|
data/spec/fixtures/licenses.yml
CHANGED
@@ -18,11 +18,12 @@ two:
|
|
18
18
|
#
|
19
19
|
# Table name: licenses
|
20
20
|
#
|
21
|
-
# id
|
22
|
-
# name
|
23
|
-
# display_name
|
24
|
-
# note
|
25
|
-
# position
|
26
|
-
# created_at
|
27
|
-
# updated_at
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# name :string not null
|
23
|
+
# display_name :string
|
24
|
+
# note :text
|
25
|
+
# position :integer
|
26
|
+
# created_at :datetime
|
27
|
+
# updated_at :datetime
|
28
|
+
# display_name_translations :jsonb not null
|
28
29
|
#
|
@@ -1,15 +1,15 @@
|
|
1
1
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
2
|
|
3
3
|
one:
|
4
|
-
name:
|
5
|
-
|
4
|
+
name: reproduction
|
5
|
+
display_name_translations: {"en": "Reproduction", "ja": "複製"}
|
6
6
|
note:
|
7
7
|
position: 1
|
8
8
|
id: 1
|
9
9
|
|
10
10
|
two:
|
11
|
-
name:
|
12
|
-
|
11
|
+
name: alternate
|
12
|
+
display_name_translations: {"en": "Alternate", "ja": "代替"}
|
13
13
|
note:
|
14
14
|
position: 2
|
15
15
|
id: 2
|
@@ -18,11 +18,12 @@ two:
|
|
18
18
|
#
|
19
19
|
# Table name: manifestation_relationship_types
|
20
20
|
#
|
21
|
-
# id
|
22
|
-
# name
|
23
|
-
# display_name
|
24
|
-
# note
|
25
|
-
# position
|
26
|
-
# created_at
|
27
|
-
# updated_at
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# name :string not null
|
23
|
+
# display_name :text
|
24
|
+
# note :text
|
25
|
+
# position :integer
|
26
|
+
# created_at :datetime
|
27
|
+
# updated_at :datetime
|
28
|
+
# display_name_translations :jsonb not null
|
28
29
|
#
|
@@ -3,14 +3,14 @@
|
|
3
3
|
one:
|
4
4
|
id: 1
|
5
5
|
name: unaccompanied
|
6
|
-
|
6
|
+
display_name_translations: {"en": "Unaccompanied", "ja": "Unaccompanied"}
|
7
7
|
note: MyText
|
8
8
|
position: 1
|
9
9
|
|
10
10
|
two:
|
11
11
|
id: 2
|
12
12
|
name: accompanied
|
13
|
-
|
13
|
+
display_name_translations: {"en": "Accompanied", "ja": "Accompanied"}
|
14
14
|
note: MyText
|
15
15
|
position: 2
|
16
16
|
|
@@ -18,11 +18,12 @@ two:
|
|
18
18
|
#
|
19
19
|
# Table name: medium_of_performances
|
20
20
|
#
|
21
|
-
# id
|
22
|
-
# name
|
23
|
-
# display_name
|
24
|
-
# note
|
25
|
-
# position
|
26
|
-
# created_at
|
27
|
-
# updated_at
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# name :string not null
|
23
|
+
# display_name :text
|
24
|
+
# note :text
|
25
|
+
# position :integer
|
26
|
+
# created_at :datetime
|
27
|
+
# updated_at :datetime
|
28
|
+
# display_name_translations :jsonb not null
|
28
29
|
#
|
@@ -47,7 +47,9 @@ picture_file_00004:
|
|
47
47
|
# id :integer not null, primary key
|
48
48
|
# picture_attachable_id :integer
|
49
49
|
# picture_attachable_type :string
|
50
|
+
# content_type :string
|
50
51
|
# title :text
|
52
|
+
# thumbnail :string
|
51
53
|
# position :integer
|
52
54
|
# created_at :datetime
|
53
55
|
# updated_at :datetime
|
@@ -2,16 +2,14 @@
|
|
2
2
|
|
3
3
|
publisher:
|
4
4
|
name: publisher
|
5
|
-
|
6
|
-
ja: 出版者"
|
5
|
+
display_name_translations: {"en": "Publisher", "ja": "出版者"}
|
7
6
|
note:
|
8
7
|
position: 1
|
9
8
|
id: 1
|
10
9
|
|
11
10
|
seller:
|
12
11
|
name: seller
|
13
|
-
|
14
|
-
ja: 販売者"
|
12
|
+
display_name_translations: {"en": "Seller", "ja": "販売者"}
|
15
13
|
note:
|
16
14
|
position: 2
|
17
15
|
id: 2
|
@@ -20,11 +18,12 @@ seller:
|
|
20
18
|
#
|
21
19
|
# Table name: produce_types
|
22
20
|
#
|
23
|
-
# id
|
24
|
-
# name
|
25
|
-
# display_name
|
26
|
-
# note
|
27
|
-
# position
|
28
|
-
# created_at
|
29
|
-
# updated_at
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# name :string
|
23
|
+
# display_name :text
|
24
|
+
# note :text
|
25
|
+
# position :integer
|
26
|
+
# created_at :datetime
|
27
|
+
# updated_at :datetime
|
28
|
+
# display_name_translations :jsonb not null
|
30
29
|
#
|
data/spec/fixtures/produces.yml
CHANGED
@@ -3,7 +3,6 @@ produce_00001:
|
|
3
3
|
updated_at: 2008-01-11 23:28:19.277110 +09:00
|
4
4
|
manifestation_id: 1
|
5
5
|
agent_id: 1
|
6
|
-
produce_type_id: 1
|
7
6
|
id: 1
|
8
7
|
position: 1
|
9
8
|
created_at: 2008-01-11 23:28:19.277110 +09:00
|
@@ -11,7 +10,6 @@ produce_00002:
|
|
11
10
|
updated_at: 2008-01-11 23:28:57.068191 +09:00
|
12
11
|
manifestation_id: 2
|
13
12
|
agent_id: 2
|
14
|
-
produce_type_id: 1
|
15
13
|
id: 2
|
16
14
|
position: 1
|
17
15
|
created_at: 2008-01-11 23:28:57.068191 +09:00
|
data/spec/fixtures/profiles.yml
CHANGED
@@ -85,14 +85,17 @@ user4:
|
|
85
85
|
# user_id :integer
|
86
86
|
# user_group_id :integer
|
87
87
|
# library_id :integer
|
88
|
-
# locale :string
|
89
|
-
# user_number :string
|
88
|
+
# locale :string
|
89
|
+
# user_number :string
|
90
90
|
# full_name :text
|
91
91
|
# note :text
|
92
92
|
# keyword_list :text
|
93
93
|
# required_role_id :integer
|
94
|
-
# created_at :datetime
|
95
|
-
# updated_at :datetime
|
96
|
-
# checkout_icalendar_token :string
|
94
|
+
# created_at :datetime
|
95
|
+
# updated_at :datetime
|
96
|
+
# checkout_icalendar_token :string
|
97
97
|
# save_checkout_history :boolean default(FALSE), not null
|
98
|
+
# expired_at :datetime
|
99
|
+
# full_name_transcription :text
|
100
|
+
# date_of_birth :datetime
|
98
101
|
#
|
@@ -2,24 +2,21 @@
|
|
2
2
|
|
3
3
|
editor:
|
4
4
|
name: editor
|
5
|
-
|
6
|
-
ja: 編者"
|
5
|
+
display_name_translations: {"en": "Editor", "ja": "編者"}
|
7
6
|
note:
|
8
7
|
position: 1
|
9
8
|
id: 1
|
10
9
|
|
11
10
|
translator:
|
12
11
|
name: translator
|
13
|
-
|
14
|
-
ja: 訳者"
|
12
|
+
display_name_translations: {"en": "Translator", "ja": "訳者"}
|
15
13
|
note:
|
16
14
|
position: 2
|
17
15
|
id: 2
|
18
16
|
|
19
17
|
illustrator:
|
20
18
|
name: illustrator
|
21
|
-
|
22
|
-
ja: 作画者"
|
19
|
+
display_name_translations: {"en": "Illustrator", "ja": "作画者"}
|
23
20
|
note:
|
24
21
|
position: 3
|
25
22
|
id: 3
|
@@ -28,11 +25,12 @@ illustrator:
|
|
28
25
|
#
|
29
26
|
# Table name: realize_types
|
30
27
|
#
|
31
|
-
# id
|
32
|
-
# name
|
33
|
-
# display_name
|
34
|
-
# note
|
35
|
-
# position
|
36
|
-
# created_at
|
37
|
-
# updated_at
|
28
|
+
# id :integer not null, primary key
|
29
|
+
# name :string
|
30
|
+
# display_name :text
|
31
|
+
# note :text
|
32
|
+
# position :integer
|
33
|
+
# created_at :datetime
|
34
|
+
# updated_at :datetime
|
35
|
+
# display_name_translations :jsonb not null
|
38
36
|
#
|
data/spec/fixtures/realizes.yml
CHANGED
@@ -3,7 +3,6 @@ realize_00001:
|
|
3
3
|
updated_at: 2008-01-11 23:28:19.277110 +09:00
|
4
4
|
expression_id: 1
|
5
5
|
agent_id: 1
|
6
|
-
realize_type_id: 1
|
7
6
|
id: 1
|
8
7
|
position: 1
|
9
8
|
created_at: 2008-01-11 23:28:19.277110 +09:00
|
@@ -11,7 +10,6 @@ realize_00002:
|
|
11
10
|
updated_at: 2008-01-11 23:28:57.068191 +09:00
|
12
11
|
expression_id: 2
|
13
12
|
agent_id: 2
|
14
|
-
realize_type_id: 1
|
15
13
|
id: 2
|
16
14
|
position: 2
|
17
15
|
created_at: 2008-01-11 23:28:57.068191 +09:00
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
request_status_type_00001:
|
3
3
|
name: Available For Pickup
|
4
|
-
|
4
|
+
display_name_translations: {"en": "Available For Pickup", "ja": "Available For Pickup"}
|
5
5
|
updated_at: 2008-02-13 18:38:38.553114 +09:00
|
6
6
|
id: 1
|
7
7
|
position: 1
|
@@ -9,7 +9,7 @@ request_status_type_00001:
|
|
9
9
|
created_at: 2008-02-13 18:38:38.553114 +09:00
|
10
10
|
request_status_type_00002:
|
11
11
|
name: Cannot Fulfill Request
|
12
|
-
|
12
|
+
display_name_translations: {"en": "Cannot Fulfill Request", "ja": "Cannot Fulfill Request"}
|
13
13
|
updated_at: 2008-02-13 18:38:51.815755 +09:00
|
14
14
|
id: 2
|
15
15
|
position: 2
|
@@ -17,7 +17,7 @@ request_status_type_00002:
|
|
17
17
|
created_at: 2008-02-13 18:38:51.815755 +09:00
|
18
18
|
request_status_type_00003:
|
19
19
|
name: Expired
|
20
|
-
|
20
|
+
display_name_translations: {"en": "Expired", "ja": "Expired"}
|
21
21
|
updated_at: 2008-02-13 18:39:00.878701 +09:00
|
22
22
|
id: 3
|
23
23
|
position: 3
|
@@ -25,7 +25,7 @@ request_status_type_00003:
|
|
25
25
|
created_at: 2008-02-13 18:39:00.878701 +09:00
|
26
26
|
request_status_type_00004:
|
27
27
|
name: In Process
|
28
|
-
|
28
|
+
display_name_translations: {"en": "In Process", "ja": "In Process"}
|
29
29
|
updated_at: 2008-02-13 18:39:10.010140 +09:00
|
30
30
|
id: 4
|
31
31
|
position: 4
|
@@ -33,7 +33,7 @@ request_status_type_00004:
|
|
33
33
|
created_at: 2008-02-13 18:39:10.010140 +09:00
|
34
34
|
request_status_type_00005:
|
35
35
|
name: Need to Accept Conditions
|
36
|
-
|
36
|
+
display_name_translations: {"en": "Need to Accept Conditions", "ja": "Need to Accept Conditions"}
|
37
37
|
updated_at: 2008-02-13 18:39:19.068390 +09:00
|
38
38
|
id: 5
|
39
39
|
position: 5
|
@@ -41,7 +41,7 @@ request_status_type_00005:
|
|
41
41
|
created_at: 2008-02-13 18:39:19.068390 +09:00
|
42
42
|
request_status_type_00006:
|
43
43
|
name: Requested Via ILL
|
44
|
-
|
44
|
+
display_name_translations: {"en": "Requested Via ILL", "ja": "Requested Via ILL"}
|
45
45
|
updated_at: 2008-02-13 18:39:29.382844 +09:00
|
46
46
|
id: 6
|
47
47
|
position: 6
|
@@ -52,12 +52,12 @@ request_status_type_00006:
|
|
52
52
|
#
|
53
53
|
# Table name: request_status_types
|
54
54
|
#
|
55
|
-
# id
|
56
|
-
# name
|
57
|
-
# display_name
|
58
|
-
# note
|
59
|
-
# position
|
60
|
-
# created_at
|
61
|
-
# updated_at
|
55
|
+
# id :integer not null, primary key
|
56
|
+
# name :string not null
|
57
|
+
# display_name :text
|
58
|
+
# note :text
|
59
|
+
# position :integer
|
60
|
+
# created_at :datetime
|
61
|
+
# updated_at :datetime
|
62
|
+
# display_name_translations :jsonb not null
|
62
63
|
#
|
63
|
-
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
request_type_00005:
|
3
3
|
name: Stack Retrieval
|
4
|
-
|
4
|
+
display_name_translations: {"en": "Stack Retrieval"}
|
5
5
|
updated_at: 2008-02-13 18:44:10.145739 +09:00
|
6
6
|
id: 5
|
7
7
|
position: 5
|
@@ -9,7 +9,7 @@ request_type_00005:
|
|
9
9
|
created_at: 2008-02-13 18:44:10.145739 +09:00
|
10
10
|
request_type_00001:
|
11
11
|
name: Estimate
|
12
|
-
|
12
|
+
display_name_translations: {"en": "Estimate"}
|
13
13
|
updated_at: 2008-02-13 18:43:33.710810 +09:00
|
14
14
|
id: 1
|
15
15
|
position: 1
|
@@ -17,7 +17,7 @@ request_type_00001:
|
|
17
17
|
created_at: 2008-02-13 18:43:33.710810 +09:00
|
18
18
|
request_type_00002:
|
19
19
|
name: Hold
|
20
|
-
|
20
|
+
display_name_translations: {"en": "Hold"}
|
21
21
|
updated_at: 2008-02-13 18:43:42.151759 +09:00
|
22
22
|
id: 2
|
23
23
|
position: 2
|
@@ -25,7 +25,7 @@ request_type_00002:
|
|
25
25
|
created_at: 2008-02-13 18:43:42.151759 +09:00
|
26
26
|
request_type_00003:
|
27
27
|
name: Loan
|
28
|
-
|
28
|
+
display_name_translations: {"en": "Loan"}
|
29
29
|
updated_at: 2008-02-13 18:43:51.940315 +09:00
|
30
30
|
id: 3
|
31
31
|
position: 3
|
@@ -33,7 +33,7 @@ request_type_00003:
|
|
33
33
|
created_at: 2008-02-13 18:43:51.940315 +09:00
|
34
34
|
request_type_00004:
|
35
35
|
name: Non-Returnable Copy
|
36
|
-
|
36
|
+
display_name_translations: {"en": "Non-Returnable Copy"}
|
37
37
|
updated_at: 2008-02-13 18:44:00.870893 +09:00
|
38
38
|
id: 4
|
39
39
|
position: 4
|
@@ -44,12 +44,12 @@ request_type_00004:
|
|
44
44
|
#
|
45
45
|
# Table name: request_types
|
46
46
|
#
|
47
|
-
# id
|
48
|
-
# name
|
49
|
-
# display_name
|
50
|
-
# note
|
51
|
-
# position
|
52
|
-
# created_at
|
53
|
-
# updated_at
|
47
|
+
# id :integer not null, primary key
|
48
|
+
# name :string not null
|
49
|
+
# display_name :text
|
50
|
+
# note :text
|
51
|
+
# position :integer
|
52
|
+
# created_at :datetime
|
53
|
+
# updated_at :datetime
|
54
|
+
# display_name_translations :jsonb not null
|
54
55
|
#
|
55
|
-
|
@@ -18,7 +18,7 @@ resource_export_file_00003:
|
|
18
18
|
# user_id :integer
|
19
19
|
# resource_export_file_name :string
|
20
20
|
# resource_export_content_type :string
|
21
|
-
# resource_export_file_size :
|
21
|
+
# resource_export_file_size :bigint
|
22
22
|
# resource_export_updated_at :datetime
|
23
23
|
# executed_at :datetime
|
24
24
|
# created_at :datetime
|
@@ -5,14 +5,14 @@ one:
|
|
5
5
|
resource_import_file_id: 1
|
6
6
|
manifestation_id: 1
|
7
7
|
item_id: 1
|
8
|
-
body:
|
8
|
+
body: MyText
|
9
9
|
|
10
10
|
two:
|
11
11
|
id: 2
|
12
12
|
resource_import_file_id: 1
|
13
13
|
manifestation_id: 1
|
14
14
|
item_id: 1
|
15
|
-
body:
|
15
|
+
body: MyText
|
16
16
|
|
17
17
|
# == Schema Information
|
18
18
|
#
|
data/spec/fixtures/roles.yml
CHANGED
@@ -1,21 +1,38 @@
|
|
1
1
|
---
|
2
2
|
role_00001:
|
3
3
|
name: Guest
|
4
|
-
|
4
|
+
display_name_translations: {"en": "Guest", "ja": "ゲスト"}
|
5
5
|
id: 1
|
6
6
|
note:
|
7
|
+
position: 1
|
7
8
|
role_00002:
|
8
9
|
name: User
|
9
|
-
|
10
|
+
display_name_translations: {"en": "User", "ja": "一般利用者"}
|
10
11
|
id: 2
|
11
12
|
note:
|
13
|
+
position: 2
|
12
14
|
role_00003:
|
13
15
|
name: Librarian
|
14
|
-
|
16
|
+
display_name_translations: {"en": "Librarian", "ja": "図書館員"}
|
15
17
|
id: 3
|
16
18
|
note:
|
19
|
+
position: 3
|
17
20
|
role_00004:
|
18
21
|
name: Administrator
|
19
|
-
|
22
|
+
display_name_translations: {"en": "Administrator", "ja": "管理者"}
|
20
23
|
id: 4
|
21
|
-
note:
|
24
|
+
note:
|
25
|
+
position: 4
|
26
|
+
|
27
|
+
# == Schema Information
|
28
|
+
#
|
29
|
+
# Table name: roles
|
30
|
+
#
|
31
|
+
# id :bigint not null, primary key
|
32
|
+
# name :string not null
|
33
|
+
# display_name_translations :jsonb not null
|
34
|
+
# note :text
|
35
|
+
# position :integer default(1), not null
|
36
|
+
# created_at :datetime not null
|
37
|
+
# updated_at :datetime not null
|
38
|
+
#
|