enju_library 0.3.9 → 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/concerns/enju_library/controller.rb +5 -5
- data/app/controllers/libraries_controller.rb +4 -1
- data/app/controllers/library_groups_controller.rb +7 -1
- data/app/controllers/request_status_types_controller.rb +6 -1
- data/app/controllers/request_types_controller.rb +6 -1
- data/app/controllers/shelves_controller.rb +4 -1
- data/app/controllers/user_groups_controller.rb +3 -0
- data/app/helpers/enju_library/application_helper.rb +18 -0
- data/app/models/budget_type.rb +9 -7
- data/app/models/concerns/enju_library/enju_user.rb +10 -0
- data/app/models/library.rb +29 -43
- data/app/models/library_group.rb +10 -11
- data/app/models/request_status_type.rb +9 -7
- data/app/models/request_type.rb +9 -7
- data/app/models/search_engine.rb +14 -18
- data/app/models/shelf.rb +13 -11
- data/app/models/user_export_file.rb +1 -1
- data/app/models/user_export_file_state_machine.rb +1 -1
- data/app/models/user_group.rb +2 -0
- data/app/models/user_import_file.rb +28 -27
- data/app/models/user_import_file_state_machine.rb +1 -1
- data/app/models/withdraw.rb +6 -0
- data/app/policies/shelf_policy.rb +1 -1
- data/app/views/accepts/_list.html.erb +2 -2
- data/app/views/accepts/index.html.erb +2 -2
- data/app/views/budget_types/_form.html.erb +1 -1
- data/app/views/budget_types/index.html.erb +1 -1
- data/app/views/budget_types/show.html.erb +1 -1
- data/app/views/libraries/_calendar.html.erb +1 -1
- data/app/views/libraries/_form.html.erb +2 -12
- data/app/views/libraries/_map.html+phone.erb +2 -2
- data/app/views/libraries/_map.html.erb +23 -10
- data/app/views/libraries/index.html.erb +1 -1
- data/app/views/libraries/show.html+phone.erb +1 -1
- data/app/views/libraries/show.html+phone.slim +1 -1
- data/app/views/libraries/show.html.erb +2 -2
- data/app/views/library_groups/_form.html.erb +14 -13
- data/app/views/library_groups/index.html.erb +1 -1
- data/app/views/library_groups/show.html.erb +2 -2
- data/app/views/picture_files/_index_shelf.html.erb +1 -1
- data/app/views/request_status_types/_form.html.erb +1 -1
- data/app/views/request_status_types/index.html.erb +1 -1
- data/app/views/request_status_types/show.html.erb +1 -1
- data/app/views/request_types/_form.html.erb +1 -1
- data/app/views/request_types/index.html.erb +1 -1
- data/app/views/request_types/show.html.erb +1 -1
- data/app/views/shelves/_form.html.erb +1 -1
- data/app/views/shelves/_select_form.html.erb +1 -1
- data/app/views/shelves/index.html.erb +3 -3
- data/app/views/shelves/show.html+phone.erb +1 -1
- data/app/views/shelves/show.html+phone.slim +1 -1
- data/app/views/shelves/show.html.erb +2 -2
- data/app/views/user_groups/_form.html.erb +1 -1
- data/app/views/user_groups/index.html.erb +1 -1
- data/app/views/user_groups/show.html.erb +2 -2
- data/app/views/user_import_files/_results.html.erb +0 -5
- data/app/views/user_import_files/new.html.erb +2 -2
- data/app/views/user_import_files/show.html.erb +2 -2
- data/app/views/user_import_results/index.html.erb +11 -0
- data/app/views/withdraws/_list.html.erb +2 -2
- data/app/views/withdraws/index.html.erb +3 -3
- data/app/views/withdraws/new.html.erb +1 -1
- data/config/locales/translation_en.yml +2 -4
- data/config/locales/translation_ja.yml +2 -4
- data/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb +1 -1
- data/db/migrate/20190630113817_add_display_name_translations_to_library_group.rb +12 -0
- data/db/migrate/20190630115523_add_login_banner_translations_to_library_group.rb +6 -0
- data/lib/enju_library/version.rb +1 -1
- data/lib/generators/enju_library/setup/setup_generator.rb +2 -7
- data/lib/generators/enju_library/setup/templates/db/fixtures/budget_types.yml +4 -0
- data/lib/generators/enju_library/setup/templates/db/fixtures/libraries.yml +2 -2
- data/lib/generators/enju_library/setup/templates/db/fixtures/library_groups.yml +11 -5
- data/lib/generators/enju_library/setup/templates/db/fixtures/user_groups.yml +1 -2
- data/spec/controllers/budget_types_controller_spec.rb +1 -1
- data/spec/controllers/items_controller_spec.rb +35 -0
- data/spec/dummy/app/helpers/application_helper.rb +1 -0
- data/spec/dummy/app/models/user.rb +1 -2
- 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 -0
- data/spec/dummy/config/database.yml +70 -9
- data/spec/dummy/config/initializers/assets.rb +1 -1
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/113_create_events.rb +2 -4
- 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/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/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/20160319144230_create_issn_records.rb +11 -0
- data/spec/dummy/db/migrate/20160506144040_create_isbn_records.rb +11 -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/20170116134107_create_issn_record_and_manifestations.rb +11 -0
- data/spec/dummy/db/migrate/20170116134120_create_isbn_record_and_manifestations.rb +11 -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/20181030072731_add_not_null_to_position_on_carrier_type.rb +14 -0
- data/spec/dummy/db/migrate/20181119170645_add_foreign_key_to_events_referencing_event_categories.rb +5 -0
- data/spec/dummy/db/migrate/20190102034126_create_doi_records.rb +13 -0
- data/spec/dummy/db/migrate/20190208135957_create_active_storage_tables.active_storage.rb +27 -0
- data/spec/dummy/db/migrate/20190311154610_create_periodicals.rb +10 -0
- data/spec/dummy/db/migrate/20190312033839_create_periodical_and_manifestations.rb +11 -0
- data/spec/dummy/db/migrate/20190314151124_add_full_name_translations_to_create.rb +7 -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/20190512133459_upgrade_enju_event_to_enju_leaf20.rb +115 -0
- data/spec/dummy/db/migrate/20190629134017_rename_user_group_has_checkout_type_due_date_before_to_due_date_after.rb +5 -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/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb +21 -0
- data/spec/dummy/db/migrate/20190713114724_add_checkout_id_to_checkin.rb +6 -0
- data/spec/dummy/db/migrate/20190713114940_add_profile_id_to_user.rb +5 -0
- data/spec/dummy/db/migrate/20190713115451_add_full_name_translations_to_profile.rb +5 -0
- data/spec/dummy/db/migrate/20190814120827_add_display_name_translations_to_checkout_type.rb +5 -0
- data/spec/dummy/db/schema.rb +402 -204
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/factories/budget_types.rb +8 -7
- data/spec/factories/profile.rb +9 -2
- data/spec/factories/user.rb +25 -31
- data/spec/factories/user_export_file.rb +5 -0
- data/spec/factories/user_import_file.rb +7 -0
- data/spec/factories/user_import_result.rb +6 -0
- data/spec/fixtures/agent_relationship_types.yml +34 -0
- data/spec/fixtures/agent_types.yml +11 -11
- data/spec/fixtures/agents.yml +27 -27
- data/spec/fixtures/baskets.yml +1 -0
- data/spec/fixtures/bookstores.yml +1 -0
- data/spec/fixtures/budget_types.yml +9 -7
- data/spec/fixtures/carrier_type_has_checkout_types.yml +5 -5
- data/spec/fixtures/carrier_types.yml +28 -24
- data/spec/fixtures/checked_items.yml +6 -6
- data/spec/fixtures/checkins.yml +4 -11
- data/spec/fixtures/checkout_stat_has_manifestations.yml +5 -5
- data/spec/fixtures/checkout_stat_has_users.yml +6 -6
- data/spec/fixtures/checkout_types.yml +11 -11
- data/spec/fixtures/checkouts.yml +16 -17
- data/spec/fixtures/circulation_statuses.yml +29 -38
- data/spec/fixtures/classification_types.yml +63 -0
- data/spec/fixtures/content_types.yml +20 -31
- data/spec/fixtures/create_types.yml +43 -0
- data/spec/fixtures/event_categories.yml +23 -23
- data/spec/fixtures/frequencies.yml +17 -25
- data/spec/fixtures/identifier_types.yml +42 -0
- data/spec/fixtures/item_has_use_restrictions.yml +11 -11
- data/spec/fixtures/items.yml +28 -17
- data/spec/fixtures/languages.yml +12 -13
- data/spec/fixtures/lending_policies.yml +8 -15
- data/spec/fixtures/libraries.yml +30 -29
- data/spec/fixtures/library_groups.yml +12 -9
- data/spec/fixtures/manifestation_checkout_stats.yml +4 -3
- data/spec/fixtures/manifestation_relationship_types.yml +29 -0
- data/spec/fixtures/manifestation_reserve_stats.yml +4 -3
- data/spec/fixtures/manifestations.yml +60 -50
- data/spec/fixtures/message_requests.yml +3 -3
- data/spec/fixtures/produce_types.yml +29 -0
- data/spec/fixtures/profiles.yml +11 -6
- data/spec/fixtures/realize_types.yml +36 -0
- data/spec/fixtures/request_status_types.yml +14 -13
- data/spec/fixtures/request_types.yml +13 -12
- data/spec/fixtures/reserve_stat_has_manifestations.yml +5 -5
- data/spec/fixtures/reserve_stat_has_users.yml +5 -5
- data/spec/fixtures/reserve_transitions.yml +8 -7
- data/spec/fixtures/reserves.yml +44 -64
- data/spec/fixtures/roles.yml +22 -5
- data/spec/fixtures/search_engines.yml +13 -12
- data/spec/fixtures/shelves.yml +16 -15
- data/spec/fixtures/subject_heading_types.yml +39 -0
- data/spec/fixtures/subject_types.yml +28 -0
- data/spec/fixtures/use_restrictions.yml +4 -4
- data/spec/fixtures/user_checkout_stats.yml +4 -4
- data/spec/fixtures/user_export_files.yml +1 -1
- data/spec/fixtures/user_group_has_checkout_types.yml +19 -19
- data/spec/fixtures/user_groups.yml +4 -3
- data/spec/fixtures/user_has_roles.yml +3 -4
- data/spec/fixtures/user_reserve_stats.yml +5 -4
- data/spec/models/budget_type_spec.rb +8 -7
- data/spec/models/library_group_spec.rb +5 -14
- data/spec/models/library_spec.rb +26 -25
- data/spec/models/request_status_type_spec.rb +8 -7
- data/spec/models/request_type_spec.rb +8 -7
- data/spec/models/search_engine_spec.rb +13 -12
- data/spec/models/shelf_spec.rb +12 -11
- data/spec/models/user_export_file_spec.rb +2 -2
- data/spec/models/user_group_spec.rb +1 -6
- data/spec/models/user_import_file_spec.rb +23 -23
- data/spec/rails_helper.rb +10 -2
- data/spec/system/libraries_spec.rb +5 -5
- metadata +476 -493
- data/app/helpers/shelves_helper.rb +0 -16
- data/app/views/layouts/libraries.html.erb +0 -31
- data/app/views/libraries/_map_header.html.erb +0 -6
- data/db/migrate/20151213070943_add_translation_table_to_library_group.rb +0 -18
- data/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +0 -22
- data/lib/generators/enju_library/setup/templates/db/fixtures/library_group/translations.yml +0 -12
- data/spec/dummy/app/assets/config/manifest.js +0 -5
- data/spec/dummy/db/migrate/20190818075603_add_memo_to_manifestation.rb +0 -5
- data/spec/dummy/db/migrate/20190818075628_add_memo_to_item.rb +0 -5
- data/spec/dummy/db/migrate/20200425072340_create_manifestation_custom_properties.rb +0 -12
- data/spec/dummy/db/migrate/20200425072349_create_item_custom_properties.rb +0 -12
- data/spec/dummy/db/migrate/20200425074758_create_manifestation_custom_values.rb +0 -12
- data/spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb +0 -12
- data/spec/dummy/yarn.lock +0 -7535
data/spec/fixtures/checkins.yml
CHANGED
@@ -6,7 +6,6 @@ checkin_00001:
|
|
6
6
|
librarian_id: 1
|
7
7
|
created_at: 2008-01-22 12:58:54.347742 +09:00
|
8
8
|
basket_id: 9
|
9
|
-
lock_version: 0
|
10
9
|
checkin_00002:
|
11
10
|
item_id: 9
|
12
11
|
updated_at: 2007-12-14 00:28:41.854022 +09:00
|
@@ -14,7 +13,6 @@ checkin_00002:
|
|
14
13
|
librarian_id: 2
|
15
14
|
created_at: 2007-12-14 00:28:41.854022 +09:00
|
16
15
|
basket_id: 10
|
17
|
-
lock_version: 0
|
18
16
|
checkin_00003:
|
19
17
|
item_id: 8
|
20
18
|
updated_at: 2007-12-20 21:24:18.729192 +09:00
|
@@ -22,7 +20,6 @@ checkin_00003:
|
|
22
20
|
librarian_id: 1
|
23
21
|
created_at: 2007-12-20 21:24:18.729192 +09:00
|
24
22
|
basket_id: 10
|
25
|
-
lock_version: 0
|
26
23
|
checkin_00004:
|
27
24
|
item_id: 7
|
28
25
|
updated_at: 2008-01-23 00:39:27.785676 +09:00
|
@@ -30,7 +27,6 @@ checkin_00004:
|
|
30
27
|
librarian_id: 2
|
31
28
|
created_at: 2008-01-23 00:39:27.785676 +09:00
|
32
29
|
basket_id: 10
|
33
|
-
lock_version: 0
|
34
30
|
checkin_00005:
|
35
31
|
item_id: 6
|
36
32
|
updated_at: 2007-12-20 21:25:04.619479 +09:00
|
@@ -38,18 +34,15 @@ checkin_00005:
|
|
38
34
|
librarian_id: 1
|
39
35
|
created_at: 2007-12-20 21:25:04.619479 +09:00
|
40
36
|
basket_id: 10
|
41
|
-
lock_version: 0
|
42
|
-
|
43
37
|
# == Schema Information
|
44
38
|
#
|
45
39
|
# Table name: checkins
|
46
40
|
#
|
47
|
-
# id :integer
|
48
|
-
# item_id :integer
|
41
|
+
# id :integer not null, primary key
|
42
|
+
# item_id :integer not null
|
49
43
|
# librarian_id :integer
|
50
44
|
# basket_id :integer
|
51
|
-
# created_at :datetime
|
52
|
-
# updated_at :datetime
|
53
|
-
# lock_version :integer default(0), not null
|
45
|
+
# created_at :datetime not null
|
46
|
+
# updated_at :datetime not null
|
54
47
|
#
|
55
48
|
|
@@ -14,11 +14,11 @@ two:
|
|
14
14
|
#
|
15
15
|
# Table name: checkout_stat_has_manifestations
|
16
16
|
#
|
17
|
-
# id :integer
|
18
|
-
# manifestation_checkout_stat_id :integer
|
19
|
-
# manifestation_id :integer
|
17
|
+
# id :integer not null, primary key
|
18
|
+
# manifestation_checkout_stat_id :integer not null
|
19
|
+
# manifestation_id :integer not null
|
20
20
|
# checkouts_count :integer
|
21
|
-
# created_at :datetime
|
22
|
-
# updated_at :datetime
|
21
|
+
# created_at :datetime
|
22
|
+
# updated_at :datetime
|
23
23
|
#
|
24
24
|
|
@@ -14,11 +14,11 @@ two:
|
|
14
14
|
#
|
15
15
|
# Table name: checkout_stat_has_users
|
16
16
|
#
|
17
|
-
# id :integer
|
18
|
-
# user_checkout_stat_id :integer
|
19
|
-
# user_id :integer
|
20
|
-
# checkouts_count :integer
|
21
|
-
# created_at :datetime
|
22
|
-
# updated_at :datetime
|
17
|
+
# id :integer not null, primary key
|
18
|
+
# user_checkout_stat_id :integer not null
|
19
|
+
# user_id :integer not null
|
20
|
+
# checkouts_count :integer default(0), not null
|
21
|
+
# created_at :datetime
|
22
|
+
# updated_at :datetime
|
23
23
|
#
|
24
24
|
|
@@ -3,19 +3,19 @@
|
|
3
3
|
checkout_type_00001:
|
4
4
|
id: 1
|
5
5
|
name: book
|
6
|
-
|
6
|
+
display_name_translations: {"en": "Book", "ja": "図書"}
|
7
7
|
note:
|
8
8
|
position: 1
|
9
9
|
checkout_type_00002:
|
10
10
|
id: 2
|
11
11
|
name: serial
|
12
|
-
|
12
|
+
display_name_translations: {"en": "Serial", "ja": "定期刊行物"}
|
13
13
|
note:
|
14
14
|
position: 2
|
15
15
|
checkout_type_00003:
|
16
16
|
id: 3
|
17
17
|
name: cd
|
18
|
-
|
18
|
+
display_name_translations: {"en": "CD", "ja": "CD"}
|
19
19
|
note:
|
20
20
|
position: 3
|
21
21
|
|
@@ -23,12 +23,12 @@ checkout_type_00003:
|
|
23
23
|
#
|
24
24
|
# Table name: checkout_types
|
25
25
|
#
|
26
|
-
# id
|
27
|
-
# name
|
28
|
-
# display_name
|
29
|
-
# note
|
30
|
-
# position
|
31
|
-
# created_at
|
32
|
-
# updated_at
|
26
|
+
# id :integer not null, primary key
|
27
|
+
# name :string not null
|
28
|
+
# display_name :text
|
29
|
+
# note :text
|
30
|
+
# position :integer
|
31
|
+
# created_at :datetime
|
32
|
+
# updated_at :datetime
|
33
|
+
# display_name_translations :jsonb not null
|
33
34
|
#
|
34
|
-
|
data/spec/fixtures/checkouts.yml
CHANGED
@@ -41,7 +41,7 @@ checkout_00004:
|
|
41
41
|
librarian_id: 1
|
42
42
|
checkout_renewal_count: 0
|
43
43
|
due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
|
44
|
-
created_at: 2007-09-08 01:39:
|
44
|
+
created_at: 2007-09-08 01:39:03.210081 +09:00
|
45
45
|
basket_id: 3
|
46
46
|
checkout_00005:
|
47
47
|
item_id: 5
|
@@ -52,7 +52,7 @@ checkout_00005:
|
|
52
52
|
librarian_id: 1
|
53
53
|
checkout_renewal_count: 0
|
54
54
|
due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
|
55
|
-
created_at: 2007-09-08 01:39:
|
55
|
+
created_at: 2007-09-08 01:39:03.210081 +09:00
|
56
56
|
basket_id: 4
|
57
57
|
checkout_00006:
|
58
58
|
item_id: 7
|
@@ -63,7 +63,7 @@ checkout_00006:
|
|
63
63
|
librarian_id: 2
|
64
64
|
checkout_renewal_count: 0
|
65
65
|
due_date: 2010-09-15 00:00:00 +09:00
|
66
|
-
created_at: 2007-09-08 01:39:
|
66
|
+
created_at: 2007-09-08 01:39:03.210081 +09:00
|
67
67
|
checkout_00007:
|
68
68
|
item_id: 7
|
69
69
|
updated_at: 2007-09-09 21:15:11.648996 +09:00
|
@@ -73,7 +73,7 @@ checkout_00007:
|
|
73
73
|
librarian_id: 1
|
74
74
|
checkout_renewal_count: 0
|
75
75
|
due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
|
76
|
-
created_at: 2007-09-08 01:39:
|
76
|
+
created_at: 2007-09-08 01:39:03.210081 +09:00
|
77
77
|
basket_id: 5
|
78
78
|
checkout_00008:
|
79
79
|
item_id: 8
|
@@ -84,7 +84,7 @@ checkout_00008:
|
|
84
84
|
librarian_id: 1
|
85
85
|
checkout_renewal_count: 0
|
86
86
|
due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
|
87
|
-
created_at: 2007-09-08 01:39:
|
87
|
+
created_at: 2007-09-08 01:39:03.210081 +09:00
|
88
88
|
basket_id: 6
|
89
89
|
checkout_00009:
|
90
90
|
item_id: 9
|
@@ -95,7 +95,7 @@ checkout_00009:
|
|
95
95
|
librarian_id: 1
|
96
96
|
checkout_renewal_count: 1
|
97
97
|
due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
|
98
|
-
created_at: 2007-09-08 01:39:
|
98
|
+
created_at: 2007-09-08 01:39:03.210081 +09:00
|
99
99
|
basket_id: 7
|
100
100
|
checkout_00010:
|
101
101
|
item_id: 13
|
@@ -106,7 +106,7 @@ checkout_00010:
|
|
106
106
|
librarian_id: 1
|
107
107
|
checkout_renewal_count: 1
|
108
108
|
due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
|
109
|
-
created_at: 2007-09-08 01:39:
|
109
|
+
created_at: 2007-09-08 01:39:03.210081 +09:00
|
110
110
|
basket_id: 7
|
111
111
|
checkout_00011:
|
112
112
|
item_id: 14
|
@@ -117,7 +117,7 @@ checkout_00011:
|
|
117
117
|
librarian_id: 1
|
118
118
|
checkout_renewal_count: 1
|
119
119
|
due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
|
120
|
-
created_at: 2007-09-08 01:39:
|
120
|
+
created_at: 2007-09-08 01:39:03.210081 +09:00
|
121
121
|
basket_id: 7
|
122
122
|
checkout_00012:
|
123
123
|
item_id: 6
|
@@ -128,7 +128,7 @@ checkout_00012:
|
|
128
128
|
librarian_id: 1
|
129
129
|
checkout_renewal_count: 1
|
130
130
|
due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
|
131
|
-
created_at: 2007-09-08 01:39:
|
131
|
+
created_at: 2007-09-08 01:39:03.210081 +09:00
|
132
132
|
basket_id: 8
|
133
133
|
checkin_id: 5
|
134
134
|
checkout_00013:
|
@@ -140,24 +140,23 @@ checkout_00013:
|
|
140
140
|
librarian_id: 1
|
141
141
|
checkout_renewal_count: 1
|
142
142
|
due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
|
143
|
-
created_at: 2007-09-08 01:39:
|
143
|
+
created_at: 2007-09-08 01:39:03.210081 +09:00
|
144
144
|
basket_id: 8
|
145
145
|
checkin_id: 4
|
146
|
-
|
147
146
|
# == Schema Information
|
148
147
|
#
|
149
148
|
# Table name: checkouts
|
150
149
|
#
|
151
|
-
# id :integer
|
150
|
+
# id :integer not null, primary key
|
152
151
|
# user_id :integer
|
153
|
-
# item_id :integer
|
152
|
+
# item_id :integer not null
|
154
153
|
# checkin_id :integer
|
155
154
|
# librarian_id :integer
|
156
155
|
# basket_id :integer
|
157
156
|
# due_date :datetime
|
158
|
-
# checkout_renewal_count :integer
|
159
|
-
# lock_version :integer
|
160
|
-
# created_at :datetime
|
161
|
-
# updated_at :datetime
|
157
|
+
# checkout_renewal_count :integer default(0), not null
|
158
|
+
# lock_version :integer default(0), not null
|
159
|
+
# created_at :datetime not null
|
160
|
+
# updated_at :datetime not null
|
162
161
|
#
|
163
162
|
|
@@ -1,106 +1,97 @@
|
|
1
1
|
---
|
2
2
|
circulation_status_00001:
|
3
|
-
name: Available For Pickup
|
4
|
-
|
5
|
-
ja: 持ち出し可能"
|
3
|
+
name: Available For Pickup
|
4
|
+
display_name_translations: {"en": "Available For Pickup", "ja": "持ち出し可能"}
|
6
5
|
id: 1
|
7
6
|
note: ""
|
8
7
|
position: 1
|
9
8
|
circulation_status_00002:
|
10
|
-
name: Available On Shelf
|
11
|
-
|
12
|
-
ja: 在架(利用可能)"
|
9
|
+
name: Available On Shelf
|
10
|
+
display_name_translations: {"en": "Available On Shelf", "ja": "在架(利用可能)"}
|
13
11
|
id: 2
|
14
12
|
note: ""
|
15
13
|
position: 2
|
16
14
|
circulation_status_00003:
|
17
|
-
name: Circulation Status Undefined
|
18
|
-
|
15
|
+
name: Circulation Status Undefined
|
16
|
+
display_name_translations: {"en": "Circulation Status Undefined", "ja": "Circulation Status Undefined"}
|
19
17
|
id: 3
|
20
18
|
note: ""
|
21
19
|
position: 3
|
22
20
|
circulation_status_00004:
|
23
|
-
name: Claimed Returned Or Never Borrowed
|
24
|
-
|
21
|
+
name: Claimed Returned Or Never Borrowed
|
22
|
+
display_name_translations: {"en": "Claimed Returned Or Never Borrowed", "ja": "Claimed Returned Or Never Borrowed"}
|
25
23
|
id: 4
|
26
24
|
note: ""
|
27
25
|
position: 4
|
28
26
|
circulation_status_00005:
|
29
27
|
name: In Process
|
30
|
-
|
31
|
-
ja: 作業中"
|
28
|
+
display_name_translations: {"en": "In Process", "ja": "作業中"}
|
32
29
|
id: 5
|
33
30
|
note: ""
|
34
31
|
position: 5
|
35
32
|
circulation_status_00006:
|
36
33
|
name: In Transit Between Library Locations
|
37
|
-
|
34
|
+
display_name_translations: {"en": "In Transit Between Library Locations", "ja": "In Transit Between Library Locations"}
|
38
35
|
id: 6
|
39
36
|
note: ""
|
40
37
|
position: 6
|
41
38
|
circulation_status_00007:
|
42
39
|
name: Lost
|
43
|
-
|
44
|
-
ja: 紛失"
|
40
|
+
display_name_translations: {"en": "Lost", "ja": "紛失"}
|
45
41
|
id: 7
|
46
42
|
note: ""
|
47
43
|
position: 7
|
48
44
|
circulation_status_00008:
|
49
45
|
name: Missing
|
50
|
-
|
51
|
-
ja: 行方不明"
|
46
|
+
display_name_translations: {"en": "Missing", "ja": "行方不明"}
|
52
47
|
id: 8
|
53
48
|
note: ""
|
54
49
|
position: 8
|
55
50
|
circulation_status_00009:
|
56
51
|
name: Not Available
|
57
|
-
|
58
|
-
ja: 利用不可"
|
52
|
+
display_name_translations: {"en": "Not Available", "ja": "利用不可"}
|
59
53
|
id: 9
|
60
54
|
note: ""
|
61
55
|
position: 9
|
62
56
|
circulation_status_00010:
|
63
|
-
name: On Loan
|
64
|
-
|
65
|
-
ja: 貸出中"
|
57
|
+
name: On Loan
|
58
|
+
display_name_translations: {"en": "On Loan", "ja": "貸出中"}
|
66
59
|
id: 10
|
67
60
|
note: ""
|
68
61
|
position: 10
|
69
62
|
circulation_status_00011:
|
70
63
|
name: On Order
|
71
|
-
|
64
|
+
display_name_translations: {"en": "On Order", "ja": "On Order"}
|
72
65
|
id: 11
|
73
66
|
note: ""
|
74
67
|
position: 11
|
75
68
|
circulation_status_00012:
|
76
69
|
name: Pending Transfer
|
77
|
-
|
70
|
+
display_name_translations: {"en": "Pending Transfer", "ja": "Pending Transfer"}
|
78
71
|
id: 12
|
79
72
|
note: ""
|
80
73
|
position: 12
|
81
74
|
circulation_status_00013:
|
82
75
|
name: Recalled
|
83
|
-
|
76
|
+
display_name_translations: {"en": "Recalled", "ja": "Recalled"}
|
84
77
|
id: 13
|
85
78
|
note: ""
|
86
79
|
position: 13
|
87
80
|
circulation_status_00014:
|
88
81
|
name: Waiting To Be Reshelved
|
89
|
-
|
82
|
+
display_name_translations: {"en": "Waiting To Be Reshelved", "ja": "Waiting To Be Reshelved"}
|
90
83
|
id: 14
|
91
84
|
note: ""
|
92
85
|
position: 14
|
93
86
|
circulation_status_00015:
|
94
87
|
name: Not arrived
|
95
|
-
|
96
|
-
ja: 未着"
|
88
|
+
display_name_translations: {"en": "Not arrived", "ja": "未着"}
|
97
89
|
id: 15
|
98
90
|
note: ""
|
99
91
|
position: 15
|
100
92
|
circulation_status_00016:
|
101
93
|
name: Removed
|
102
|
-
|
103
|
-
ja: 除籍済み"
|
94
|
+
display_name_translations: {"en": "Removed", "ja": "除籍済み"}
|
104
95
|
id: 16
|
105
96
|
note: ""
|
106
97
|
position: 16
|
@@ -109,12 +100,12 @@ circulation_status_00016:
|
|
109
100
|
#
|
110
101
|
# Table name: circulation_statuses
|
111
102
|
#
|
112
|
-
# id
|
113
|
-
# name
|
114
|
-
# display_name
|
115
|
-
# note
|
116
|
-
# position
|
117
|
-
# created_at
|
118
|
-
# updated_at
|
103
|
+
# id :integer not null, primary key
|
104
|
+
# name :string not null
|
105
|
+
# display_name :text
|
106
|
+
# note :text
|
107
|
+
# position :integer
|
108
|
+
# created_at :datetime
|
109
|
+
# updated_at :datetime
|
110
|
+
# display_name_translations :jsonb not null
|
119
111
|
#
|
120
|
-
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
classification_type_00001:
|
3
|
+
name: ndc9
|
4
|
+
display_name: NDC
|
5
|
+
updated_at: 2008-03-02 22:53:40.696331 +09:00
|
6
|
+
id: 1
|
7
|
+
note: ""
|
8
|
+
created_at: 2008-03-02 22:53:40.696331 +09:00
|
9
|
+
position: 1
|
10
|
+
classification_type_00002:
|
11
|
+
name: ndlc
|
12
|
+
display_name: NDLC
|
13
|
+
updated_at: 2008-03-02 22:53:51.394954 +09:00
|
14
|
+
id: 2
|
15
|
+
note: ""
|
16
|
+
created_at: 2008-03-02 22:53:51.394954 +09:00
|
17
|
+
position: 2
|
18
|
+
classification_type_00003:
|
19
|
+
name: ddc
|
20
|
+
display_name: DDC
|
21
|
+
updated_at: 2008-03-02 22:53:58.937354 +09:00
|
22
|
+
id: 3
|
23
|
+
note: ""
|
24
|
+
created_at: 2008-03-02 22:53:58.937354 +09:00
|
25
|
+
position: 3
|
26
|
+
classification_type_00004:
|
27
|
+
name: udc
|
28
|
+
display_name: UDC
|
29
|
+
updated_at: 2008-03-02 22:54:20.265696 +09:00
|
30
|
+
id: 4
|
31
|
+
note: ""
|
32
|
+
created_at: 2008-03-02 22:54:20.265696 +09:00
|
33
|
+
position: 4
|
34
|
+
classification_type_00005:
|
35
|
+
name: lcc
|
36
|
+
display_name: LCC
|
37
|
+
updated_at: 2008-03-02 22:54:41.169172 +09:00
|
38
|
+
id: 5
|
39
|
+
note: ""
|
40
|
+
created_at: 2008-03-02 22:54:41.169172 +09:00
|
41
|
+
position: 5
|
42
|
+
classification_type_00006:
|
43
|
+
name: nlmc
|
44
|
+
display_name: NLMC
|
45
|
+
updated_at: 2008-03-02 22:54:56.181793 +09:00
|
46
|
+
id: 6
|
47
|
+
note: ""
|
48
|
+
created_at: 2008-03-02 22:54:56.181793 +09:00
|
49
|
+
position: 6
|
50
|
+
|
51
|
+
# == Schema Information
|
52
|
+
#
|
53
|
+
# Table name: classification_types
|
54
|
+
#
|
55
|
+
# id :integer not null, primary key
|
56
|
+
# name :string(255) not null
|
57
|
+
# display_name :text
|
58
|
+
# note :text
|
59
|
+
# position :integer
|
60
|
+
# created_at :datetime not null
|
61
|
+
# updated_at :datetime not null
|
62
|
+
#
|
63
|
+
|