enju_circulation 0.3.11 → 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/checkins_controller.rb +2 -2
- data/app/controllers/checkouts_controller.rb +2 -2
- data/app/controllers/demands_controller.rb +1 -1
- data/app/controllers/manifestation_checkout_stats_controller.rb +2 -2
- data/app/controllers/manifestation_reserve_stats_controller.rb +2 -2
- data/app/controllers/reserves_controller.rb +2 -2
- data/app/controllers/user_checkout_stats_controller.rb +2 -2
- data/app/controllers/user_group_has_checkout_types_controller.rb +1 -1
- data/app/controllers/user_reserve_stats_controller.rb +2 -2
- data/app/helpers/items_helper.rb +3 -3
- data/app/models/checked_item.rb +7 -17
- data/app/models/checkin.rb +3 -2
- data/app/models/checkout.rb +2 -2
- data/app/models/checkout_stat_has_user.rb +1 -1
- data/app/models/checkout_type.rb +9 -7
- data/app/models/circulation_status.rb +9 -8
- data/app/models/concerns/enju_circulation/enju_item.rb +2 -46
- data/app/models/concerns/enju_circulation/enju_user_group.rb +0 -1
- data/app/models/concerns/enju_circulation/enju_withdraw.rb +1 -7
- data/app/models/manifestation_checkout_stat_transition.rb +1 -1
- data/app/models/manifestation_reserve_stat_transition.rb +1 -1
- data/app/models/reserve.rb +5 -5
- data/app/models/reserve_state_machine.rb +3 -2
- data/app/models/reserve_transition.rb +1 -1
- data/app/models/retain.rb +15 -0
- data/app/models/user_checkout_stat_transition.rb +1 -1
- data/app/models/user_group_has_checkout_type.rb +15 -37
- data/app/models/user_reserve_stat_transition.rb +1 -1
- data/app/views/carrier_type_has_checkout_types/_form.html.erb +2 -2
- data/app/views/carrier_type_has_checkout_types/index.html.erb +2 -2
- data/app/views/carrier_type_has_checkout_types/show.html.erb +2 -2
- data/app/views/carrier_types/_carrier_type_has_checkout_type_fields.html.erb +1 -1
- data/app/views/checked_items/new.html.erb +1 -1
- data/app/views/checkins/_checkin.html.erb +1 -1
- data/app/views/checkout_types/_form.html.erb +1 -1
- data/app/views/checkout_types/index.html.erb +1 -1
- data/app/views/checkout_types/show.html.erb +2 -2
- data/app/views/checkouts/_index_user.html.erb +1 -1
- data/app/views/checkouts/_list.html.erb +2 -9
- data/app/views/checkouts/index.atom.builder +1 -1
- data/app/views/checkouts/index.ics.erb +1 -1
- data/app/views/checkouts/index.rss.builder +1 -1
- data/app/views/checkouts/{index.text.ruby → index.txt.ruby} +0 -0
- data/app/views/circulation_statuses/_form.html.erb +1 -1
- data/app/views/circulation_statuses/index.html.erb +1 -1
- data/app/views/circulation_statuses/show.html.erb +1 -1
- data/app/views/item_has_use_restrictions/index.html.erb +1 -1
- data/app/views/item_has_use_restrictions/show.html.erb +1 -1
- data/app/views/manifestation_checkout_stats/_group_by_carrier_type.html.erb +3 -3
- data/app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb +3 -3
- data/app/views/manifestation_checkout_stats/{show.text.erb → show.txt.erb} +0 -0
- data/app/views/manifestation_reserve_stats/{show.text.erb → show.txt.erb} +0 -0
- data/app/views/manifestations/_circulation_status.html.erb +3 -3
- data/app/views/profiles/_submenu_checkout.html.erb +1 -1
- data/app/views/reserves/_new.html.erb +1 -1
- data/app/views/reserves/_new_user.html.erb +1 -1
- data/app/views/reserves/edit.html.erb +1 -1
- data/app/views/reserves/index.atom.builder +1 -1
- data/app/views/reserves/index.html.erb +1 -1
- data/app/views/reserves/index.rss.builder +1 -1
- data/app/views/reserves/{index.text.ruby → index.txt.ruby} +0 -0
- data/app/views/reserves/show.html.erb +1 -1
- data/app/views/use_restrictions/_form.html.erb +1 -1
- data/app/views/use_restrictions/index.html.erb +1 -1
- data/app/views/use_restrictions/show.html.erb +1 -1
- data/app/views/user_checkout_stats/{show.text.erb → show.txt.erb} +0 -0
- data/app/views/user_group_has_checkout_types/edit.html.erb +4 -4
- data/app/views/user_group_has_checkout_types/index.html.erb +2 -2
- data/app/views/user_group_has_checkout_types/new.html.erb +4 -4
- data/app/views/user_group_has_checkout_types/show.html.erb +4 -4
- data/app/views/user_groups/_user_group_has_checkout_type_fields.html.erb +2 -2
- data/app/views/user_reserve_stats/{show.text.erb → show.txt.erb} +0 -0
- data/config/locales/translation_en.yml +1 -14
- data/config/locales/translation_ja.yml +1 -14
- data/config/routes.rb +1 -2
- data/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +3 -3
- data/db/migrate/20190508160525_create_retains.rb +10 -0
- data/db/migrate/20190629134017_rename_user_group_has_checkout_type_due_date_before_to_due_date_after.rb +5 -0
- data/db/migrate/20190706052525_add_display_name_translations_to_circulation_status.rb +5 -0
- data/db/migrate/20190713114724_add_checkout_id_to_checkin.rb +5 -0
- data/db/migrate/20190814120827_add_display_name_translations_to_checkout_type.rb +5 -0
- data/lib/enju_circulation/version.rb +1 -1
- data/lib/generators/enju_circulation/setup/templates/db/fixtures/checkout_types.yml +3 -5
- data/lib/generators/enju_circulation/setup/templates/db/fixtures/circulation_statuses.yml +16 -48
- data/lib/tasks/enju_circulation_tasks.rake +7 -1
- data/spec/concerns/enju_accept_spec.rb +14 -14
- data/spec/controllers/accepts_controller_spec.rb +294 -0
- data/spec/controllers/baskets_controller_spec.rb +379 -0
- data/spec/controllers/checkins_controller_spec.rb +8 -130
- data/spec/controllers/checkouts_controller_spec.rb +5 -5
- data/spec/controllers/items_controller_spec.rb +23 -43
- data/spec/controllers/reserves_controller_spec.rb +9 -9
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/user.rb +1 -1
- 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/database.yml +70 -9
- data/spec/dummy/config/initializers/assets.rb +1 -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/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/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb +1 -1
- 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/20181119170645_add_foreign_key_to_events_referencing_event_categories.rb +5 -0
- data/spec/dummy/db/migrate/20190630113817_add_display_name_translations_to_library_group.rb +12 -0
- data/spec/dummy/db/migrate/20190630115523_add_login_banner_translations_to_library_group.rb +6 -0
- data/spec/dummy/db/migrate/20190630151446_add_display_name_translations_to_role.rb +5 -0
- data/spec/dummy/db/migrate/20190630153136_add_display_name_translations_to_event.rb +6 -0
- data/spec/dummy/db/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb +21 -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/schema.rb +221 -184
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/private/system/carrier_types/attachments/000/000/001/original/book.png +0 -0
- data/spec/dummy/private/system/carrier_types/attachments/000/000/001/thumb/book.png +0 -0
- data/spec/factories/accept.rb +1 -1
- data/spec/factories/item.rb +4 -4
- data/spec/factories/reserve.rb +1 -5
- data/spec/fixtures/carrier_types.yml +16 -15
- data/spec/fixtures/checkins.yml +2 -1
- data/spec/fixtures/checkout_stat_has_users.yml +1 -1
- data/spec/fixtures/checkout_types.yml +11 -10
- data/spec/fixtures/checkouts.yml +2 -2
- data/spec/fixtures/circulation_statuses.yml +26 -34
- data/spec/fixtures/content_types.yml +20 -31
- data/spec/fixtures/event_categories.yml +23 -23
- data/spec/fixtures/frequencies.yml +17 -25
- data/spec/fixtures/items.yml +1 -1
- data/spec/fixtures/libraries.yml +30 -31
- data/spec/fixtures/library_groups.yml +43 -20
- data/spec/fixtures/request_status_types.yml +14 -14
- data/spec/fixtures/request_types.yml +13 -13
- data/spec/fixtures/reserve_transitions.yml +1 -1
- data/spec/fixtures/reserves.yml +3 -3
- data/spec/fixtures/roles.yml +22 -5
- data/spec/fixtures/shelves.yml +16 -15
- data/spec/fixtures/user_group_has_checkout_types.yml +24 -24
- data/spec/fixtures/user_groups.yml +23 -3
- data/spec/helpers/items_helper_spec.rb +1 -1
- data/spec/models/checked_item_spec.rb +0 -11
- data/spec/models/checkin_spec.rb +2 -1
- data/spec/models/checkout_spec.rb +2 -2
- data/spec/models/checkout_stat_has_user_spec.rb +1 -1
- data/spec/models/checkout_type_spec.rb +8 -7
- data/spec/models/circulation_status_spec.rb +8 -7
- data/spec/models/item_spec.rb +6 -8
- data/spec/models/manifestation_spec.rb +15 -18
- data/spec/models/reserve_spec.rb +3 -3
- data/spec/models/resource_export_file_spec.rb +0 -15
- data/spec/models/retain_spec.rb +16 -0
- data/spec/models/user_group_has_checkout_type_spec.rb +15 -32
- data/spec/models/withdraw_spec.rb +4 -6
- data/spec/policies/manifestation_policy_spec.rb +2 -1
- data/spec/rails_helper.rb +10 -3
- data/spec/system/reserves_spec.rb +1 -1
- data/spec/views/items/index.html.erb_spec.rb +1 -4
- metadata +402 -452
- data/app/controllers/lending_policies_controller.rb +0 -106
- data/app/models/lending_policy.rb +0 -30
- data/app/views/lending_policies/_form.html.erb +0 -41
- data/app/views/lending_policies/edit.html.erb +0 -13
- data/app/views/lending_policies/index.html.erb +0 -42
- data/app/views/lending_policies/new.html.erb +0 -12
- data/app/views/lending_policies/show.html.erb +0 -50
- data/db/migrate/20090831220301_create_lending_policies.rb +0 -21
- data/spec/controllers/lending_policies_controller_spec.rb +0 -444
- data/spec/controllers/withdraws_controller_spec.rb +0 -26
- data/spec/dummy/config/locales/en.yml +0 -208
- data/spec/dummy/config/locales/ja.yml +0 -200
- 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/fixtures/accepts.yml +0 -9
- data/spec/fixtures/bookstores.yml +0 -99
- data/spec/fixtures/budget_types.yml +0 -30
- data/spec/fixtures/exemplifies.yml +0 -168
- data/spec/fixtures/lending_policies.yml +0 -98
- data/spec/models/lending_policy_spec.rb +0 -23
- data/spec/system/items_spec.rb +0 -21
- data/spec/system/user_group_has_checkout_types.rb +0 -14
Binary file
|
Binary file
|
Binary file
|
data/spec/factories/accept.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
FactoryBot.define do
|
4
4
|
factory :accept do
|
5
5
|
basket_id{FactoryBot.create(:basket).id}
|
6
|
-
|
6
|
+
item_id{FactoryBot.create(:item).id}
|
7
7
|
librarian_id{FactoryBot.create(:librarian).id}
|
8
8
|
end
|
9
9
|
end
|
data/spec/factories/item.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
FactoryBot.define do
|
2
2
|
factory :item do
|
3
3
|
sequence(:item_identifier){|n| "item_#{n}"}
|
4
|
-
circulation_status_id{CirculationStatus.find(1).id}
|
4
|
+
circulation_status_id{CirculationStatus.find(1).id} if defined?(EnjuCircuation)
|
5
5
|
manifestation_id{FactoryBot.create(:manifestation).id}
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
association :bookstore
|
7
|
+
association :budget_type
|
8
|
+
after(:create) do |item|
|
9
9
|
item.use_restriction = UseRestriction.find_by(name: 'Limited Circulation, Normal Loan Period')
|
10
10
|
end
|
11
11
|
end
|
data/spec/factories/reserve.rb
CHANGED
@@ -6,10 +6,6 @@ FactoryBot.define do
|
|
6
6
|
user.profile = profile
|
7
7
|
reserve.user = user
|
8
8
|
end
|
9
|
-
|
10
|
-
item = FactoryBot.create(:item, use_restriction: UseRestriction.find_by(name: 'Available On Shelf'))
|
11
|
-
reserve.manifestation = item.manifestation
|
12
|
-
reserve.item = item
|
13
|
-
end
|
9
|
+
manifestation_id{FactoryBot.create(:manifestation).id}
|
14
10
|
end
|
15
11
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
carrier_type_00001:
|
3
3
|
name: volume
|
4
|
-
|
4
|
+
display_name_translations: {"en": "Volume", "ja": "Volume"}
|
5
5
|
updated_at: 2007-11-20 16:04:29.853828 +09:00
|
6
6
|
id: 1
|
7
7
|
note: !binary |
|
@@ -11,7 +11,7 @@ carrier_type_00001:
|
|
11
11
|
position: 1
|
12
12
|
carrier_type_00002:
|
13
13
|
name: audio_disc
|
14
|
-
|
14
|
+
display_name_translations: {"en": "Audio disc", "ja": "Audio disc"}
|
15
15
|
updated_at: 2007-12-19 01:45:26.040674 +09:00
|
16
16
|
id: 2
|
17
17
|
note: "\xE9\x9F\xB3\xE6\xA5\xBDCD\xE3\x81\xA7\xE3\x81\x99\xE3\x80\x82"
|
@@ -19,7 +19,7 @@ carrier_type_00002:
|
|
19
19
|
position: 2
|
20
20
|
carrier_type_00003:
|
21
21
|
name: videodisc
|
22
|
-
|
22
|
+
display_name_translations: {"en": "Video disc", "ja": "Video disc"}
|
23
23
|
updated_at: 2007-12-23 04:24:23.151410 +09:00
|
24
24
|
id: 3
|
25
25
|
note: "DVD\xE3\x81\xA7\xE3\x81\x99\xE3\x80\x82"
|
@@ -27,7 +27,7 @@ carrier_type_00003:
|
|
27
27
|
position: 3
|
28
28
|
carrier_type_00004:
|
29
29
|
name: online_resource
|
30
|
-
|
30
|
+
display_name_translations: {"en": "online_resource", "ja": "online_resource"}
|
31
31
|
updated_at: 2007-12-24 01:30:50.637433 +09:00
|
32
32
|
id: 4
|
33
33
|
note: !binary |
|
@@ -40,15 +40,16 @@ carrier_type_00004:
|
|
40
40
|
#
|
41
41
|
# Table name: carrier_types
|
42
42
|
#
|
43
|
-
# id
|
44
|
-
# name
|
45
|
-
# display_name
|
46
|
-
# note
|
47
|
-
# position
|
48
|
-
# created_at
|
49
|
-
# updated_at
|
50
|
-
# attachment_file_name
|
51
|
-
# attachment_content_type
|
52
|
-
# attachment_file_size
|
53
|
-
# attachment_updated_at
|
43
|
+
# id :integer not null, primary key
|
44
|
+
# name :string not null
|
45
|
+
# display_name :text
|
46
|
+
# note :text
|
47
|
+
# position :integer
|
48
|
+
# created_at :datetime
|
49
|
+
# updated_at :datetime
|
50
|
+
# attachment_file_name :string
|
51
|
+
# attachment_content_type :string
|
52
|
+
# attachment_file_size :bigint
|
53
|
+
# attachment_updated_at :datetime
|
54
|
+
# display_name_translations :jsonb not null
|
54
55
|
#
|
data/spec/fixtures/checkins.yml
CHANGED
@@ -17,7 +17,7 @@ two:
|
|
17
17
|
# id :integer not null, primary key
|
18
18
|
# user_checkout_stat_id :integer not null
|
19
19
|
# user_id :integer not null
|
20
|
-
# checkouts_count :integer default(
|
20
|
+
# checkouts_count :integer default(0), not null
|
21
21
|
# created_at :datetime
|
22
22
|
# updated_at :datetime
|
23
23
|
#
|
@@ -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,11 +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
|
#
|
data/spec/fixtures/checkouts.yml
CHANGED
@@ -167,8 +167,8 @@ checkout_00014:
|
|
167
167
|
# librarian_id :integer
|
168
168
|
# basket_id :integer
|
169
169
|
# due_date :datetime
|
170
|
-
# checkout_renewal_count :integer default(
|
171
|
-
# lock_version :integer default(
|
170
|
+
# checkout_renewal_count :integer default(0), not null
|
171
|
+
# lock_version :integer default(0), not null
|
172
172
|
# created_at :datetime
|
173
173
|
# updated_at :datetime
|
174
174
|
# shelf_id :integer
|
@@ -1,106 +1,97 @@
|
|
1
1
|
---
|
2
2
|
circulation_status_00001:
|
3
3
|
name: Available For Pickup
|
4
|
-
|
5
|
-
ja: 持ち出し可能"
|
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
9
|
name: Available On Shelf
|
11
|
-
|
12
|
-
ja: 在架(利用可能)"
|
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
15
|
name: Circulation Status Undefined
|
18
|
-
|
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
21
|
name: Claimed Returned Or Never Borrowed
|
24
|
-
|
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
57
|
name: On Loan
|
64
|
-
|
65
|
-
ja: 貸出中"
|
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
|
-
name: Recalled
|
83
|
-
|
75
|
+
name: Recalled
|
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
|
-
name: Waiting To Be Reshelved
|
89
|
-
|
81
|
+
name: Waiting To Be Reshelved
|
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,11 +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
|
#
|
@@ -2,85 +2,73 @@
|
|
2
2
|
content_type_00001:
|
3
3
|
id: 1
|
4
4
|
name: text
|
5
|
-
|
6
|
-
ja: 文字"
|
5
|
+
display_name_translations: {"en": "text", "ja": "文字"}
|
7
6
|
note:
|
8
7
|
position: 1
|
9
8
|
content_type_00002:
|
10
9
|
id: 2
|
11
10
|
name: performed_music
|
12
|
-
|
13
|
-
ja: 音楽"
|
11
|
+
display_name_translations: {"en": "Performed music", "ja": "音楽"}
|
14
12
|
note: 曲の演奏など
|
15
13
|
position: 2
|
16
14
|
content_type_00003:
|
17
15
|
id: 3
|
18
16
|
name: two_dimensional_moving_image
|
19
|
-
|
20
|
-
ja: 動画"
|
17
|
+
display_name_translations: {"en": "Two-dimensional moving image", "ja": "動画"}
|
21
18
|
note:
|
22
19
|
position: 3
|
23
20
|
content_type_00004:
|
24
21
|
id: 4
|
25
22
|
name: tactile_text
|
26
|
-
|
27
|
-
ja: 点字など"
|
23
|
+
display_name_translations: {"en": "Tactile text", "ja": "点字など"}
|
28
24
|
note: 触ることのできる文字
|
29
25
|
position: 4
|
30
26
|
content_type_00005:
|
31
27
|
id: 5
|
32
28
|
name: still_image
|
33
|
-
|
34
|
-
ja: 画像"
|
29
|
+
display_name_translations: {"en": "Still image", "ja": "画像"}
|
35
30
|
note: 静止画像
|
36
31
|
position: 5
|
37
32
|
content_type_00006:
|
38
33
|
id: 6
|
39
34
|
name: cartographic_image
|
40
|
-
|
41
|
-
ja: 地図"
|
35
|
+
display_name_translations: {"en": "Cartographic image", "ja": "地図"}
|
42
36
|
note:
|
43
37
|
position: 6
|
44
38
|
content_type_00007:
|
45
39
|
id: 7
|
46
40
|
name: spoken_word
|
47
|
-
|
48
|
-
ja: 音声"
|
41
|
+
display_name_translations: {"en": "Spoken word", "ja": "音声"}
|
49
42
|
note: 読み上げ音声など
|
50
43
|
position: 7
|
51
44
|
content_type_00008:
|
52
45
|
id: 8
|
53
46
|
name: sounds
|
54
|
-
|
55
|
-
ja: 音"
|
47
|
+
display_name_translations: {"en": "Sounds", "ja": "音"}
|
56
48
|
note: 波音など
|
57
49
|
position: 8
|
58
50
|
content_type_00009:
|
59
51
|
id: 9
|
60
52
|
name: notated_music
|
61
|
-
|
62
|
-
ja: 楽譜"
|
53
|
+
display_name_translations: {"en": "Notated music", "ja": "楽譜"}
|
63
54
|
note:
|
64
55
|
position: 9
|
65
56
|
content_type_00010:
|
66
57
|
id: 10
|
67
58
|
name: three_dimensional_moving_image
|
68
|
-
|
69
|
-
ja: 3D動画"
|
59
|
+
display_name_translations: {"en": "Three-dimensional moving image", "ja": "3D動画"}
|
70
60
|
note:
|
71
61
|
position: 10
|
72
62
|
content_type_00011:
|
73
63
|
id: 11
|
74
64
|
name: other
|
75
|
-
|
76
|
-
ja: その他"
|
65
|
+
display_name_translations: {"en": "Other", "ja": "その他"}
|
77
66
|
note: LCMARCに由来
|
78
67
|
position: 11
|
79
68
|
content_type_00012:
|
80
69
|
id: 12
|
81
70
|
name: unspecified
|
82
|
-
|
83
|
-
ja: 不明"
|
71
|
+
display_name_translations: {"en": "Unspecified", "ja": "不明"}
|
84
72
|
note: LCMARCに由来
|
85
73
|
position: 12
|
86
74
|
|
@@ -88,11 +76,12 @@ content_type_00012:
|
|
88
76
|
#
|
89
77
|
# Table name: content_types
|
90
78
|
#
|
91
|
-
# id
|
92
|
-
# name
|
93
|
-
# display_name
|
94
|
-
# note
|
95
|
-
# position
|
96
|
-
# created_at
|
97
|
-
# updated_at
|
79
|
+
# id :integer not null, primary key
|
80
|
+
# name :string not null
|
81
|
+
# display_name :text
|
82
|
+
# note :text
|
83
|
+
# position :integer
|
84
|
+
# created_at :datetime
|
85
|
+
# updated_at :datetime
|
86
|
+
# display_name_translations :jsonb not null
|
98
87
|
#
|
@@ -1,55 +1,55 @@
|
|
1
1
|
---
|
2
|
+
event_category_00001:
|
3
|
+
name: unknown
|
4
|
+
display_name_translations: {"en": "(not specified)", "ja": "未定"}
|
5
|
+
updated_at: 2008-01-01 16:24:17.869192 +09:00
|
6
|
+
id: 1
|
7
|
+
note: ""
|
8
|
+
created_at: 2008-01-01 16:17:12.549565 +09:00
|
9
|
+
position: 1
|
2
10
|
event_category_00002:
|
3
11
|
name: closed
|
4
|
-
|
12
|
+
display_name_translations: {"en": "closed", "ja": "休館日"}
|
5
13
|
updated_at: 2008-01-01 16:24:32.561469 +09:00
|
6
14
|
id: 2
|
7
15
|
note: ""
|
8
16
|
created_at: 2008-01-01 16:17:34.642433 +09:00
|
9
17
|
position: 2
|
10
18
|
event_category_00003:
|
11
|
-
name:
|
12
|
-
|
19
|
+
name: book_talk
|
20
|
+
display_name_translations: {"en": "talk event", "ja": "おはなし会"}
|
13
21
|
updated_at: 2008-01-01 16:24:45.267241 +09:00
|
14
22
|
id: 3
|
15
23
|
note: ""
|
16
24
|
created_at: 2008-01-01 16:17:45.415487 +09:00
|
17
25
|
position: 3
|
18
26
|
event_category_00004:
|
19
|
-
name:
|
20
|
-
|
27
|
+
name: movie_theater
|
28
|
+
display_name_translations: {"en": "screening", "ja": "上映会"}
|
21
29
|
updated_at: 2008-01-01 16:24:55.261682 +09:00
|
22
30
|
id: 4
|
23
31
|
note: ""
|
24
32
|
created_at: 2008-01-01 16:18:08.868680 +09:00
|
25
33
|
position: 4
|
26
34
|
event_category_00005:
|
27
|
-
name:
|
28
|
-
|
35
|
+
name: talk_event
|
36
|
+
display_name_translations: {"en": "seminar", "ja": "講演会"}
|
29
37
|
updated_at: 2008-01-01 16:25:04.251141 +09:00
|
30
38
|
id: 5
|
31
39
|
note: ""
|
32
40
|
created_at: 2008-01-01 16:25:04.251141 +09:00
|
33
41
|
position: 5
|
34
|
-
event_category_00001:
|
35
|
-
name: unknown
|
36
|
-
display_name: (not specified)
|
37
|
-
updated_at: 2008-01-01 16:24:17.869192 +09:00
|
38
|
-
id: 1
|
39
|
-
note: ""
|
40
|
-
created_at: 2008-01-01 16:17:12.549565 +09:00
|
41
|
-
position: 1
|
42
42
|
|
43
43
|
# == Schema Information
|
44
44
|
#
|
45
45
|
# Table name: event_categories
|
46
46
|
#
|
47
|
-
# id
|
48
|
-
# name
|
49
|
-
# display_name
|
50
|
-
# note
|
51
|
-
# position
|
52
|
-
# created_at
|
53
|
-
# updated_at
|
47
|
+
# id :integer not null, primary key
|
48
|
+
# name :string not null
|
49
|
+
# display_name :text
|
50
|
+
# note :text
|
51
|
+
# position :integer
|
52
|
+
# created_at :datetime
|
53
|
+
# updated_at :datetime
|
54
|
+
# display_name_translations :jsonb not null
|
54
55
|
#
|
55
|
-
|
@@ -1,56 +1,47 @@
|
|
1
1
|
---
|
2
2
|
frequency_00001:
|
3
3
|
name: unknown
|
4
|
-
|
5
|
-
ja: 不明・不定期刊"
|
4
|
+
display_name_translations: {"en": "unknown", "ja": "不明・不定期刊"}
|
6
5
|
id: 1
|
7
6
|
position: 1
|
8
7
|
frequency_00002:
|
9
8
|
name: daily
|
10
|
-
|
11
|
-
ja: 日刊"
|
9
|
+
display_name_translations: {"en": "daily", "ja": "日刊"}
|
12
10
|
id: 2
|
13
11
|
position: 2
|
14
12
|
frequency_00003:
|
15
13
|
name: weekly
|
16
|
-
|
17
|
-
ja: 週刊"
|
14
|
+
display_name_translations: {"en": "weekly", "ja": "週刊"}
|
18
15
|
id: 3
|
19
16
|
position: 3
|
20
17
|
frequency_00004:
|
21
18
|
name: biweekly
|
22
|
-
|
23
|
-
ja: 隔週刊"
|
19
|
+
display_name_translations: {"en": "biweekly", "ja": "隔週刊"}
|
24
20
|
id: 4
|
25
21
|
position: 4
|
26
22
|
frequency_00005:
|
27
23
|
name: monthly
|
28
|
-
|
29
|
-
ja: 月刊"
|
24
|
+
display_name_translations: {"en": "monthly", "ja": "月刊"}
|
30
25
|
id: 5
|
31
26
|
position: 5
|
32
27
|
frequency_00006:
|
33
28
|
name: bimonthly
|
34
|
-
|
35
|
-
ja: 隔月刊"
|
29
|
+
display_name_translations: {"en": "bimonthly", "ja": "隔月刊"}
|
36
30
|
id: 6
|
37
31
|
position: 6
|
38
32
|
frequency_00007:
|
39
33
|
name: quarterly
|
40
|
-
|
41
|
-
ja: 季刊"
|
34
|
+
display_name_translations: {"en": "quarterly", "ja": "季刊"}
|
42
35
|
id: 7
|
43
36
|
position: 7
|
44
37
|
frequency_00008:
|
45
38
|
name: yearly
|
46
|
-
|
47
|
-
ja: 年刊"
|
39
|
+
display_name_translations: {"en": "yearly", "ja": "年刊"}
|
48
40
|
id: 8
|
49
41
|
position: 8
|
50
42
|
frequency_00009:
|
51
43
|
name: biyearly
|
52
|
-
|
53
|
-
ja: 隔年刊"
|
44
|
+
display_name_translations: {"en": "biyearly", "ja": "隔年刊"}
|
54
45
|
id: 9
|
55
46
|
position: 9
|
56
47
|
|
@@ -58,11 +49,12 @@ frequency_00009:
|
|
58
49
|
#
|
59
50
|
# Table name: frequencies
|
60
51
|
#
|
61
|
-
# id
|
62
|
-
# name
|
63
|
-
# display_name
|
64
|
-
# note
|
65
|
-
# position
|
66
|
-
# created_at
|
67
|
-
# updated_at
|
52
|
+
# id :integer not null, primary key
|
53
|
+
# name :string not null
|
54
|
+
# display_name :text
|
55
|
+
# note :text
|
56
|
+
# position :integer
|
57
|
+
# created_at :datetime
|
58
|
+
# updated_at :datetime
|
59
|
+
# display_name_translations :jsonb not null
|
68
60
|
#
|
data/spec/fixtures/items.yml
CHANGED