enju_library 0.1.0.pre33 → 0.1.0.pre34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/accepts_controller.rb +14 -14
- data/app/controllers/baskets_controller.rb +15 -21
- data/app/controllers/libraries_controller.rb +12 -12
- data/app/controllers/library_groups_controller.rb +5 -6
- data/app/controllers/shelves_controller.rb +17 -17
- data/app/controllers/subscribes_controller.rb +10 -10
- data/app/controllers/subscriptions_controller.rb +11 -11
- data/app/models/accept.rb +7 -12
- data/app/models/basket.rb +6 -6
- data/app/models/bookstore.rb +2 -2
- data/app/models/budget_type.rb +1 -1
- data/app/models/library.rb +8 -8
- data/app/models/library_group.rb +5 -21
- data/app/models/request_status_type.rb +1 -1
- data/app/models/request_type.rb +1 -1
- data/app/models/search_engine.rb +6 -6
- data/app/models/shelf.rb +5 -5
- data/app/models/subscribe.rb +3 -3
- data/app/models/subscription.rb +5 -5
- data/app/views/accepts/_form.html.erb +1 -1
- data/app/views/accepts/_list.html.erb +3 -3
- data/app/views/accepts/edit.html.erb +1 -1
- data/app/views/accepts/index.html.erb +6 -6
- data/app/views/accepts/{index.csv.erb → index.txt.csv} +0 -0
- data/app/views/accepts/new.html.erb +1 -1
- data/app/views/accepts/show.html.erb +2 -2
- data/app/views/baskets/edit.html.erb +2 -2
- data/app/views/baskets/index.html.erb +3 -2
- data/app/views/baskets/new.html.erb +6 -6
- data/app/views/baskets/show.html.erb +1 -1
- data/app/views/bookstores/_form.html.erb +3 -3
- data/app/views/bookstores/edit.html.erb +1 -1
- data/app/views/bookstores/index.html.erb +3 -3
- data/app/views/bookstores/new.html.erb +1 -1
- data/app/views/bookstores/show.html.erb +1 -1
- data/app/views/budget_types/_form.html.erb +2 -2
- data/app/views/budget_types/edit.html.erb +1 -1
- data/app/views/budget_types/index.html.erb +6 -6
- data/app/views/budget_types/new.html.erb +1 -1
- data/app/views/budget_types/show.html.erb +1 -1
- data/app/views/libraries/_calendar.html.erb +2 -2
- data/app/views/libraries/_form.html.erb +12 -12
- data/app/views/libraries/edit.html.erb +1 -1
- data/app/views/libraries/index.html.erb +18 -14
- data/app/views/libraries/new.html.erb +1 -1
- data/app/views/libraries/show.html.erb +7 -7
- data/app/views/library_groups/_form.html.erb +4 -4
- data/app/views/library_groups/edit.html.erb +1 -1
- data/app/views/library_groups/index.html.erb +2 -2
- data/app/views/library_groups/new.html.erb +1 -1
- data/app/views/library_groups/show.html.erb +2 -2
- data/app/views/request_status_types/edit.html.erb +1 -1
- data/app/views/request_status_types/index.html.erb +3 -3
- data/app/views/request_status_types/new.html.erb +1 -1
- data/app/views/request_status_types/show.html.erb +1 -1
- data/app/views/request_types/edit.html.erb +1 -1
- data/app/views/request_types/index.html.erb +3 -3
- data/app/views/request_types/new.html.erb +1 -1
- data/app/views/request_types/show.html.erb +1 -1
- data/app/views/search_engines/_form.html.erb +4 -4
- data/app/views/search_engines/edit.html.erb +1 -1
- data/app/views/search_engines/index.html.erb +3 -3
- data/app/views/search_engines/new.html.erb +1 -1
- data/app/views/search_engines/show.html.erb +1 -1
- data/app/views/shelves/_form.html.erb +4 -4
- data/app/views/shelves/_library_facet.html.erb +1 -1
- data/app/views/shelves/edit.html.erb +1 -1
- data/app/views/shelves/index.html.erb +5 -5
- data/app/views/shelves/new.html.erb +2 -2
- data/app/views/shelves/show.html.erb +5 -5
- data/app/views/shelves/show.mobile.erb +1 -1
- data/app/views/subscribes/edit.html.erb +3 -3
- data/app/views/subscribes/index.html.erb +3 -3
- data/app/views/subscribes/new.html.erb +8 -8
- data/app/views/subscribes/show.html.erb +1 -1
- data/app/views/subscriptions/edit.html.erb +3 -3
- data/app/views/subscriptions/index.html.erb +4 -4
- data/app/views/subscriptions/new.html.erb +3 -3
- data/app/views/subscriptions/show.html.erb +1 -1
- data/config/locales/translation_ja.yml +1 -1
- data/db/migrate/080_create_library_groups.rb +0 -1
- data/lib/enju_library/version.rb +1 -1
- data/lib/generators/enju_library/setup/templates/db/fixtures/request_status_types.yml +37 -0
- data/lib/generators/enju_library/setup/templates/db/fixtures/request_types.yml +29 -0
- data/spec/controllers/accepts_controller_spec.rb +1 -1
- data/spec/controllers/baskets_controller_spec.rb +30 -30
- data/spec/controllers/bookstores_controller_spec.rb +21 -21
- data/spec/controllers/budget_types_controller_spec.rb +1 -1
- data/spec/controllers/libraries_controller_spec.rb +24 -24
- data/spec/controllers/library_groups_controller_spec.rb +7 -7
- data/spec/controllers/request_status_types_controller_spec.rb +21 -21
- data/spec/controllers/request_types_controller_spec.rb +21 -21
- data/spec/controllers/search_engines_controller_spec.rb +21 -21
- data/spec/controllers/shelves_controller_spec.rb +20 -20
- data/spec/controllers/subscribes_controller_spec.rb +21 -21
- data/spec/controllers/subscriptions_controller_spec.rb +21 -21
- data/spec/dummy/app/helpers/application_helper.rb +1 -0
- data/spec/dummy/app/models/user.rb +6 -86
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/001_create_agents.rb +0 -8
- data/spec/dummy/db/migrate/{20111201155513_add_devise_to_users.rb → 002_devise_create_users.rb} +18 -16
- data/spec/dummy/db/migrate/005_create_manifestations.rb +7 -24
- data/spec/dummy/db/migrate/006_create_items.rb +0 -6
- data/spec/dummy/db/migrate/041_create_roles.rb +13 -0
- data/spec/dummy/db/migrate/077_create_user_groups.rb +3 -7
- data/spec/dummy/db/migrate/112_create_frequencies.rb +12 -0
- data/spec/dummy/db/migrate/117_create_form_of_works.rb +12 -0
- data/spec/dummy/db/migrate/154_create_messages.rb +0 -1
- data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +0 -2
- data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +0 -1
- data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +20 -0
- data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +20 -0
- data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +0 -2
- data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +0 -1
- data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +0 -1
- data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +0 -1
- data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +0 -1
- data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +0 -4
- data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
- data/spec/dummy/db/migrate/20090719201843_create_extents.rb +12 -0
- data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +12 -0
- data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +12 -0
- data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +12 -0
- data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +14 -0
- data/spec/dummy/db/migrate/{20111201163718_create_user_has_roles.rb → 20100606065209_create_user_has_roles.rb} +2 -0
- data/spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb +15 -0
- data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +12 -0
- data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +0 -2
- data/spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +9 -0
- data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +6 -0
- data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +6 -0
- data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
- data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +6 -0
- data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +16 -0
- data/spec/dummy/db/migrate/{20111201121844_create_roles.rb → 20130506175303_create_identifier_types.rb} +2 -2
- data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +15 -0
- data/spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +18 -0
- data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +11 -0
- data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
- data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +11 -0
- data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140628071719_add_user_encoding_to_event_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
- data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140720192418_add_default_library_id_to_event_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
- data/spec/dummy/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb +12 -0
- data/spec/dummy/db/migrate/20140810091231_add_checkout_icalendar_token_to_profile.rb +6 -0
- data/spec/dummy/db/migrate/20140810091417_add_save_checkout_history_to_profile.rb +5 -0
- data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +5 -0
- data/spec/dummy/db/schema.rb +453 -74
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/conf/admin-extra.html +31 -0
- data/spec/dummy/solr/conf/elevate.xml +36 -0
- data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/spec/dummy/solr/conf/protwords.txt +21 -0
- data/spec/dummy/solr/conf/schema.xml +255 -0
- data/spec/dummy/solr/conf/scripts.conf +24 -0
- data/spec/dummy/solr/conf/solrconfig.xml +667 -0
- data/spec/dummy/solr/conf/spellings.txt +2 -0
- data/spec/dummy/solr/conf/stopwords.txt +58 -0
- data/spec/dummy/solr/conf/synonyms.txt +31 -0
- data/spec/dummy/solr/default/data/index/_1vz.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_1vz.fdx +0 -0
- data/spec/dummy/solr/default/data/index/_1vz.fnm +0 -0
- data/spec/dummy/solr/default/data/index/_1vz.nvd +0 -0
- data/spec/dummy/solr/default/data/index/_1vz.nvm +0 -0
- data/spec/dummy/solr/default/data/index/_1vz.si +0 -0
- data/spec/dummy/solr/default/data/index/_1vz_Lucene41_0.doc +0 -0
- data/spec/dummy/solr/default/data/index/_1vz_Lucene41_0.pos +0 -0
- data/spec/dummy/solr/default/data/index/_1vz_Lucene41_0.tim +0 -0
- data/spec/dummy/solr/default/data/index/_1vz_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/segments.gen +0 -0
- data/spec/dummy/solr/default/data/index/segments_36s +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004121 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004122 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004123 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004124 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004125 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004126 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004127 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004128 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004129 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004130 +0 -0
- data/spec/dummy/solr/development/data/index/segments.gen +0 -0
- data/spec/dummy/solr/development/data/index/segments_1 +0 -0
- data/spec/dummy/solr/solr.xml +8 -0
- data/spec/dummy/solr/test/data/index/segments.gen +0 -0
- data/spec/dummy/solr/test/data/index/segments_1 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0440b81b0aae840cf287a686585a8cec +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0483120d2ec851526d1beb322a87b34d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/096c3408c7592aaeb756778ce1775f16 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/09bc1fff0c1477a69e8cd36ed3fe771f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0c0062cfb97ef1437ab0020e724876c6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0c8f59d97121b79a2e2a0d009d6da9c3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0e3e358e4fe4601ba5e435f6d0c86f12 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0e7592ffc95bd8b73854cc6453c64e33 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0e8e7445a50fad85ab545fa283abf5b7 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1260173072d9796c1ae7d7752b9916c3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/129cec5384c0f26fcfb0ce65048298c5 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1572dfd6f1e555f4be1aa60ddc3cb0c0 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/17c9f5037fae5b6ee1fc7466948001b5 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1c1fbab93e4552626da626e0dbe70c74 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1d450e5266eb3d679107d9a36dc22559 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2258e83cd2e464c650334b6a72a87cb6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/241a5d6ad6008e25a64a5092e8361ae8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2bf9c36d2bc8f8ca084394d139ce8edf +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2f09f58943a88f21e3a0318621391785 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2ffe508d0533d0afd2a37bb574eda40d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/301d9ec69800d0dc163460a12304676a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/3fbe8dcb9a5b2fbc7a22cc4b1ca4aa11 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/45f3c74e1e31b58d9bda6908d5623290 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/49d32c13d390c1b80d8b2705aac86579 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4aa18096a209e515f5f1df487622cdf4 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4c4d6b8fc44a49272793290caed29e24 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4f877aaa67a006f34ad9643d7f82b6dc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/50e64f45f0cb4cee52fd3f3908f89a82 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5762cca052dd5d3eb8bb35e2ed9a59b8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5ab3fcfe4078a2bb14bd91e9ce73ef29 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5afd4f8068bdfb3d99f5ec4034d2410c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5db165a5b217a384aaa8885d6bcaf193 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5dd0b61707256a0514d7f5e224188a1d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/65a8d4d288e5f082f0166aa7be7a2464 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/66e8ff0ee49363fdd0e1866807515228 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6738d1a07584e4b732d197e10afd6a19 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6a83d3fd052b7923111a0ed838ff53e0 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6a958d3fc0999c71aa19bae06bacdeb6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6df57ded762c97e6755758008bb3a660 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6fdb4513af157010ef79b56df44d665e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7289cf11ae787f5e0639528dc155bffb +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7c4b2e5317023fb751fa54ad41f95101 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7eea3b9e54d8a23d8a05d354f1a93f51 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/811e5198d0dc4efe02d28c0c2215e207 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/84c8a64682205dba3f8edd60fc1ec8e5 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8a73d1e841a4716b4f18ed4a23622092 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8be2a49de16592553e0d0a09d92bf6ef +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8f72bcc7284bf844ac8bec5dc4b71482 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9604073a83f822f13caaabd7e157bbbb +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/979eaef456657e4fc79b9b967aef0587 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9ad166e60e3d477c78328181979a7b77 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9b78afe804f3870fbafb97d2d62e5f6b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a296264dcc89e1f8ab6382e678ffbe38 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a3cea75f1356ef55329e78f86b4c72b1 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a5bf9fc3822019953dee89c6ae2b32ea +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a7387ef33f472faf58df3dd72623fbc6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/aa2e1ada35daa496bb08e85fcb817536 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/abee2d4cb18d15789dcdc9c680f3e6de +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ae706bde720905edffe622ae48f15740 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b53fd979e77975479427d0b481b004d4 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b57a0579a21bd3280d1db6f42550e5c7 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b80bed2ef62ec65384f12272c185a9a8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/bf33fb298844af06e55096420b989e3b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c3e97042b232e677d67679e11ebdb8ec +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c4700cd893db92917b893a0e48f57a24 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c488c91e58a235d36a0ff8058e5a1004 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c4a984c6feb506f3e1f9120a8d029bda +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c5ef868ba5f891f326945efdd43e3170 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c6283ae59dff510d5a2bb2bb9194d045 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c6bbf5ca5c9b58807ba226fde0ccc60f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ca5b985126fb033dec26015bd08d56ee +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d26b3581068a8ec8af52f3b2cce8c32a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d34b5413caa9407126db68d5d590804a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d4ac74c17332ad931b72f42d7997fcc0 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d648a0b0abb7fd7ff579d72ffe033d50 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/db6425848529903bdee75792cb2ed79a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/dd672deb061233e0db1d2f413d27213f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e1fcfb0faa3c12467a1c35251e04c8b1 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e22f9546f5d75bd3549886e979dcb96e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e44b4816bd1b2a7ba674c978dad35f3a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e513ee1af8fa24dcb4f473c18c09bf87 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e8142c2b10712e79b6d2c2cba0894b4c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f964bf5dc3949774db54d7cda5761d43 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/fa8059ddbbe226114ba0c178de3fc31b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/fa8e81ce1d45228121b9df5618542190 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/fbc69737b9b0dc77871fa2bb8647a38a +0 -0
- data/spec/factories/accepts.rb +12 -0
- data/spec/factories/budget_types.rb +13 -0
- data/spec/factories/profile.rb +10 -0
- data/spec/factories/user.rb +21 -12
- data/spec/fixtures/agents.yml +0 -12
- data/spec/fixtures/items.yml +49 -37
- data/spec/fixtures/libraries.yml +25 -28
- data/spec/fixtures/library_groups.yml +13 -18
- data/spec/fixtures/manifestation_checkout_stats.yml +0 -3
- data/spec/fixtures/manifestation_reserve_stats.yml +0 -3
- data/spec/fixtures/message_requests.yml +0 -3
- data/spec/fixtures/profiles.yml +98 -0
- data/spec/fixtures/request_status_types.yml +4 -5
- data/spec/fixtures/request_types.yml +4 -5
- data/spec/fixtures/reserve_transitions.yml +88 -0
- data/spec/fixtures/shelves.yml +7 -7
- data/spec/fixtures/user_checkout_stats.yml +0 -3
- data/spec/fixtures/user_groups.yml +3 -3
- data/spec/fixtures/user_reserve_stats.yml +0 -3
- data/spec/fixtures/users.yml +0 -55
- data/spec/models/library_group_spec.rb +0 -2
- data/spec/views/budget_types/index.html.erb_spec.rb +2 -2
- metadata +417 -28
- data/app/models/library_group_sweeper.rb +0 -12
- data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
- data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +0 -9
- data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
- data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -16
@@ -1,7 +1,7 @@
|
|
1
1
|
class SubscriptionsController < ApplicationController
|
2
2
|
load_and_authorize_resource
|
3
3
|
before_filter :get_work
|
4
|
-
after_filter :solr_commit, :
|
4
|
+
after_filter :solr_commit, only: [:create, :update, :destroy]
|
5
5
|
|
6
6
|
# GET /subscriptions
|
7
7
|
# GET /subscriptions.json
|
@@ -14,7 +14,7 @@ class SubscriptionsController < ApplicationController
|
|
14
14
|
|
15
15
|
respond_to do |format|
|
16
16
|
format.html # index.html.erb
|
17
|
-
format.json { render :
|
17
|
+
format.json { render json: @subscriptions }
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
@@ -23,7 +23,7 @@ class SubscriptionsController < ApplicationController
|
|
23
23
|
def show
|
24
24
|
respond_to do |format|
|
25
25
|
format.html # show.html.erb
|
26
|
-
format.json { render :
|
26
|
+
format.json { render json: @subscription }
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
@@ -34,7 +34,7 @@ class SubscriptionsController < ApplicationController
|
|
34
34
|
|
35
35
|
respond_to do |format|
|
36
36
|
format.html # new.html.erb
|
37
|
-
format.json { render :
|
37
|
+
format.json { render json: @subscription }
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -50,11 +50,11 @@ class SubscriptionsController < ApplicationController
|
|
50
50
|
|
51
51
|
respond_to do |format|
|
52
52
|
if @subscription.save
|
53
|
-
format.html { redirect_to @subscription, :
|
54
|
-
format.json { render :
|
53
|
+
format.html { redirect_to @subscription, notice: t('controller.successfully_created', model: t('activerecord.models.subscription')) }
|
54
|
+
format.json { render json: @subscription, status: :created, location: @subscription }
|
55
55
|
else
|
56
|
-
format.html { render :
|
57
|
-
format.json { render :
|
56
|
+
format.html { render action: "new" }
|
57
|
+
format.json { render json: @subscription.errors, status: :unprocessable_entity }
|
58
58
|
end
|
59
59
|
end
|
60
60
|
end
|
@@ -65,11 +65,11 @@ class SubscriptionsController < ApplicationController
|
|
65
65
|
@subscription.assign_attributes(params[:subscription])
|
66
66
|
respond_to do |format|
|
67
67
|
if @subscription.save
|
68
|
-
format.html { redirect_to @subscription, :
|
68
|
+
format.html { redirect_to @subscription, notice: t('controller.successfully_updated', model: t('activerecord.models.subscription')) }
|
69
69
|
format.json { head :no_content }
|
70
70
|
else
|
71
|
-
format.html { render :
|
72
|
-
format.json { render :
|
71
|
+
format.html { render action: "edit" }
|
72
|
+
format.json { render json: @subscription.errors, status: :unprocessable_entity }
|
73
73
|
end
|
74
74
|
end
|
75
75
|
end
|
data/app/models/accept.rb
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
class Accept < ActiveRecord::Base
|
2
2
|
attr_accessible :item_identifier, :librarian_id, :item_id
|
3
|
-
default_scope :
|
3
|
+
default_scope order: 'accepts.id DESC'
|
4
4
|
belongs_to :basket
|
5
|
-
belongs_to :item
|
6
|
-
belongs_to :librarian, :
|
5
|
+
belongs_to :item, touch: true
|
6
|
+
belongs_to :librarian, class_name: 'User'
|
7
7
|
|
8
|
-
validates_uniqueness_of :item_id, :
|
9
|
-
validates_presence_of :item_id, :
|
8
|
+
validates_uniqueness_of :item_id, message: I18n.t('accept.already_accepted')
|
9
|
+
validates_presence_of :item_id, message: I18n.t('accept.item_not_found')
|
10
10
|
validates_presence_of :basket_id
|
11
11
|
|
12
|
-
before_save :accept!, :
|
13
|
-
after_save :expire_manifestation_cache, if: Proc.new{|record| record.item.try(:manifestation).present?}
|
12
|
+
before_save :accept!, on: :create
|
14
13
|
|
15
14
|
attr_accessor :item_identifier
|
16
15
|
|
@@ -18,16 +17,12 @@ class Accept < ActiveRecord::Base
|
|
18
17
|
|
19
18
|
def accept!
|
20
19
|
if defined?(EnjuCirculation)
|
21
|
-
circulation_status = CirculationStatus.where(:
|
20
|
+
circulation_status = CirculationStatus.where(name: 'Available On Shelf').first
|
22
21
|
item.update_column(:circulation_status_id, circulation_status.id) if circulation_status
|
23
22
|
use_restriction = UseRestriction.where(name: 'Limited Circulation, Normal Loan Period').first
|
24
23
|
item.use_restriction = use_restriction if use_restriction
|
25
24
|
end
|
26
25
|
end
|
27
|
-
|
28
|
-
def expire_manifestation_cache
|
29
|
-
ExpireFragmentCache.expire_fragment_cache(item.manifestation)
|
30
|
-
end
|
31
26
|
end
|
32
27
|
|
33
28
|
# == Schema Information
|
data/app/models/basket.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
class Basket < ActiveRecord::Base
|
2
2
|
attr_accessible :note, :user_number
|
3
|
-
default_scope :
|
3
|
+
default_scope order: 'baskets.id DESC'
|
4
4
|
scope :will_expire, lambda {|date| {:conditions => ['created_at < ?', date]}}
|
5
|
-
belongs_to :user, :
|
5
|
+
belongs_to :user, validate: true
|
6
6
|
has_many :accepts
|
7
7
|
|
8
|
-
validates_associated :user, :
|
8
|
+
validates_associated :user, on: :create
|
9
9
|
# 貸出完了後にかごのユーザidは破棄する
|
10
|
-
validates_presence_of :user, :
|
10
|
+
validates_presence_of :user, on: :create
|
11
11
|
validate :check_suspended
|
12
12
|
|
13
13
|
attr_accessor :user_number
|
@@ -26,8 +26,8 @@ class Basket < ActiveRecord::Base
|
|
26
26
|
end
|
27
27
|
|
28
28
|
if defined?(EnjuCirculation)
|
29
|
-
has_many :checked_items, :
|
30
|
-
has_many :items, :
|
29
|
+
has_many :checked_items, dependent: :destroy
|
30
|
+
has_many :items, through: :checked_items
|
31
31
|
has_many :checkouts
|
32
32
|
has_many :checkins
|
33
33
|
|
data/app/models/bookstore.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
class Bookstore < ActiveRecord::Base
|
2
2
|
attr_accessible :name, :zip_code, :address, :note, :telephone_number,
|
3
3
|
:fax_number, :url
|
4
|
-
default_scope :
|
4
|
+
default_scope order: "bookstores.position"
|
5
5
|
has_many :items
|
6
6
|
|
7
7
|
acts_as_list
|
8
8
|
validates_presence_of :name
|
9
|
-
validates :url, :
|
9
|
+
validates :url, url: true, allow_blank: true, length: {:maximum => 255}
|
10
10
|
|
11
11
|
paginates_per 10
|
12
12
|
|
data/app/models/budget_type.rb
CHANGED
data/app/models/library.rb
CHANGED
@@ -6,10 +6,10 @@ class Library < ActiveRecord::Base
|
|
6
6
|
:country_id, :opening_hour, :isil, :position
|
7
7
|
|
8
8
|
include MasterModel
|
9
|
-
default_scope :
|
9
|
+
default_scope order: 'libraries.position'
|
10
10
|
scope :real, where('id != 1')
|
11
|
-
has_many :shelves, :
|
12
|
-
belongs_to :library_group, :
|
11
|
+
has_many :shelves, order: 'shelves.position'
|
12
|
+
belongs_to :library_group, validate: true
|
13
13
|
has_many :users
|
14
14
|
belongs_to :country
|
15
15
|
|
@@ -27,10 +27,10 @@ class Library < ActiveRecord::Base
|
|
27
27
|
validates_associated :library_group
|
28
28
|
validates_presence_of :short_display_name, :library_group
|
29
29
|
validates_uniqueness_of :short_display_name, :case_sensitive => false
|
30
|
-
validates_uniqueness_of :isil, :
|
31
|
-
validates :display_name, :
|
32
|
-
validates :name, :
|
33
|
-
validates :isil, :
|
30
|
+
validates_uniqueness_of :isil, allow_blank: true
|
31
|
+
validates :display_name, uniqueness: true
|
32
|
+
validates :name, format: {with: /\A[a-z][0-9a-z\-_]{1,253}[0-9a-z]\Z/}
|
33
|
+
validates :isil, format: {with: /\A[A-Za-z]{1,4}-[A-Za-z0-9\/:\-]{2,11}\z/}, allow_blank: true
|
34
34
|
after_validation :geocode, :if => :address_changed?
|
35
35
|
after_create :create_shelf
|
36
36
|
after_save :clear_all_cache
|
@@ -91,7 +91,7 @@ class Library < ActiveRecord::Base
|
|
91
91
|
end
|
92
92
|
|
93
93
|
if defined?(EnjuInterLibraryLoan)
|
94
|
-
has_many :inter_library_loans, :
|
94
|
+
has_many :inter_library_loans, foreign_key: 'borrowing_library_id'
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
data/app/models/library_group.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
class LibraryGroup < ActiveRecord::Base
|
3
|
-
attr_accessible :name, :display_name, :short_name, :
|
3
|
+
attr_accessible :name, :display_name, :short_name, :my_networks,
|
4
4
|
:login_banner, :note, :country_id, :admin_networks, :url
|
5
5
|
|
6
6
|
#include Singleton
|
@@ -9,22 +9,10 @@ class LibraryGroup < ActiveRecord::Base
|
|
9
9
|
has_many :libraries
|
10
10
|
belongs_to :country
|
11
11
|
|
12
|
-
validates :
|
13
|
-
validates :url, :presence => true, :url => true
|
14
|
-
after_save :clear_site_config_cache, :save_system_email
|
15
|
-
|
16
|
-
def clear_site_config_cache
|
17
|
-
Rails.cache.delete('library_site_config')
|
18
|
-
end
|
12
|
+
validates :url, presence: true, url: true
|
19
13
|
|
20
14
|
def self.site_config
|
21
|
-
|
22
|
-
# Rails.cache.fetch('library_site_config'){LibraryGroup.find(1)}
|
23
|
-
#else
|
24
|
-
LibraryGroup.find(1)
|
25
|
-
#end
|
26
|
-
rescue ActiveRecord::RecordNotFound
|
27
|
-
nil
|
15
|
+
LibraryGroup.find(1)
|
28
16
|
end
|
29
17
|
|
30
18
|
def self.system_name(locale = I18n.locale)
|
@@ -60,10 +48,8 @@ class LibraryGroup < ActiveRecord::Base
|
|
60
48
|
return false
|
61
49
|
end
|
62
50
|
|
63
|
-
def
|
64
|
-
|
65
|
-
user.email = email
|
66
|
-
user.save!
|
51
|
+
def user
|
52
|
+
User.find(1)
|
67
53
|
end
|
68
54
|
end
|
69
55
|
|
@@ -75,7 +61,6 @@ end
|
|
75
61
|
# name :string(255) not null
|
76
62
|
# display_name :text
|
77
63
|
# short_name :string(255) not null
|
78
|
-
# email :string(255)
|
79
64
|
# my_networks :text
|
80
65
|
# login_banner :text
|
81
66
|
# note :text
|
@@ -86,4 +71,3 @@ end
|
|
86
71
|
# admin_networks :text
|
87
72
|
# url :string(255) default("http://localhost:3000/")
|
88
73
|
#
|
89
|
-
|
data/app/models/request_type.rb
CHANGED
data/app/models/search_engine.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
class SearchEngine < ActiveRecord::Base
|
2
2
|
attr_accessible :name, :display_name, :url, :base_url, :http_method,
|
3
3
|
:query_param, :additional_param, :note
|
4
|
-
default_scope :
|
4
|
+
default_scope order: "search_engines.position"
|
5
5
|
acts_as_list
|
6
6
|
|
7
|
-
validates :name, :
|
8
|
-
validates :query_param, :
|
9
|
-
validates :http_method, :
|
10
|
-
validates :url, :
|
11
|
-
validates :base_url, :
|
7
|
+
validates :name, presence: true
|
8
|
+
validates :query_param, presence: true
|
9
|
+
validates :http_method, presence: true, :inclusion => %w(get post)
|
10
|
+
validates :url, presence: true, url: true, length: {:maximum => 255}
|
11
|
+
validates :base_url, presence: true, url: true, length: {:maximum => 255}
|
12
12
|
after_save :clear_all_cache
|
13
13
|
after_destroy :clear_all_cache
|
14
14
|
|
data/app/models/shelf.rb
CHANGED
@@ -2,16 +2,16 @@ class Shelf < ActiveRecord::Base
|
|
2
2
|
attr_accessible :name, :display_name, :note, :library_id, :closed
|
3
3
|
include MasterModel
|
4
4
|
scope :real, where('library_id != 1')
|
5
|
-
belongs_to :library, :
|
5
|
+
belongs_to :library, validate: true
|
6
6
|
has_many :items, :include => [:circulation_status]
|
7
|
-
has_many :picture_files, :
|
7
|
+
has_many :picture_files, as: :picture_attachable, dependent: :destroy
|
8
8
|
|
9
9
|
validates_associated :library
|
10
10
|
validates_presence_of :library
|
11
|
-
validates_uniqueness_of :display_name, :
|
12
|
-
validates :name, :
|
11
|
+
validates_uniqueness_of :display_name, scope: :library_id
|
12
|
+
validates :name, format: {with: /\A[a-z][0-9a-z\-_]{1,253}[0-9a-z]\Z/}
|
13
13
|
|
14
|
-
acts_as_list :
|
14
|
+
acts_as_list scope: :library
|
15
15
|
|
16
16
|
searchable do
|
17
17
|
string :name
|
data/app/models/subscribe.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
class Subscribe < ActiveRecord::Base
|
2
2
|
attr_accessible :subscription_id, :work_id, :start_at, :end_at
|
3
|
-
belongs_to :subscription, :counter_cache => true, :
|
4
|
-
belongs_to :work, :
|
3
|
+
belongs_to :subscription, :counter_cache => true, validate: true
|
4
|
+
belongs_to :work, class_name: 'Manifestation', validate: true
|
5
5
|
|
6
6
|
validates_associated :subscription, :work
|
7
7
|
validates_presence_of :subscription, :work, :start_at, :end_at
|
8
|
-
validates_uniqueness_of :work_id, :
|
8
|
+
validates_uniqueness_of :work_id, scope: :subscription_id
|
9
9
|
end
|
10
10
|
|
11
11
|
# == Schema Information
|
data/app/models/subscription.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
class Subscription < ActiveRecord::Base
|
2
2
|
attr_accessible :title, :note, :order_list_id, :user_id
|
3
|
-
has_many :subscribes, :
|
4
|
-
has_many :works, :
|
5
|
-
belongs_to :user, :
|
3
|
+
has_many :subscribes, dependent: :destroy
|
4
|
+
has_many :works, through: :subscribes
|
5
|
+
belongs_to :user, validate: true
|
6
6
|
if defined?(EnjuPurchasRequest)
|
7
|
-
belongs_to :order_list, :
|
7
|
+
belongs_to :order_list, validate: true
|
8
8
|
end
|
9
9
|
|
10
10
|
validates_presence_of :title, :user
|
@@ -14,7 +14,7 @@ class Subscription < ActiveRecord::Base
|
|
14
14
|
text :title, :note
|
15
15
|
time :created_at
|
16
16
|
time :updated_at
|
17
|
-
integer :work_ids, :
|
17
|
+
integer :work_ids, multiple: true
|
18
18
|
end
|
19
19
|
|
20
20
|
paginates_per 10
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<div style="color: red"><%= flash[:message] -%></div>
|
2
2
|
|
3
3
|
<div class="search_form">
|
4
|
-
<%= form_for(:accept, :
|
4
|
+
<%= form_for(:accept, url: basket_accepts_path(@basket), remote: true) do |f| %>
|
5
5
|
<%= f.error_messages %>
|
6
6
|
<p>
|
7
7
|
<%= label_tag :item_identifier, t('activerecord.attributes.item.item_identifier') -%>:
|
8
|
-
<%= f.search_field :item_identifier, :
|
8
|
+
<%= f.search_field :item_identifier, class: 'resource_item_identifier', value: nil -%>
|
9
9
|
<%= f.submit t('accept.accept'), 'data-disable-with' => t('page.saving') -%>
|
10
10
|
</p>
|
11
11
|
<%- end -%>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<%- @accepts.each_with_index do |accept, i| -%>
|
19
19
|
<tr class="line<%= cycle("0", "1") -%>">
|
20
20
|
<td>
|
21
|
-
<%= render 'manifestations/show_index', :
|
21
|
+
<%= render 'manifestations/show_index', manifestation: accept.item.manifestation %>
|
22
22
|
<%= link_to accept.item.item_identifier, accept.item -%> / <%= accept.item.call_number %>
|
23
23
|
(<%= link_to accept.item.shelf.library.display_name.localize, accept.item.shelf.library %> /
|
24
24
|
<%= link_to accept.item.shelf.display_name.localize, accept.item.shelf %>)<br />
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
-
<h1 class="title"><%= t('page.editing', :
|
2
|
+
<h1 class="title"><%= t('page.editing', model: t('activerecord.models.accept')) -%></h1>
|
3
3
|
<div id="content_list">
|
4
4
|
<%= render 'form' %>
|
5
5
|
</div>
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
-
<h1 class="title"><%= t('page.listing', :
|
2
|
+
<h1 class="title"><%= t('page.listing', model: t('activerecord.models.accept')) -%></h1>
|
3
3
|
<div id="content_list">
|
4
4
|
|
5
5
|
<div class="search_form">
|
6
|
-
<%= form_for(:accept, :
|
6
|
+
<%= form_for(:accept, html: {method: :get}) do |f| %>
|
7
7
|
<p>
|
8
8
|
<%= label_tag :item_identifier, t('activerecord.attributes.item.item_identifier') -%>:
|
9
|
-
<%= f.search_field :item_identifier, :
|
9
|
+
<%= f.search_field :item_identifier, value: @query, class: 'resource_item_identifier' -%>
|
10
10
|
<%= f.submit t('page.search') -%>
|
11
11
|
</p>
|
12
12
|
<%- end -%>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<tr class="line<%= cycle("0", "1") -%>">
|
22
22
|
<td>
|
23
23
|
<% if accept.item %>
|
24
|
-
<%= render 'manifestations/show_index', :
|
24
|
+
<%= render 'manifestations/show_index', manifestation: accept.item.manifestation %>
|
25
25
|
<%= link_to accept.item.item_identifier, accept.item -%> / <%= accept.item.call_number %>
|
26
26
|
(<%= link_to accept.item.shelf.library.display_name.localize, accept.item.shelf.library %> /
|
27
27
|
<%= link_to accept.item.shelf.display_name.localize, accept.item.shelf %>)<br />
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</td>
|
31
31
|
<td>
|
32
32
|
<%- if can? :delete, accept -%>
|
33
|
-
<%= link_to t('page.destroy'), accept, :
|
33
|
+
<%= link_to t('page.destroy'), accept, data: {confirm: t('page.are_you_sure')}, method: :delete -%>
|
34
34
|
<%- end -%>
|
35
35
|
</td>
|
36
36
|
</tr>
|
@@ -44,6 +44,6 @@
|
|
44
44
|
|
45
45
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
46
46
|
<ul>
|
47
|
-
<li><%= link_to t('page.new', :
|
47
|
+
<li><%= link_to t('page.new', model: t('activerecord.models.accept')), new_accept_path -%></li>
|
48
48
|
</ul>
|
49
49
|
</div>
|
File without changes
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div id="content_detail" class="ui-corner-all ui-widget-content">
|
2
|
-
<h1 class="title"><%= t('page.new', :
|
2
|
+
<h1 class="title"><%= t('page.new', model: t('activerecord.models.accept')) -%></h1>
|
3
3
|
<div id="content_list">
|
4
4
|
<div id="accept_list">
|
5
5
|
<%= render 'list' -%>
|