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.
Files changed (216) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -3
  3. data/app/controllers/concerns/enju_library/controller.rb +5 -5
  4. data/app/controllers/libraries_controller.rb +4 -1
  5. data/app/controllers/library_groups_controller.rb +7 -1
  6. data/app/controllers/request_status_types_controller.rb +6 -1
  7. data/app/controllers/request_types_controller.rb +6 -1
  8. data/app/controllers/shelves_controller.rb +4 -1
  9. data/app/controllers/user_groups_controller.rb +3 -0
  10. data/app/helpers/enju_library/application_helper.rb +18 -0
  11. data/app/models/budget_type.rb +9 -7
  12. data/app/models/concerns/enju_library/enju_user.rb +10 -0
  13. data/app/models/library.rb +29 -43
  14. data/app/models/library_group.rb +10 -11
  15. data/app/models/request_status_type.rb +9 -7
  16. data/app/models/request_type.rb +9 -7
  17. data/app/models/search_engine.rb +14 -18
  18. data/app/models/shelf.rb +13 -11
  19. data/app/models/user_export_file.rb +1 -1
  20. data/app/models/user_export_file_state_machine.rb +1 -1
  21. data/app/models/user_group.rb +2 -0
  22. data/app/models/user_import_file.rb +28 -27
  23. data/app/models/user_import_file_state_machine.rb +1 -1
  24. data/app/models/withdraw.rb +6 -0
  25. data/app/policies/shelf_policy.rb +1 -1
  26. data/app/views/accepts/_list.html.erb +2 -2
  27. data/app/views/accepts/index.html.erb +2 -2
  28. data/app/views/budget_types/_form.html.erb +1 -1
  29. data/app/views/budget_types/index.html.erb +1 -1
  30. data/app/views/budget_types/show.html.erb +1 -1
  31. data/app/views/libraries/_calendar.html.erb +1 -1
  32. data/app/views/libraries/_form.html.erb +2 -12
  33. data/app/views/libraries/_map.html+phone.erb +2 -2
  34. data/app/views/libraries/_map.html.erb +23 -10
  35. data/app/views/libraries/index.html.erb +1 -1
  36. data/app/views/libraries/show.html+phone.erb +1 -1
  37. data/app/views/libraries/show.html+phone.slim +1 -1
  38. data/app/views/libraries/show.html.erb +2 -2
  39. data/app/views/library_groups/_form.html.erb +14 -13
  40. data/app/views/library_groups/index.html.erb +1 -1
  41. data/app/views/library_groups/show.html.erb +2 -2
  42. data/app/views/picture_files/_index_shelf.html.erb +1 -1
  43. data/app/views/request_status_types/_form.html.erb +1 -1
  44. data/app/views/request_status_types/index.html.erb +1 -1
  45. data/app/views/request_status_types/show.html.erb +1 -1
  46. data/app/views/request_types/_form.html.erb +1 -1
  47. data/app/views/request_types/index.html.erb +1 -1
  48. data/app/views/request_types/show.html.erb +1 -1
  49. data/app/views/shelves/_form.html.erb +1 -1
  50. data/app/views/shelves/_select_form.html.erb +1 -1
  51. data/app/views/shelves/index.html.erb +3 -3
  52. data/app/views/shelves/show.html+phone.erb +1 -1
  53. data/app/views/shelves/show.html+phone.slim +1 -1
  54. data/app/views/shelves/show.html.erb +2 -2
  55. data/app/views/user_groups/_form.html.erb +1 -1
  56. data/app/views/user_groups/index.html.erb +1 -1
  57. data/app/views/user_groups/show.html.erb +2 -2
  58. data/app/views/user_import_files/_results.html.erb +0 -5
  59. data/app/views/user_import_files/new.html.erb +2 -2
  60. data/app/views/user_import_files/show.html.erb +2 -2
  61. data/app/views/user_import_results/index.html.erb +11 -0
  62. data/app/views/withdraws/_list.html.erb +2 -2
  63. data/app/views/withdraws/index.html.erb +3 -3
  64. data/app/views/withdraws/new.html.erb +1 -1
  65. data/config/locales/translation_en.yml +2 -4
  66. data/config/locales/translation_ja.yml +2 -4
  67. data/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb +1 -1
  68. data/db/migrate/20190630113817_add_display_name_translations_to_library_group.rb +12 -0
  69. data/db/migrate/20190630115523_add_login_banner_translations_to_library_group.rb +6 -0
  70. data/lib/enju_library/version.rb +1 -1
  71. data/lib/generators/enju_library/setup/setup_generator.rb +2 -7
  72. data/lib/generators/enju_library/setup/templates/db/fixtures/budget_types.yml +4 -0
  73. data/lib/generators/enju_library/setup/templates/db/fixtures/libraries.yml +2 -2
  74. data/lib/generators/enju_library/setup/templates/db/fixtures/library_groups.yml +11 -5
  75. data/lib/generators/enju_library/setup/templates/db/fixtures/user_groups.yml +1 -2
  76. data/spec/controllers/budget_types_controller_spec.rb +1 -1
  77. data/spec/controllers/items_controller_spec.rb +35 -0
  78. data/spec/dummy/app/helpers/application_helper.rb +1 -0
  79. data/spec/dummy/app/models/user.rb +1 -2
  80. data/spec/dummy/bin/bundle +1 -1
  81. data/spec/dummy/bin/setup +1 -3
  82. data/spec/dummy/bin/update +4 -2
  83. data/spec/dummy/bin/yarn +3 -3
  84. data/spec/dummy/config/application.rb +1 -0
  85. data/spec/dummy/config/database.yml +70 -9
  86. data/spec/dummy/config/initializers/assets.rb +1 -1
  87. data/spec/dummy/config/storage.yml +34 -0
  88. data/spec/dummy/db/development.sqlite3 +0 -0
  89. data/spec/dummy/db/migrate/113_create_events.rb +2 -4
  90. data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +2 -4
  91. data/spec/dummy/db/migrate/20090519203307_create_participates.rb +2 -4
  92. data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +2 -2
  93. data/spec/dummy/db/migrate/20140720192418_add_default_library_id_to_event_import_file.rb +1 -1
  94. data/spec/dummy/db/migrate/20140812152348_create_event_export_files.rb +1 -1
  95. data/spec/dummy/db/migrate/20140814070854_add_default_event_category_id_to_event_import_file.rb +1 -1
  96. data/spec/dummy/db/migrate/20151128142913_create_places.rb +14 -0
  97. data/spec/dummy/db/migrate/20151201163718_add_place_id_to_event.rb +5 -0
  98. data/spec/dummy/db/migrate/20160319144230_create_issn_records.rb +11 -0
  99. data/spec/dummy/db/migrate/20160506144040_create_isbn_records.rb +11 -0
  100. data/spec/dummy/db/migrate/20160703184258_add_most_recent_to_event_import_file_transitions.rb +9 -0
  101. data/spec/dummy/db/migrate/20160703184311_add_most_recent_to_event_export_file_transitions.rb +9 -0
  102. data/spec/dummy/db/migrate/20170116134107_create_issn_record_and_manifestations.rb +11 -0
  103. data/spec/dummy/db/migrate/20170116134120_create_isbn_record_and_manifestations.rb +11 -0
  104. data/spec/dummy/db/migrate/20170116150432_create_jpno_records.rb +10 -0
  105. data/spec/dummy/db/migrate/20171126072934_create_ndla_records.rb +10 -0
  106. data/spec/dummy/db/migrate/20180107162659_add_constraints_to_most_recent_for_message_transitions.rb +13 -0
  107. data/spec/dummy/db/migrate/20180107162711_add_constraints_to_most_recent_for_message_request_transitions.rb +13 -0
  108. data/spec/dummy/db/migrate/20180107164558_add_constraints_to_most_recent_for_event_import_file_transitions.rb +13 -0
  109. data/spec/dummy/db/migrate/20180107164617_add_constraints_to_most_recent_for_event_export_file_transitions.rb +13 -0
  110. data/spec/dummy/db/migrate/20181030072731_add_not_null_to_position_on_carrier_type.rb +14 -0
  111. data/spec/dummy/db/migrate/20181119170645_add_foreign_key_to_events_referencing_event_categories.rb +5 -0
  112. data/spec/dummy/db/migrate/20190102034126_create_doi_records.rb +13 -0
  113. data/spec/dummy/db/migrate/20190208135957_create_active_storage_tables.active_storage.rb +27 -0
  114. data/spec/dummy/db/migrate/20190311154610_create_periodicals.rb +10 -0
  115. data/spec/dummy/db/migrate/20190312033839_create_periodical_and_manifestations.rb +11 -0
  116. data/spec/dummy/db/migrate/20190314151124_add_full_name_translations_to_create.rb +7 -0
  117. data/spec/dummy/db/migrate/20190501043418_create_ndl_bib_id_records.rb +10 -0
  118. data/spec/dummy/db/migrate/20190508160525_create_retains.rb +10 -0
  119. data/spec/dummy/db/migrate/20190512133459_upgrade_enju_event_to_enju_leaf20.rb +115 -0
  120. data/spec/dummy/db/migrate/20190629134017_rename_user_group_has_checkout_type_due_date_before_to_due_date_after.rb +5 -0
  121. data/spec/dummy/db/migrate/20190630151446_add_display_name_translations_to_role.rb +5 -0
  122. data/spec/dummy/db/migrate/20190630153136_add_display_name_translations_to_event.rb +6 -0
  123. data/spec/dummy/db/migrate/20190706052525_add_display_name_translations_to_circulation_status.rb +5 -0
  124. data/spec/dummy/db/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb +21 -0
  125. data/spec/dummy/db/migrate/20190713114724_add_checkout_id_to_checkin.rb +6 -0
  126. data/spec/dummy/db/migrate/20190713114940_add_profile_id_to_user.rb +5 -0
  127. data/spec/dummy/db/migrate/20190713115451_add_full_name_translations_to_profile.rb +5 -0
  128. data/spec/dummy/db/migrate/20190814120827_add_display_name_translations_to_checkout_type.rb +5 -0
  129. data/spec/dummy/db/schema.rb +402 -204
  130. data/spec/dummy/db/test.sqlite3 +0 -0
  131. data/spec/factories/budget_types.rb +8 -7
  132. data/spec/factories/profile.rb +9 -2
  133. data/spec/factories/user.rb +25 -31
  134. data/spec/factories/user_export_file.rb +5 -0
  135. data/spec/factories/user_import_file.rb +7 -0
  136. data/spec/factories/user_import_result.rb +6 -0
  137. data/spec/fixtures/agent_relationship_types.yml +34 -0
  138. data/spec/fixtures/agent_types.yml +11 -11
  139. data/spec/fixtures/agents.yml +27 -27
  140. data/spec/fixtures/baskets.yml +1 -0
  141. data/spec/fixtures/bookstores.yml +1 -0
  142. data/spec/fixtures/budget_types.yml +9 -7
  143. data/spec/fixtures/carrier_type_has_checkout_types.yml +5 -5
  144. data/spec/fixtures/carrier_types.yml +28 -24
  145. data/spec/fixtures/checked_items.yml +6 -6
  146. data/spec/fixtures/checkins.yml +4 -11
  147. data/spec/fixtures/checkout_stat_has_manifestations.yml +5 -5
  148. data/spec/fixtures/checkout_stat_has_users.yml +6 -6
  149. data/spec/fixtures/checkout_types.yml +11 -11
  150. data/spec/fixtures/checkouts.yml +16 -17
  151. data/spec/fixtures/circulation_statuses.yml +29 -38
  152. data/spec/fixtures/classification_types.yml +63 -0
  153. data/spec/fixtures/content_types.yml +20 -31
  154. data/spec/fixtures/create_types.yml +43 -0
  155. data/spec/fixtures/event_categories.yml +23 -23
  156. data/spec/fixtures/frequencies.yml +17 -25
  157. data/spec/fixtures/identifier_types.yml +42 -0
  158. data/spec/fixtures/item_has_use_restrictions.yml +11 -11
  159. data/spec/fixtures/items.yml +28 -17
  160. data/spec/fixtures/languages.yml +12 -13
  161. data/spec/fixtures/lending_policies.yml +8 -15
  162. data/spec/fixtures/libraries.yml +30 -29
  163. data/spec/fixtures/library_groups.yml +12 -9
  164. data/spec/fixtures/manifestation_checkout_stats.yml +4 -3
  165. data/spec/fixtures/manifestation_relationship_types.yml +29 -0
  166. data/spec/fixtures/manifestation_reserve_stats.yml +4 -3
  167. data/spec/fixtures/manifestations.yml +60 -50
  168. data/spec/fixtures/message_requests.yml +3 -3
  169. data/spec/fixtures/produce_types.yml +29 -0
  170. data/spec/fixtures/profiles.yml +11 -6
  171. data/spec/fixtures/realize_types.yml +36 -0
  172. data/spec/fixtures/request_status_types.yml +14 -13
  173. data/spec/fixtures/request_types.yml +13 -12
  174. data/spec/fixtures/reserve_stat_has_manifestations.yml +5 -5
  175. data/spec/fixtures/reserve_stat_has_users.yml +5 -5
  176. data/spec/fixtures/reserve_transitions.yml +8 -7
  177. data/spec/fixtures/reserves.yml +44 -64
  178. data/spec/fixtures/roles.yml +22 -5
  179. data/spec/fixtures/search_engines.yml +13 -12
  180. data/spec/fixtures/shelves.yml +16 -15
  181. data/spec/fixtures/subject_heading_types.yml +39 -0
  182. data/spec/fixtures/subject_types.yml +28 -0
  183. data/spec/fixtures/use_restrictions.yml +4 -4
  184. data/spec/fixtures/user_checkout_stats.yml +4 -4
  185. data/spec/fixtures/user_export_files.yml +1 -1
  186. data/spec/fixtures/user_group_has_checkout_types.yml +19 -19
  187. data/spec/fixtures/user_groups.yml +4 -3
  188. data/spec/fixtures/user_has_roles.yml +3 -4
  189. data/spec/fixtures/user_reserve_stats.yml +5 -4
  190. data/spec/models/budget_type_spec.rb +8 -7
  191. data/spec/models/library_group_spec.rb +5 -14
  192. data/spec/models/library_spec.rb +26 -25
  193. data/spec/models/request_status_type_spec.rb +8 -7
  194. data/spec/models/request_type_spec.rb +8 -7
  195. data/spec/models/search_engine_spec.rb +13 -12
  196. data/spec/models/shelf_spec.rb +12 -11
  197. data/spec/models/user_export_file_spec.rb +2 -2
  198. data/spec/models/user_group_spec.rb +1 -6
  199. data/spec/models/user_import_file_spec.rb +23 -23
  200. data/spec/rails_helper.rb +10 -2
  201. data/spec/system/libraries_spec.rb +5 -5
  202. metadata +476 -493
  203. data/app/helpers/shelves_helper.rb +0 -16
  204. data/app/views/layouts/libraries.html.erb +0 -31
  205. data/app/views/libraries/_map_header.html.erb +0 -6
  206. data/db/migrate/20151213070943_add_translation_table_to_library_group.rb +0 -18
  207. data/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +0 -22
  208. data/lib/generators/enju_library/setup/templates/db/fixtures/library_group/translations.yml +0 -12
  209. data/spec/dummy/app/assets/config/manifest.js +0 -5
  210. data/spec/dummy/db/migrate/20190818075603_add_memo_to_manifestation.rb +0 -5
  211. data/spec/dummy/db/migrate/20190818075628_add_memo_to_item.rb +0 -5
  212. data/spec/dummy/db/migrate/20200425072340_create_manifestation_custom_properties.rb +0 -12
  213. data/spec/dummy/db/migrate/20200425072349_create_item_custom_properties.rb +0 -12
  214. data/spec/dummy/db/migrate/20200425074758_create_manifestation_custom_values.rb +0 -12
  215. data/spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb +0 -12
  216. data/spec/dummy/yarn.lock +0 -7535
@@ -2,85 +2,73 @@
2
2
  content_type_00001:
3
3
  id: 1
4
4
  name: text
5
- display_name: "en: text\r\n\
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
- display_name: "en: Performed music\r\n\
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
- display_name: "en: Two-dimensional moving image\r\n\
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
- display_name: "en: Tactile text\r\n\
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
- display_name: "en: Still image\r\n\
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
- display_name: "en: Cartographic image\r\n\
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
- display_name: "en: Spoken word\r\n\
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
- display_name: "en: Sounds\r\n\
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
- display_name: "en: Notated music\r\n\
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
- display_name: "en: Three-dimensional moving image\r\n\
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
- display_name: "en: Other\r\n\
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
- display_name: "en: Unspecified\r\n\
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 :integer not null, primary key
92
- # name :string not null
93
- # display_name :text
94
- # note :text
95
- # position :integer
96
- # created_at :datetime
97
- # updated_at :datetime
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
  #
@@ -0,0 +1,43 @@
1
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
+
3
+ author:
4
+ name: author
5
+ display_name_translations: {"en: Author", "ja": "著者"}
6
+ note:
7
+ position: 1
8
+ id: 1
9
+
10
+ editor:
11
+ name: editor
12
+ display_name_translations: {"en": "Editor", "ja": "編者"}
13
+ note:
14
+ position: 2
15
+ id: 2
16
+
17
+ translator:
18
+ name: translator
19
+ display_name_translations: {"en": "Translator", "ja": "訳者"}
20
+ note:
21
+ position: 3
22
+ id: 3
23
+
24
+ illustrator:
25
+ name: illustrator
26
+ display_name_translations: {"en": "Illustrator", "ja": "作画者"}
27
+ note:
28
+ position: 4
29
+ id: 4
30
+
31
+ # == Schema Information
32
+ #
33
+ # Table name: create_types
34
+ #
35
+ # id :integer not null, primary key
36
+ # name :string
37
+ # display_name :text
38
+ # note :text
39
+ # position :integer
40
+ # created_at :datetime
41
+ # updated_at :datetime
42
+ # display_name_translations :jsonb not null
43
+ #
@@ -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
- display_name: 休館日
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
- display_name: おはなし会
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
- display_name: 上映会
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
- display_name: 講演会
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 :integer not null, primary key
48
- # name :string(255) not null
49
- # display_name :text
50
- # note :text
51
- # position :integer
52
- # created_at :datetime
53
- # updated_at :datetime
47
+ # id :integer not null, primary key
48
+ # name :string not null
49
+ # display_name :text
50
+ # note :text
51
+ # position :integer default(1), not null
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
- display_name: "en: unknown\r\n\
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
- display_name: "en: daily\r\n\
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
- display_name: "en: weekly\r\n\
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
- display_name: "en: biweekly\r\n\
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
- display_name: "en: monthly\r\n\
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
- display_name: "en: bimonthly\r\n\
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
- display_name: "en: quarterly\r\n\
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
- display_name: "en: yearly\r\n\
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
- display_name: "en: biyearly\r\n\
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 :integer not null, primary key
62
- # name :string not null
63
- # display_name :text
64
- # note :text
65
- # position :integer
66
- # created_at :datetime
67
- # updated_at :datetime
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
  #
@@ -0,0 +1,42 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ name: isbn
5
+ display_name: ISBN
6
+ note:
7
+ position: 1
8
+ id: 1
9
+
10
+ two:
11
+ name: issn
12
+ display_name: ISSN
13
+ note:
14
+ position: 2
15
+ id: 2
16
+
17
+ three:
18
+ name: jpno
19
+ display_name: JPNO
20
+ note:
21
+ position: 3
22
+ id: 3
23
+
24
+ four:
25
+ name: ncid
26
+ display_name: NCID
27
+ note:
28
+ position: 4
29
+ id: 4
30
+
31
+ # == Schema Information
32
+ #
33
+ # Table name: identifier_types
34
+ #
35
+ # id :integer not null, primary key
36
+ # name :string
37
+ # display_name :text
38
+ # note :text
39
+ # position :integer
40
+ # created_at :datetime
41
+ # updated_at :datetime
42
+ #
@@ -21,41 +21,41 @@ item_has_use_restriction_00004:
21
21
  item_id: 17
22
22
  updated_at: 2008-02-13 12:29:36.013448 +09:00
23
23
  id: 4
24
- use_restriction_id: 4
24
+ use_restriction_id: 6
25
25
  created_at: 2008-02-13 12:29:36.013448 +09:00
26
26
  item_has_use_restriction_00005:
27
27
  item_id: 21
28
28
  updated_at: 2008-02-13 12:29:36.013448 +09:00
29
29
  id: 5
30
- use_restriction_id: 4
30
+ use_restriction_id: 6
31
31
  created_at: 2008-02-13 12:29:36.013448 +09:00
32
32
  item_has_use_restriction_00006:
33
33
  item_id: 11
34
34
  updated_at: 2008-02-13 12:29:36.013448 +09:00
35
35
  id: 6
36
- use_restriction_id: 4
36
+ use_restriction_id: 6
37
37
  created_at: 2008-02-13 12:29:36.013448 +09:00
38
38
  item_has_use_restriction_00007:
39
39
  item_id: 6
40
40
  updated_at: 2008-02-13 12:29:36.013448 +09:00
41
41
  id: 7
42
- use_restriction_id: 4
42
+ use_restriction_id: 6
43
43
  created_at: 2008-02-13 12:29:36.013448 +09:00
44
44
  item_has_use_restriction_00008:
45
- item_id: 24
45
+ item_id: 23
46
46
  updated_at: 2008-02-13 12:29:36.013448 +09:00
47
47
  id: 8
48
- use_restriction_id: 4
48
+ use_restriction_id: 6
49
49
  created_at: 2008-02-13 12:29:36.013448 +09:00
50
50
 
51
51
  # == Schema Information
52
52
  #
53
53
  # Table name: item_has_use_restrictions
54
54
  #
55
- # id :integer not null, primary key
56
- # item_id :integer not null
57
- # use_restriction_id :integer not null
58
- # created_at :datetime not null
59
- # updated_at :datetime not null
55
+ # id :integer not null, primary key
56
+ # item_id :integer not null
57
+ # use_restriction_id :integer not null
58
+ # created_at :datetime
59
+ # updated_at :datetime
60
60
  #
61
61
 
@@ -130,8 +130,6 @@ item_00012:
130
130
  manifestation_id: 2
131
131
  id: 12
132
132
  include_supplements: false
133
- bookstore_id: 1
134
- budget_type_id: 1
135
133
  created_at: 2007-08-24 23:46:11.484813 +09:00
136
134
  item_00013:
137
135
  updated_at: 2007-08-24 23:46:12.484813 +09:00
@@ -246,7 +244,7 @@ item_00022:
246
244
  item_00023:
247
245
  updated_at: 2007-08-24 23:46:20.484813 +09:00
248
246
  item_identifier: '00023'
249
- circulation_status_id: 15
247
+ circulation_status_id: 16
250
248
  checkout_type_id: 3
251
249
  shelf_id: 2
252
250
  call_number:
@@ -255,31 +253,44 @@ item_00023:
255
253
  include_supplements: false
256
254
  created_at: 2007-08-24 23:46:20.484813 +09:00
257
255
  item_00024:
258
- updated_at: 2007-08-24 23:46:20.484813 +09:00
256
+ updated_at: 2007-08-24 23:46:08.607081 +09:00
259
257
  item_identifier: '00024'
260
- circulation_status_id: 15
261
- checkout_type_id: 3
262
- shelf_id: 2
258
+ circulation_status_id: 2
259
+ checkout_type_id: 1
260
+ shelf_id: 3
263
261
  call_number:
264
- manifestation_id: 11
262
+ manifestation_id: 102
265
263
  id: 24
266
264
  include_supplements: false
267
- created_at: 2007-08-24 23:46:20.484813 +09:00
265
+ created_at: 2007-08-24 23:46:08.607081 +09:00
266
+ acquired_at: 2015-08-25 23:46:08.607081 +09:00
267
+ item_00025:
268
+ updated_at: 2007-08-24 23:46:08.607081 +09:00
269
+ item_identifier: '00025'
270
+ circulation_status_id: 2
271
+ checkout_type_id: 1
272
+ shelf_id: 3
273
+ call_number: '547|ヤ'
274
+ manifestation_id: 102
275
+ id: 25
276
+ include_supplements: false
277
+ created_at: 2007-08-24 23:46:08.607081 +09:00
278
+ acquired_at: 2015-09-25 23:46:08.607081 +09:00
268
279
 
269
280
  # == Schema Information
270
281
  #
271
282
  # Table name: items
272
283
  #
273
284
  # id :integer not null, primary key
274
- # call_number :string(255)
275
- # item_identifier :string(255)
276
- # created_at :datetime not null
277
- # updated_at :datetime not null
285
+ # call_number :string
286
+ # item_identifier :string
287
+ # created_at :datetime
288
+ # updated_at :datetime
278
289
  # deleted_at :datetime
279
290
  # shelf_id :integer default(1), not null
280
291
  # include_supplements :boolean default(FALSE), not null
281
292
  # note :text
282
- # url :string(255)
293
+ # url :string
283
294
  # price :integer
284
295
  # lock_version :integer default(0), not null
285
296
  # required_role_id :integer default(1), not null
@@ -289,8 +300,8 @@ item_00024:
289
300
  # budget_type_id :integer
290
301
  # circulation_status_id :integer default(5), not null
291
302
  # checkout_type_id :integer default(1), not null
292
- # binding_item_identifier :string(255)
293
- # binding_call_number :string(255)
303
+ # binding_item_identifier :string
304
+ # binding_call_number :string
294
305
  # binded_at :datetime
295
- # manifestation_id :integer
306
+ # manifestation_id :integer not null
296
307
  #