enju_circulation 0.1.0.pre36 → 0.1.0.pre37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/carrier_type_has_checkout_types_controller.rb +11 -11
- data/app/controllers/checked_items_controller.rb +13 -13
- data/app/controllers/checkins_controller.rb +14 -15
- data/app/controllers/checkout_types_controller.rb +10 -10
- data/app/controllers/checkouts_controller.rb +18 -19
- data/app/controllers/item_has_use_restrictions_controller.rb +10 -10
- data/app/controllers/lending_policies_controller.rb +1 -1
- data/app/controllers/manifestation_checkout_stats_controller.rb +15 -13
- data/app/controllers/manifestation_reserve_stats_controller.rb +15 -13
- data/app/controllers/reserves_controller.rb +27 -28
- data/app/controllers/user_checkout_stats_controller.rb +15 -13
- data/app/controllers/user_group_has_checkout_types_controller.rb +11 -11
- data/app/controllers/user_reserve_stats_controller.rb +15 -13
- data/app/models/carrier_type_has_checkout_type.rb +6 -6
- data/app/models/checked_item.rb +20 -18
- data/app/models/checkin.rb +13 -14
- data/app/models/checkout.rb +20 -21
- data/app/models/checkout_stat_has_manifestation.rb +2 -2
- data/app/models/checkout_stat_has_user.rb +2 -2
- data/app/models/checkout_type.rb +9 -9
- data/app/models/circulation_status.rb +13 -3
- data/app/models/enju_circulation/ability.rb +1 -1
- data/app/models/item_has_use_restriction.rb +3 -3
- data/app/models/lending_policy.rb +4 -4
- data/app/models/manifestation_checkout_stat.rb +4 -3
- data/app/models/manifestation_checkout_stat_transition.rb +13 -0
- data/app/models/manifestation_reserve_stat.rb +4 -3
- data/app/models/manifestation_reserve_stat_transition.rb +13 -0
- data/app/models/reserve.rb +123 -157
- data/app/models/reserve_stat_has_manifestation.rb +2 -2
- data/app/models/reserve_stat_has_user.rb +2 -2
- data/app/models/reserve_state_machine.rb +93 -0
- data/app/models/reserve_transition.rb +20 -0
- data/app/models/use_restriction.rb +5 -5
- data/app/models/user_checkout_stat.rb +4 -3
- data/app/models/user_checkout_stat_transition.rb +13 -0
- data/app/models/user_group_has_checkout_type.rb +8 -8
- data/app/models/user_reserve_stat.rb +4 -3
- data/app/models/user_reserve_stat_transition.rb +13 -0
- data/app/views/carrier_type_has_checkout_types/_form.html.erb +3 -3
- data/app/views/carrier_type_has_checkout_types/edit.html.erb +1 -1
- data/app/views/carrier_type_has_checkout_types/index.html.erb +3 -3
- data/app/views/carrier_type_has_checkout_types/new.html.erb +1 -1
- data/app/views/carrier_type_has_checkout_types/show.html.erb +1 -1
- data/app/views/carrier_types/_checkout_form.html.erb +1 -1
- data/app/views/checked_items/_checked_item.html.erb +3 -3
- data/app/views/checked_items/_checkout.html.erb +3 -3
- data/app/views/checked_items/_list.html.erb +3 -3
- data/app/views/checked_items/edit.html.erb +1 -1
- data/app/views/checked_items/index.html.erb +1 -1
- data/app/views/checked_items/new.html.erb +3 -3
- data/app/views/checked_items/show.html.erb +1 -1
- data/app/views/checkins/_checkin.html.erb +3 -3
- data/app/views/checkins/_form.html.erb +1 -1
- data/app/views/checkins/_list.html.erb +2 -2
- data/app/views/checkins/edit.html.erb +1 -1
- data/app/views/checkins/index.html.erb +2 -2
- data/app/views/checkins/new.html.erb +3 -3
- data/app/views/checkins/show.html.erb +1 -1
- data/app/views/checkout_types/_form.html.erb +2 -2
- data/app/views/checkout_types/edit.html.erb +1 -1
- data/app/views/checkout_types/index.html.erb +4 -4
- data/app/views/checkout_types/new.html.erb +1 -1
- data/app/views/checkout_types/show.html.erb +2 -2
- data/app/views/checkouts/_index.html.erb +7 -7
- data/app/views/checkouts/_index_item.html.erb +5 -5
- data/app/views/checkouts/_index_overdue.html.erb +7 -7
- data/app/views/checkouts/_index_user.html.erb +13 -13
- data/app/views/checkouts/_list.html.erb +5 -5
- data/app/views/checkouts/_reserved_facet.html.erb +2 -2
- data/app/views/checkouts/edit.html.erb +8 -8
- data/app/views/checkouts/index.atom.builder +3 -3
- data/app/views/checkouts/index.html.erb +3 -3
- data/app/views/checkouts/index.rss.builder +9 -9
- data/app/views/checkouts/index.txt.erb +4 -0
- data/app/views/checkouts/new.html.erb +2 -2
- data/app/views/checkouts/show.html.erb +7 -7
- data/app/views/circulation_statuses/_form.html.erb +2 -2
- data/app/views/circulation_statuses/edit.html.erb +1 -1
- data/app/views/circulation_statuses/index.html.erb +3 -3
- data/app/views/circulation_statuses/new.html.erb +1 -1
- data/app/views/circulation_statuses/show.html.erb +1 -1
- data/app/views/item_has_use_restrictions/edit.html.erb +1 -1
- data/app/views/item_has_use_restrictions/index.html.erb +4 -4
- data/app/views/item_has_use_restrictions/new.html.erb +2 -2
- data/app/views/item_has_use_restrictions/show.html.erb +1 -1
- data/app/views/lending_policies/_form.html.erb +1 -1
- data/app/views/lending_policies/edit.html.erb +1 -1
- data/app/views/lending_policies/index.html.erb +2 -2
- data/app/views/lending_policies/new.html.erb +1 -1
- data/app/views/lending_policies/show.html.erb +2 -2
- data/app/views/manifestation_checkout_stats/_form.html.erb +1 -1
- data/app/views/manifestation_checkout_stats/edit.html.erb +1 -1
- data/app/views/manifestation_checkout_stats/index.html.erb +3 -4
- data/app/views/manifestation_checkout_stats/new.html.erb +1 -1
- data/app/views/manifestation_checkout_stats/show.html.erb +3 -4
- data/app/views/manifestation_checkout_stats/show.txt.erb +4 -0
- data/app/views/manifestation_reserve_stats/_form.html.erb +1 -1
- data/app/views/manifestation_reserve_stats/edit.html.erb +1 -1
- data/app/views/manifestation_reserve_stats/index.html.erb +3 -4
- data/app/views/manifestation_reserve_stats/new.html.erb +1 -1
- data/app/views/manifestation_reserve_stats/show.html.erb +3 -4
- data/app/views/manifestation_reserve_stats/show.txt.erb +4 -0
- data/app/views/my_accounts/_feed_token.html.erb +3 -3
- data/app/views/reserves/_form.html.erb +1 -1
- data/app/views/reserves/_new.html.erb +9 -9
- data/app/views/reserves/_new_user.html.erb +13 -13
- data/app/views/reserves/_state_facet.html.erb +2 -2
- data/app/views/reserves/_title.html.erb +1 -1
- data/app/views/reserves/edit.html.erb +7 -7
- data/app/views/reserves/index.atom.builder +3 -3
- data/app/views/reserves/index.html.erb +26 -26
- data/app/views/reserves/index.rss.builder +10 -10
- data/app/views/reserves/index.txt.erb +4 -0
- data/app/views/reserves/show.html.erb +9 -9
- data/app/views/use_restrictions/_form.html.erb +2 -2
- data/app/views/use_restrictions/edit.html.erb +1 -1
- data/app/views/use_restrictions/index.html.erb +3 -3
- data/app/views/use_restrictions/new.html.erb +1 -1
- data/app/views/use_restrictions/show.html.erb +1 -1
- data/app/views/user_checkout_stats/_form.html.erb +1 -1
- data/app/views/user_checkout_stats/edit.html.erb +1 -1
- data/app/views/user_checkout_stats/index.html.erb +3 -4
- data/app/views/user_checkout_stats/new.html.erb +1 -1
- data/app/views/user_checkout_stats/show.html.erb +3 -4
- data/app/views/user_checkout_stats/show.txt.erb +4 -0
- data/app/views/user_group_has_checkout_types/edit.html.erb +7 -7
- data/app/views/user_group_has_checkout_types/index.html.erb +3 -3
- data/app/views/user_group_has_checkout_types/new.html.erb +9 -9
- data/app/views/user_group_has_checkout_types/show.html.erb +1 -1
- data/app/views/user_groups/_checkout_form.html.erb +6 -6
- data/app/views/user_reserve_stats/_form.html.erb +1 -1
- data/app/views/user_reserve_stats/edit.html.erb +1 -1
- data/app/views/user_reserve_stats/index.html.erb +3 -4
- data/app/views/user_reserve_stats/new.html.erb +1 -1
- data/app/views/user_reserve_stats/show.html.erb +3 -4
- data/app/views/user_reserve_stats/show.txt.erb +4 -0
- data/app/views/users/_feed_token.html.erb +3 -3
- data/config/initializers/inflections.rb +3 -0
- data/config/locales/translation_en.yml +6 -0
- data/config/locales/translation_ja.yml +6 -0
- data/config/routes.rb +8 -10
- data/db/migrate/035_create_reserves.rb +0 -1
- data/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +0 -1
- data/db/migrate/20081215094302_create_user_checkout_stats.rb +0 -1
- data/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +0 -1
- data/db/migrate/20081220023628_create_user_reserve_stats.rb +0 -1
- data/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +0 -4
- data/db/migrate/20140518050147_create_reserve_transitions.rb +14 -0
- data/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb +12 -0
- data/db/migrate/20140810091231_add_checkout_icalendar_token_to_profile.rb +6 -0
- data/db/migrate/20140810091417_add_save_checkout_history_to_profile.rb +5 -0
- data/lib/enju_circulation/engine.rb +0 -4
- data/lib/enju_circulation/item.rb +4 -4
- data/lib/enju_circulation/manifestation.rb +2 -2
- data/lib/enju_circulation/profile.rb +26 -0
- data/lib/enju_circulation/user.rb +1 -1
- data/lib/enju_circulation/version.rb +1 -1
- data/lib/enju_circulation.rb +2 -0
- data/lib/generators/enju_circulation/setup/setup_generator.rb +2 -0
- data/lib/generators/enju_circulation/setup/templates/db/fixtures/circulation_statuses.yml +48 -25
- data/lib/generators/enju_circulation/setup/templates/db/fixtures/use_restrictions.yml +39 -13
- data/lib/tasks/circulation_status.rb +6 -0
- data/lib/tasks/enju_circulation_tasks.rake +14 -0
- data/lib/tasks/reserve.rb +5 -0
- data/lib/tasks/use_restriction.rb +6 -0
- data/spec/controllers/carrier_type_has_checkout_types_controller_spec.rb +21 -21
- data/spec/controllers/checkins_controller_spec.rb +22 -22
- data/spec/controllers/checkout_types_controller_spec.rb +21 -21
- data/spec/controllers/checkouts_controller_spec.rb +14 -14
- data/spec/controllers/circulation_statuses_controller_spec.rb +21 -21
- data/spec/controllers/item_has_use_restrictions_controller_spec.rb +21 -21
- data/spec/controllers/lending_policies_controller_spec.rb +21 -21
- data/spec/controllers/manifestation_checkout_stats_controller_spec.rb +21 -21
- data/spec/controllers/manifestation_reserve_stats_controller_spec.rb +21 -21
- data/spec/controllers/reserves_controller_spec.rb +32 -32
- data/spec/controllers/use_restrictions_controller_spec.rb +21 -21
- data/spec/controllers/user_checkout_stats_controller_spec.rb +21 -21
- data/spec/controllers/user_group_has_checkout_types_controller_spec.rb +21 -21
- data/spec/controllers/user_reserve_stats_controller_spec.rb +21 -21
- data/spec/dummy/app/models/user.rb +2 -46
- data/spec/dummy/config/environments/test.rb +2 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/001_create_agents.rb +0 -8
- data/spec/dummy/db/migrate/005_create_manifestations.rb +7 -12
- data/spec/dummy/db/migrate/006_create_items.rb +0 -6
- 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/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/20090705133942_add_attachments_picture_to_picture_file.rb +15 -0
- 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/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/20110603184217_add_edit_mode_to_resource_import_file.rb +9 -0
- data/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb +11 -0
- data/spec/dummy/db/migrate/20111201155456_devise_create_users.rb +42 -0
- data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +6 -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/20120413072700_add_picture_meta_to_picture_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.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/20130221154434_add_additional_attributes_to_user.rb +16 -0
- data/spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb +7 -0
- data/spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb +5 -0
- data/spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb +6 -0
- data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -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/20140524020735_create_agent_import_file_transitions.rb +14 -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/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/20140720140916_add_binding_item_identifier_to_item.rb +8 -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/20140811031145_add_expired_at_to_profile.rb +5 -0
- data/spec/dummy/db/schema.rb +315 -56
- 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/_7f0.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_7f0.fdx +0 -0
- data/spec/dummy/solr/default/data/index/_7f0.fnm +0 -0
- data/spec/dummy/solr/default/data/index/_7f0.nvd +0 -0
- data/spec/dummy/solr/default/data/index/_7f0.nvm +0 -0
- data/spec/dummy/solr/default/data/index/_7f0.si +0 -0
- data/spec/dummy/solr/default/data/index/_7f0_Lucene41_0.doc +0 -0
- data/spec/dummy/solr/default/data/index/_7f0_Lucene41_0.pos +0 -0
- data/spec/dummy/solr/default/data/index/_7f0_Lucene41_0.tim +0 -0
- data/spec/dummy/solr/default/data/index/_7f0_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/segments.gen +0 -0
- data/spec/dummy/solr/default/data/index/segments_bvw +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015394 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015395 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015396 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015397 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015398 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015399 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015400 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015401 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000015402 +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/0007f9aec08cc2727b3d00cd62cf1d0f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0440b81b0aae840cf287a686585a8cec +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0e3e358e4fe4601ba5e435f6d0c86f12 +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/181c975b1296d7ebe81714d5e64bc098 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1c1fbab93e4552626da626e0dbe70c74 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1e58a07a3701da9fb9c176d67162af2b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2b35ad8fee7e1228e205669278e2adda +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/3753d928863ee65118b9f2da1c6e504d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/40e90f0c329b14292a9ff1a2fe907b39 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/45f3c74e1e31b58d9bda6908d5623290 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/49a3464eb6bcffb3d9f5b47b133edabb +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/50e64f45f0cb4cee52fd3f3908f89a82 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/51f7d34a9e9bebb47b7201cfebfec34d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5995180d1cfd7cad71ec6d9e1a538f0e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/604e0e4b3c01d488d6fb087e9fdaeb94 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6401fc09d2b894df2ad251b007df145a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/65a8d4d288e5f082f0166aa7be7a2464 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6f5d66df18892df6af39c9cfd784f0f5 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6fcdd2234a7c25f9d4179ca12fd9f7b4 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6fdb4513af157010ef79b56df44d665e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/750439d8043ed022910956fbb55faa65 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/811e5198d0dc4efe02d28c0c2215e207 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/83ea20e0b25e77f5dce5bf733b088292 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9604073a83f822f13caaabd7e157bbbb +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/98d02556564ee10aef4c3397bb94d5b9 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9cfe4d48f5258863dbfb3623c797fb15 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a296264dcc89e1f8ab6382e678ffbe38 +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/c1ab0ecf3cf57db41d9e4cd9306d8829 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c4a984c6feb506f3e1f9120a8d029bda +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ccdcb26ebc6ef3b684368b368edf4f99 +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/dd672deb061233e0db1d2f413d27213f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e1fcfb0faa3c12467a1c35251e04c8b1 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e2d21478696ac96ad895f7c3b8d31594 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e577e9ce00153ad2e59111f761d0fb15 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e9738177de2083b68d42e053a1529244 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e9ce2df3f0160329df69b22a911dbd04 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f2e83d3b5fe984832bfeff09b0e3b8d2 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f90eee17e0e5eaea50e6064ded54617c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/fa8e81ce1d45228121b9df5618542190 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/fbdc1d9347cb228f06807b76c6c2974e +0 -0
- data/spec/dummy/tmp/cache/stdout +1262 -0
- data/spec/dummy/tmp/pids/redis-test.pid +1 -0
- data/spec/factories/profile.rb +9 -0
- data/spec/factories/reserve.rb +7 -1
- data/spec/factories/user.rb +3 -9
- data/spec/fixtures/agents.yml +0 -12
- data/spec/fixtures/checkouts.yml +12 -1
- data/spec/fixtures/items.yml +48 -25
- data/spec/fixtures/manifestation_checkout_stats.yml +3 -4
- data/spec/fixtures/manifestation_reserve_stats.yml +3 -4
- data/spec/fixtures/message_requests.yml +0 -3
- data/spec/fixtures/message_templates.yml +41 -20
- data/spec/fixtures/profiles.yml +83 -0
- data/spec/fixtures/reserve_transitions.yml +88 -0
- data/spec/fixtures/reserves.yml +1 -18
- data/spec/fixtures/user_checkout_stats.yml +3 -4
- data/spec/fixtures/user_groups.yml +3 -3
- data/spec/fixtures/user_reserve_stats.yml +3 -4
- data/spec/fixtures/users.yml +0 -55
- data/spec/models/checked_item_spec.rb +2 -1
- data/spec/models/checkout_spec.rb +0 -1
- data/spec/models/manifestation_checkout_stat_spec.rb +4 -2
- data/spec/models/manifestation_reserve_stat_spec.rb +4 -2
- data/spec/models/reserve_spec.rb +9 -11
- data/spec/models/user_checkout_stat_spec.rb +4 -2
- data/spec/models/user_reserve_stat_spec.rb +4 -2
- data/spec/support/resque.rb +25 -22
- metadata +325 -92
- data/app/controllers/checkout_stat_has_manifestations_controller.rb +0 -81
- data/app/controllers/checkout_stat_has_users_controller.rb +0 -81
- data/app/controllers/reserve_stat_has_manifestations_controller.rb +0 -81
- data/app/controllers/reserve_stat_has_users_controller.rb +0 -81
- data/app/models/circulation_sweeper.rb +0 -24
- data/app/views/checkout_stat_has_manifestations/_form.html.erb +0 -15
- data/app/views/checkout_stat_has_manifestations/edit.html.erb +0 -13
- data/app/views/checkout_stat_has_manifestations/index.html.erb +0 -33
- data/app/views/checkout_stat_has_manifestations/new.html.erb +0 -12
- data/app/views/checkout_stat_has_manifestations/show.html.erb +0 -28
- data/app/views/checkout_stat_has_users/_form.html.erb +0 -15
- data/app/views/checkout_stat_has_users/edit.html.erb +0 -13
- data/app/views/checkout_stat_has_users/index.html.erb +0 -33
- data/app/views/checkout_stat_has_users/new.html.erb +0 -12
- data/app/views/checkout_stat_has_users/show.html.erb +0 -28
- data/app/views/checkouts/index.csv.erb +0 -4
- data/app/views/manifestation_checkout_stats/show.csv.erb +0 -4
- data/app/views/manifestation_reserve_stats/show.csv.erb +0 -4
- data/app/views/reserve_stat_has_manifestations/_form.html.erb +0 -15
- data/app/views/reserve_stat_has_manifestations/edit.html.erb +0 -13
- data/app/views/reserve_stat_has_manifestations/index.html.erb +0 -33
- data/app/views/reserve_stat_has_manifestations/new.html.erb +0 -12
- data/app/views/reserve_stat_has_manifestations/show.html.erb +0 -28
- data/app/views/reserve_stat_has_users/_form.html.erb +0 -15
- data/app/views/reserve_stat_has_users/edit.html.erb +0 -13
- data/app/views/reserve_stat_has_users/index.html.erb +0 -33
- data/app/views/reserve_stat_has_users/new.html.erb +0 -12
- data/app/views/reserve_stat_has_users/show.html.erb +0 -28
- data/app/views/reserves/index.csv.erb +0 -4
- data/app/views/user_checkout_stats/show.csv.erb +0 -4
- data/app/views/user_reserve_stats/show.csv.erb +0 -4
- data/db/fixtures/carrier_type_has_checkout_types.yml +0 -8
- data/db/fixtures/checkout_types.yml +0 -22
- data/db/fixtures/circulation_statuses.yml +0 -92
- data/db/fixtures/use_restrictions.yml +0 -79
- data/db/migrate/20130303104849_add_state_index_to_reserve.rb +0 -5
- data/spec/controllers/checkout_stat_has_manifestations_controller_spec.rb +0 -441
- data/spec/controllers/checkout_stat_has_users_controller_spec.rb +0 -441
- data/spec/controllers/reserve_stat_has_manifestations_controller_spec.rb +0 -441
- data/spec/controllers/reserve_stat_has_users_controller_spec.rb +0 -441
- data/spec/dummy/app/mailers/notifier.rb +0 -29
- 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
- data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +0 -44
@@ -0,0 +1 @@
|
|
1
|
+
42252
|
data/spec/factories/reserve.rb
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
FactoryGirl.define do
|
2
2
|
factory :reserve do |f|
|
3
|
+
before(:create) do |reserve|
|
4
|
+
profile = FactoryGirl.create(:profile)
|
5
|
+
user = User.new(FactoryGirl.attributes_for(:user), as: :admin)
|
6
|
+
user.profile = profile
|
7
|
+
reserve.user = user
|
8
|
+
end
|
3
9
|
f.manifestation_id{FactoryGirl.create(:manifestation).id}
|
4
|
-
f.
|
10
|
+
# f.user{FactoryGirl.create(:user)}
|
5
11
|
end
|
6
12
|
end
|
data/spec/factories/user.rb
CHANGED
@@ -2,34 +2,28 @@ FactoryGirl.define do
|
|
2
2
|
factory :admin, :class => User do |f|
|
3
3
|
f.sequence(:username){|n| "admin_#{n}"}
|
4
4
|
f.sequence(:email){|n| "admin_#{n}@example.jp"}
|
5
|
+
f.email_confirmation{|u| u.email}
|
5
6
|
f.role {Role.find_by_name('Administrator')}
|
6
7
|
f.password 'adminpassword'
|
7
8
|
f.password_confirmation 'adminpassword'
|
8
|
-
f.user_group {UserGroup.first}
|
9
|
-
f.required_role {Role.find_by_name('User')}
|
10
|
-
f.sequence(:user_number){|n| "user_number_#{n}"}
|
11
9
|
end
|
12
10
|
|
13
11
|
factory :librarian, :class => User do |f|
|
14
12
|
f.sequence(:username){|n| "librarian_#{n}"}
|
15
13
|
f.sequence(:email){|n| "librarian_#{n}@example.jp"}
|
14
|
+
f.email_confirmation{|u| u.email}
|
16
15
|
f.role {Role.find_by_name('Librarian')}
|
17
16
|
f.password 'librarianpassword'
|
18
17
|
f.password_confirmation 'librarianpassword'
|
19
|
-
f.user_group {UserGroup.first}
|
20
|
-
f.required_role {Role.find_by_name('User')}
|
21
|
-
f.sequence(:user_number){|n| "user_number_#{n}"}
|
22
18
|
end
|
23
19
|
|
24
20
|
factory :user, :class => User do |f|
|
25
21
|
f.sequence(:username){|n| "user_#{n}"}
|
26
22
|
f.sequence(:email){|n| "user_#{n}@example.jp"}
|
23
|
+
f.email_confirmation{|u| u.email}
|
27
24
|
f.role {Role.find_by_name('User')}
|
28
25
|
f.password 'userpassword'
|
29
26
|
f.password_confirmation 'userpassword'
|
30
|
-
f.user_group {UserGroup.find(2)}
|
31
|
-
f.required_role {Role.find_by_name('User')}
|
32
|
-
f.sequence(:user_number){|n| "user_number_#{n}"}
|
33
27
|
end
|
34
28
|
|
35
29
|
factory :invalid_user, :class => User do |f|
|
data/spec/fixtures/agents.yml
CHANGED
@@ -15,7 +15,6 @@ agent_00001:
|
|
15
15
|
agent_type_id: 1
|
16
16
|
required_role_id: 1
|
17
17
|
created_at: 2007-11-19 17:06:06.507237 +09:00
|
18
|
-
user_id: 1
|
19
18
|
agent_00002:
|
20
19
|
place: ""
|
21
20
|
last_name: Librarian1
|
@@ -32,7 +31,6 @@ agent_00002:
|
|
32
31
|
agent_type_id: 1
|
33
32
|
required_role_id: 4
|
34
33
|
created_at: 2007-11-19 17:06:07.724517 +09:00
|
35
|
-
user_id: 2
|
36
34
|
agent_00003:
|
37
35
|
place:
|
38
36
|
last_name: Kosuke
|
@@ -49,7 +47,6 @@ agent_00003:
|
|
49
47
|
agent_type_id: 1
|
50
48
|
required_role_id: 3
|
51
49
|
created_at: 2007-12-04 16:25:01.523618 +09:00
|
52
|
-
user_id: 3
|
53
50
|
agent_00004:
|
54
51
|
place:
|
55
52
|
last_name: Librarian2
|
@@ -66,7 +63,6 @@ agent_00004:
|
|
66
63
|
agent_type_id: 1
|
67
64
|
required_role_id: 1
|
68
65
|
created_at: 2007-12-04 16:25:01.785027 +09:00
|
69
|
-
user_id: 4
|
70
66
|
agent_00005:
|
71
67
|
place: ""
|
72
68
|
last_name: User2
|
@@ -83,7 +79,6 @@ agent_00005:
|
|
83
79
|
agent_type_id: 1
|
84
80
|
required_role_id: 2
|
85
81
|
created_at: 2007-11-19 17:24:50.153417 +09:00
|
86
|
-
user_id: 5
|
87
82
|
agent_00006:
|
88
83
|
place: ""
|
89
84
|
last_name: New agent 1
|
@@ -180,7 +175,6 @@ agent_00011:
|
|
180
175
|
agent_type_id: 1
|
181
176
|
required_role_id: 1
|
182
177
|
created_at: 2007-11-19 17:24:50.153417 +09:00
|
183
|
-
user_id: 6
|
184
178
|
agent_00101:
|
185
179
|
place: ""
|
186
180
|
last_name: テスト名字
|
@@ -278,17 +272,11 @@ agent_00202:
|
|
278
272
|
required_role_id: 1
|
279
273
|
created_at: 2010-03-15 17:00:00.579396 +09:00
|
280
274
|
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
275
|
# == Schema Information
|
287
276
|
#
|
288
277
|
# Table name: agents
|
289
278
|
#
|
290
279
|
# id :integer not null, primary key
|
291
|
-
# user_id :integer
|
292
280
|
# last_name :string(255)
|
293
281
|
# middle_name :string(255)
|
294
282
|
# first_name :string(255)
|
data/spec/fixtures/checkouts.yml
CHANGED
@@ -143,6 +143,18 @@ checkout_00013:
|
|
143
143
|
created_at: 2007-09-08 01:39:13.210081 +09:00
|
144
144
|
basket_id: 8
|
145
145
|
checkin_id: 4
|
146
|
+
checkout_00014:
|
147
|
+
item_id: 24
|
148
|
+
updated_at: 2007-09-09 21:15:11.648996 +09:00
|
149
|
+
lock_version: 0
|
150
|
+
user_id: 3
|
151
|
+
id: 14
|
152
|
+
librarian_id: 1
|
153
|
+
checkout_renewal_count: 1
|
154
|
+
due_date: <%= 180.days.ago.beginning_of_day %>
|
155
|
+
created_at: 2007-09-08 01:39:13.210081 +09:00
|
156
|
+
basket_id: 9
|
157
|
+
checkin_id:
|
146
158
|
|
147
159
|
# == Schema Information
|
148
160
|
#
|
@@ -160,4 +172,3 @@ checkout_00013:
|
|
160
172
|
# created_at :datetime not null
|
161
173
|
# updated_at :datetime not null
|
162
174
|
#
|
163
|
-
|
data/spec/fixtures/items.yml
CHANGED
@@ -6,6 +6,7 @@ item_00001:
|
|
6
6
|
checkout_type_id: 1
|
7
7
|
shelf_id: 1
|
8
8
|
call_number:
|
9
|
+
manifestation_id: 1
|
9
10
|
id: 1
|
10
11
|
include_supplements: false
|
11
12
|
created_at: 2007-08-24 23:46:00.484813 +09:00
|
@@ -16,6 +17,7 @@ item_00002:
|
|
16
17
|
checkout_type_id: 1
|
17
18
|
shelf_id: 1
|
18
19
|
call_number:
|
20
|
+
manifestation_id: 2
|
19
21
|
id: 2
|
20
22
|
include_supplements: false
|
21
23
|
created_at: 2007-08-24 23:46:01.641413 +09:00
|
@@ -26,6 +28,7 @@ item_00003:
|
|
26
28
|
checkout_type_id: 2
|
27
29
|
shelf_id: 1
|
28
30
|
call_number:
|
31
|
+
manifestation_id: 3
|
29
32
|
id: 3
|
30
33
|
include_supplements: false
|
31
34
|
created_at: 2007-08-24 23:46:02.502569 +09:00
|
@@ -36,6 +39,7 @@ item_00004:
|
|
36
39
|
checkout_type_id: 1
|
37
40
|
shelf_id: 1
|
38
41
|
call_number:
|
42
|
+
manifestation_id: 1
|
39
43
|
id: 4
|
40
44
|
include_supplements: true
|
41
45
|
created_at: 2007-08-24 23:46:03.520781 +09:00
|
@@ -46,6 +50,7 @@ item_00005:
|
|
46
50
|
checkout_type_id: 2
|
47
51
|
shelf_id: 1
|
48
52
|
call_number:
|
53
|
+
manifestation_id: 2
|
49
54
|
id: 5
|
50
55
|
include_supplements: false
|
51
56
|
created_at: 2007-08-24 23:46:04.538073 +09:00
|
@@ -56,6 +61,7 @@ item_00006:
|
|
56
61
|
checkout_type_id: 2
|
57
62
|
shelf_id: 1
|
58
63
|
call_number:
|
64
|
+
manifestation_id: 3
|
59
65
|
id: 6
|
60
66
|
include_supplements: true
|
61
67
|
created_at: 2007-08-24 23:46:05.555353 +09:00
|
@@ -66,6 +72,7 @@ item_00007:
|
|
66
72
|
checkout_type_id: 1
|
67
73
|
shelf_id: 1
|
68
74
|
call_number:
|
75
|
+
manifestation_id: 1
|
69
76
|
id: 7
|
70
77
|
include_supplements: false
|
71
78
|
created_at: 2007-08-24 23:46:06.572631 +09:00
|
@@ -76,6 +83,7 @@ item_00008:
|
|
76
83
|
checkout_type_id: 2
|
77
84
|
shelf_id: 1
|
78
85
|
call_number:
|
86
|
+
manifestation_id: 2
|
79
87
|
id: 8
|
80
88
|
include_supplements: true
|
81
89
|
created_at: 2007-08-24 23:46:07.589909 +09:00
|
@@ -86,6 +94,7 @@ item_00009:
|
|
86
94
|
checkout_type_id: 1
|
87
95
|
shelf_id: 4
|
88
96
|
call_number:
|
97
|
+
manifestation_id: 3
|
89
98
|
id: 9
|
90
99
|
include_supplements: false
|
91
100
|
created_at: 2007-08-24 23:46:08.607081 +09:00
|
@@ -96,6 +105,7 @@ item_00010:
|
|
96
105
|
checkout_type_id: 2
|
97
106
|
shelf_id: 1
|
98
107
|
call_number:
|
108
|
+
manifestation_id: 1
|
99
109
|
id: 10
|
100
110
|
include_supplements: false
|
101
111
|
created_at: 2007-08-24 23:46:09.624281 +09:00
|
@@ -106,6 +116,7 @@ item_00011:
|
|
106
116
|
checkout_type_id: 1
|
107
117
|
shelf_id: 1
|
108
118
|
call_number:
|
119
|
+
manifestation_id: 1
|
109
120
|
id: 11
|
110
121
|
include_supplements: false
|
111
122
|
created_at: 2007-08-24 23:46:10.484813 +09:00
|
@@ -116,6 +127,7 @@ item_00012:
|
|
116
127
|
checkout_type_id: 2
|
117
128
|
shelf_id: 1
|
118
129
|
call_number:
|
130
|
+
manifestation_id: 2
|
119
131
|
id: 12
|
120
132
|
include_supplements: false
|
121
133
|
created_at: 2007-08-24 23:46:11.484813 +09:00
|
@@ -126,6 +138,7 @@ item_00013:
|
|
126
138
|
checkout_type_id: 1
|
127
139
|
shelf_id: 1
|
128
140
|
call_number:
|
141
|
+
manifestation_id: 2
|
129
142
|
id: 13
|
130
143
|
include_supplements: false
|
131
144
|
created_at: 2007-08-24 23:46:12.484813 +09:00
|
@@ -136,6 +149,7 @@ item_00014:
|
|
136
149
|
checkout_type_id: 2
|
137
150
|
shelf_id: 1
|
138
151
|
call_number:
|
152
|
+
manifestation_id: 2
|
139
153
|
id: 14
|
140
154
|
include_supplements: false
|
141
155
|
created_at: 2007-08-24 23:46:13.484813 +09:00
|
@@ -146,6 +160,7 @@ item_00015:
|
|
146
160
|
checkout_type_id: 3
|
147
161
|
shelf_id: 1
|
148
162
|
call_number:
|
163
|
+
manifestation_id: 2
|
149
164
|
id: 15
|
150
165
|
include_supplements: false
|
151
166
|
created_at: 2007-08-24 23:46:14.484813 +09:00
|
@@ -156,6 +171,7 @@ item_00016:
|
|
156
171
|
checkout_type_id: 2
|
157
172
|
shelf_id: 1
|
158
173
|
call_number:
|
174
|
+
manifestation_id: 3
|
159
175
|
id: 16
|
160
176
|
include_supplements: true
|
161
177
|
created_at: 2007-08-24 23:46:15.484813 +09:00
|
@@ -166,6 +182,7 @@ item_00017:
|
|
166
182
|
checkout_type_id: 3
|
167
183
|
shelf_id: 1
|
168
184
|
call_number:
|
185
|
+
manifestation_id: 3
|
169
186
|
id: 17
|
170
187
|
include_supplements: false
|
171
188
|
created_at: 2007-08-24 23:46:16.484813 +09:00
|
@@ -176,6 +193,7 @@ item_00018:
|
|
176
193
|
checkout_type_id: 3
|
177
194
|
shelf_id: 1
|
178
195
|
call_number:
|
196
|
+
manifestation_id: 1
|
179
197
|
id: 18
|
180
198
|
include_supplements: false
|
181
199
|
created_at: 2007-08-24 23:46:17.484813 +09:00
|
@@ -186,6 +204,7 @@ item_00019:
|
|
186
204
|
checkout_type_id: 3
|
187
205
|
shelf_id: 1
|
188
206
|
call_number:
|
207
|
+
manifestation_id: 1
|
189
208
|
id: 19
|
190
209
|
include_supplements: false
|
191
210
|
created_at: 2007-08-24 23:46:18.484813 +09:00
|
@@ -196,6 +215,7 @@ item_00020:
|
|
196
215
|
checkout_type_id: 3
|
197
216
|
shelf_id: 1
|
198
217
|
call_number:
|
218
|
+
manifestation_id: 1
|
199
219
|
id: 20
|
200
220
|
include_supplements: false
|
201
221
|
created_at: 2007-08-24 23:46:19.484813 +09:00
|
@@ -206,6 +226,7 @@ item_00021:
|
|
206
226
|
checkout_type_id: 3
|
207
227
|
shelf_id: 1
|
208
228
|
call_number:
|
229
|
+
manifestation_id: 11
|
209
230
|
id: 21
|
210
231
|
include_supplements: false
|
211
232
|
created_at: 2007-08-24 23:46:20.484813 +09:00
|
@@ -216,6 +237,7 @@ item_00022:
|
|
216
237
|
checkout_type_id: 3
|
217
238
|
shelf_id: 1
|
218
239
|
call_number:
|
240
|
+
manifestation_id: 11
|
219
241
|
id: 22
|
220
242
|
include_supplements: false
|
221
243
|
created_at: 2007-08-24 23:46:20.484813 +09:00
|
@@ -226,6 +248,7 @@ item_00023:
|
|
226
248
|
checkout_type_id: 3
|
227
249
|
shelf_id: 2
|
228
250
|
call_number:
|
251
|
+
manifestation_id: 11
|
229
252
|
id: 23
|
230
253
|
include_supplements: false
|
231
254
|
created_at: 2007-08-24 23:46:20.484813 +09:00
|
@@ -239,6 +262,7 @@ item_00024:
|
|
239
262
|
id: 24
|
240
263
|
include_supplements: false
|
241
264
|
created_at: 2007-08-24 23:46:20.484813 +09:00
|
265
|
+
manifestation_id: 9
|
242
266
|
item_00025:
|
243
267
|
updated_at: 2007-08-24 23:46:20.484813 +09:00
|
244
268
|
item_identifier: '00025'
|
@@ -249,34 +273,33 @@ item_00025:
|
|
249
273
|
id: 25
|
250
274
|
include_supplements: false
|
251
275
|
created_at: 2007-08-24 23:46:20.484813 +09:00
|
252
|
-
|
276
|
+
manifestation_id: 10
|
253
277
|
|
254
278
|
# == Schema Information
|
255
279
|
#
|
256
280
|
# Table name: items
|
257
281
|
#
|
258
|
-
# id
|
259
|
-
# call_number
|
260
|
-
# item_identifier
|
261
|
-
#
|
262
|
-
#
|
263
|
-
#
|
264
|
-
#
|
265
|
-
#
|
266
|
-
#
|
267
|
-
#
|
268
|
-
#
|
269
|
-
#
|
270
|
-
#
|
271
|
-
#
|
272
|
-
#
|
273
|
-
#
|
274
|
-
#
|
275
|
-
#
|
276
|
-
#
|
277
|
-
#
|
278
|
-
#
|
279
|
-
#
|
280
|
-
#
|
282
|
+
# id :integer not null, primary key
|
283
|
+
# call_number :string(255)
|
284
|
+
# item_identifier :string(255)
|
285
|
+
# created_at :datetime not null
|
286
|
+
# updated_at :datetime not null
|
287
|
+
# deleted_at :datetime
|
288
|
+
# shelf_id :integer default(1), not null
|
289
|
+
# include_supplements :boolean default(FALSE), not null
|
290
|
+
# note :text
|
291
|
+
# url :string(255)
|
292
|
+
# price :integer
|
293
|
+
# lock_version :integer default(0), not null
|
294
|
+
# required_role_id :integer default(1), not null
|
295
|
+
# required_score :integer default(0), not null
|
296
|
+
# acquired_at :datetime
|
297
|
+
# bookstore_id :integer
|
298
|
+
# budget_type_id :integer
|
299
|
+
# circulation_status_id :integer default(5), not null
|
300
|
+
# checkout_type_id :integer default(1), not null
|
301
|
+
# binding_item_identifier :string(255)
|
302
|
+
# binding_call_number :string(255)
|
303
|
+
# binded_at :datetime
|
304
|
+
# manifestation_id :integer
|
281
305
|
#
|
282
|
-
|
@@ -5,14 +5,14 @@ one:
|
|
5
5
|
start_date: 2008-12-12 17:00:38
|
6
6
|
end_date: 2008-12-13 17:00:38
|
7
7
|
note: MyText
|
8
|
-
|
8
|
+
user_id: 2
|
9
9
|
|
10
10
|
two:
|
11
11
|
id: 2
|
12
12
|
start_date: 2008-12-12 17:00:38
|
13
13
|
end_date: 2008-12-13 17:00:38
|
14
14
|
note: MyText
|
15
|
-
|
15
|
+
user_id: 2
|
16
16
|
|
17
17
|
# == Schema Information
|
18
18
|
#
|
@@ -22,10 +22,9 @@ two:
|
|
22
22
|
# start_date :datetime
|
23
23
|
# end_date :datetime
|
24
24
|
# note :text
|
25
|
-
# state :string(255)
|
26
25
|
# created_at :datetime not null
|
27
26
|
# updated_at :datetime not null
|
28
27
|
# started_at :datetime
|
29
28
|
# completed_at :datetime
|
29
|
+
# user_id :integer
|
30
30
|
#
|
31
|
-
|
@@ -5,14 +5,14 @@ one:
|
|
5
5
|
start_date: 2008-12-17 04:07:24
|
6
6
|
end_date: 2008-12-18 04:07:24
|
7
7
|
note: MyText
|
8
|
-
|
8
|
+
user_id: 2
|
9
9
|
|
10
10
|
two:
|
11
11
|
id: 2
|
12
12
|
start_date: 2008-12-17 04:07:24
|
13
13
|
end_date: 2008-12-18 04:07:24
|
14
14
|
note: MyText
|
15
|
-
|
15
|
+
user_id: 2
|
16
16
|
|
17
17
|
# == Schema Information
|
18
18
|
#
|
@@ -22,10 +22,9 @@ two:
|
|
22
22
|
# start_date :datetime
|
23
23
|
# end_date :datetime
|
24
24
|
# note :text
|
25
|
-
# state :string(255)
|
26
25
|
# created_at :datetime not null
|
27
26
|
# updated_at :datetime not null
|
28
27
|
# started_at :datetime
|
29
28
|
# completed_at :datetime
|
29
|
+
# user_id :integer
|
30
30
|
#
|
31
|
-
|
@@ -4,13 +4,11 @@ one:
|
|
4
4
|
sender_id: 1
|
5
5
|
receiver_id: 1
|
6
6
|
message_template_id: 1
|
7
|
-
state: pending
|
8
7
|
|
9
8
|
two:
|
10
9
|
sender_id: 1
|
11
10
|
receiver_id: 1
|
12
11
|
message_template_id: 1
|
13
|
-
state: pending
|
14
12
|
|
15
13
|
# == Schema Information
|
16
14
|
#
|
@@ -23,7 +21,6 @@ two:
|
|
23
21
|
# sent_at :datetime
|
24
22
|
# deleted_at :datetime
|
25
23
|
# body :text
|
26
|
-
# state :string(255)
|
27
24
|
# created_at :datetime
|
28
25
|
# updated_at :datetime
|
29
26
|
#
|
@@ -1,43 +1,43 @@
|
|
1
1
|
message_template_00001:
|
2
2
|
id: 1
|
3
3
|
status: reservation_accepted_for_patron
|
4
|
-
title:
|
5
|
-
body:
|
4
|
+
title: 予約を受け付けました
|
5
|
+
body: 予約を受け付けました。
|
6
6
|
position: 1
|
7
7
|
locale: ja
|
8
8
|
message_template_00002:
|
9
9
|
id: 2
|
10
10
|
status: item_received_for_patron
|
11
|
-
title:
|
12
|
-
body:
|
11
|
+
title: 資料を確保しました
|
12
|
+
body: 資料を確保しました。
|
13
13
|
position: 2
|
14
14
|
locale: ja
|
15
15
|
message_template_00003:
|
16
16
|
id: 3
|
17
17
|
status: reservation_expired_for_patron
|
18
|
-
title:
|
19
|
-
body:
|
18
|
+
title: 予約の期限が切れました
|
19
|
+
body: 予約の期限が切れました。
|
20
20
|
position: 3
|
21
21
|
locale: ja
|
22
22
|
message_template_00004:
|
23
23
|
id: 4
|
24
24
|
status: reservation_expired_for_library
|
25
|
-
title:
|
26
|
-
body:
|
25
|
+
title: 予約の期限が切れました
|
26
|
+
body: 予約の期限が切れました。
|
27
27
|
position: 4
|
28
28
|
locale: ja
|
29
29
|
message_template_00005:
|
30
30
|
id: 5
|
31
31
|
status: reservation_canceled_for_patron
|
32
|
-
title:
|
33
|
-
body:
|
32
|
+
title: 予約を取り消しました
|
33
|
+
body: 予約を取り消しました。
|
34
34
|
position: 5
|
35
35
|
locale: ja
|
36
36
|
message_template_00006:
|
37
37
|
id: 6
|
38
38
|
status: reservation_canceled_for_library
|
39
|
-
title:
|
40
|
-
body:
|
39
|
+
title: 予約を取り消しました
|
40
|
+
body: 予約を取り消しました。
|
41
41
|
position: 6
|
42
42
|
locale: ja
|
43
43
|
message_template_00007:
|
@@ -57,28 +57,49 @@ message_template_00008:
|
|
57
57
|
message_template_00009:
|
58
58
|
id: 9
|
59
59
|
status: reservation_accepted_for_library
|
60
|
-
title:
|
61
|
-
body:
|
60
|
+
title: 予約を受け付けました
|
61
|
+
body: 予約を受け付けました。
|
62
62
|
position: 9
|
63
63
|
locale: ja
|
64
64
|
message_template_00010:
|
65
65
|
id: 10
|
66
66
|
status: item_received_for_library
|
67
|
-
title:
|
68
|
-
body:
|
67
|
+
title: 資料を確保しました
|
68
|
+
body: 資料を確保しました。
|
69
69
|
position: 10
|
70
70
|
locale: ja
|
71
71
|
message_template_00011:
|
72
72
|
id: 11
|
73
73
|
status: reservation_postponed_for_patron
|
74
|
-
title:
|
75
|
-
body:
|
74
|
+
title: 予約を延期しました
|
75
|
+
body: 予約を延期しました。
|
76
76
|
position: 11
|
77
77
|
locale: ja
|
78
78
|
message_template_00012:
|
79
79
|
id: 12
|
80
80
|
status: reservation_postponed_for_library
|
81
|
-
title:
|
82
|
-
body:
|
81
|
+
title: 予約を延期しました
|
82
|
+
body: 予約を延期しました。
|
83
83
|
position: 12
|
84
84
|
locale: ja
|
85
|
+
message_template_00013:
|
86
|
+
id: 13
|
87
|
+
status: import_completed
|
88
|
+
title: インポートが完了しました
|
89
|
+
body: インポートが完了しました。
|
90
|
+
position: 13
|
91
|
+
locale: ja
|
92
|
+
message_template_00014:
|
93
|
+
id: 14
|
94
|
+
status: counting_completed
|
95
|
+
title: 集計が完了しました
|
96
|
+
body: 集計が完了しました。
|
97
|
+
position: 14
|
98
|
+
locale: ja
|
99
|
+
message_template_00015:
|
100
|
+
id: 15
|
101
|
+
status: export_completed
|
102
|
+
title: エクスポートが完了しました
|
103
|
+
body: エクスポートが完了しました。
|
104
|
+
position: 15
|
105
|
+
locale: ja
|
@@ -0,0 +1,83 @@
|
|
1
|
+
---
|
2
|
+
profile_admin:
|
3
|
+
updated_at: 2008-05-31 13:16:30.163731 +09:00
|
4
|
+
user_group_id: 2
|
5
|
+
id: 1
|
6
|
+
user_id: 1
|
7
|
+
note:
|
8
|
+
library_id: 2
|
9
|
+
created_at: 2007-11-19 16:58:32.111941 +09:00
|
10
|
+
required_role_id: 4
|
11
|
+
user_number: "00001"
|
12
|
+
locale: "ja"
|
13
|
+
checkout_icalendar_token: 577830b08ecf9c4c4333d599a57a6f44a7fe76c0
|
14
|
+
save_checkout_history: true
|
15
|
+
profile_librarian1:
|
16
|
+
updated_at: 2008-05-31 12:41:16.337474 +09:00
|
17
|
+
user_group_id: 1
|
18
|
+
id: 2
|
19
|
+
user_id: 2
|
20
|
+
note:
|
21
|
+
library_id: 1
|
22
|
+
created_at: 2007-11-19 16:58:33.172441 +09:00
|
23
|
+
required_role_id: 1
|
24
|
+
user_number: "00002"
|
25
|
+
locale: "ja"
|
26
|
+
save_checkout_history: false
|
27
|
+
profile_user1:
|
28
|
+
updated_at: 2008-05-31 13:02:25.101261 +09:00
|
29
|
+
user_group_id: 1
|
30
|
+
id: 3
|
31
|
+
user_id: 3
|
32
|
+
note:
|
33
|
+
library_id: 2
|
34
|
+
created_at: 2007-11-19 16:58:34.637413 +09:00
|
35
|
+
required_role_id: 3
|
36
|
+
user_number: "00003"
|
37
|
+
locale: "ja"
|
38
|
+
save_checkout_history: true
|
39
|
+
profile_librarian2:
|
40
|
+
updated_at: 2008-05-31 12:42:23.340575 +09:00
|
41
|
+
user_group_id: 1
|
42
|
+
id: 4
|
43
|
+
user_id: 4
|
44
|
+
note:
|
45
|
+
library_id: 2
|
46
|
+
created_at: 2008-01-18 12:24:04.222344 +09:00
|
47
|
+
required_role_id: 1
|
48
|
+
user_number: "00004"
|
49
|
+
locale: "ja"
|
50
|
+
profile_user2:
|
51
|
+
updated_at: 2008-05-31 12:42:44.711117 +09:00
|
52
|
+
user_group_id: 1
|
53
|
+
id: 5
|
54
|
+
user_id: 5
|
55
|
+
note:
|
56
|
+
library_id: 1
|
57
|
+
created_at: 2008-01-18 13:29:06.922728 +09:00
|
58
|
+
required_role_id: 2
|
59
|
+
# user_number: '00005'
|
60
|
+
locale: "ja"
|
61
|
+
profile_user3:
|
62
|
+
updated_at: 2008-05-31 13:02:25.101261 +09:00
|
63
|
+
user_group_id: 1
|
64
|
+
id: 6
|
65
|
+
user_id: 6
|
66
|
+
note:
|
67
|
+
library_id: 2
|
68
|
+
created_at: 2007-11-19 16:58:34.637413 +09:00
|
69
|
+
required_role_id: 3
|
70
|
+
user_number: "00006"
|
71
|
+
locale: "ja"
|
72
|
+
profile_user4:
|
73
|
+
updated_at: 2008-05-31 13:02:25.101261 +09:00
|
74
|
+
user_group_id: 1
|
75
|
+
id: 7
|
76
|
+
user_id: 7
|
77
|
+
note:
|
78
|
+
library_id: 2
|
79
|
+
created_at: 2007-11-19 16:58:34.637413 +09:00
|
80
|
+
required_role_id: 3
|
81
|
+
user_number: "00007"
|
82
|
+
locale: "ja"
|
83
|
+
checkout_icalendar_token: e3e0277cbba03183c3a12d2b740f3eabebd7df0d
|