enju_biblio 0.3.10 → 0.4.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (362) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -3
  3. data/app/controllers/content_types_controller.rb +1 -1
  4. data/app/controllers/items_controller.rb +2 -5
  5. data/app/controllers/manifestations_controller.rb +20 -23
  6. data/app/controllers/resource_import_results_controller.rb +2 -6
  7. data/app/helpers/enju_biblio/application_helper.rb +5 -5
  8. data/app/helpers/manifestations_helper.rb +10 -10
  9. data/app/models/agent.rb +3 -3
  10. data/app/models/agent_import_file.rb +1 -1
  11. data/app/models/agent_relationship_type.rb +8 -7
  12. data/app/models/agent_type.rb +10 -7
  13. data/app/models/carrier_type.rb +14 -11
  14. data/app/models/content_type.rb +10 -7
  15. data/app/models/create_type.rb +8 -7
  16. data/app/models/doi_record.rb +36 -0
  17. data/app/models/form_of_work.rb +11 -8
  18. data/app/models/frequency.rb +10 -7
  19. data/app/models/identifier_type.rb +1 -0
  20. data/app/models/import_request.rb +0 -2
  21. data/app/models/isbn_record.rb +51 -0
  22. data/app/models/isbn_record_and_manifestation.rb +18 -0
  23. data/app/models/issn_record.rb +49 -0
  24. data/app/models/issn_record_and_manifestation.rb +18 -0
  25. data/app/models/item.rb +2 -50
  26. data/app/models/language.rb +10 -9
  27. data/app/models/license.rb +9 -7
  28. data/app/models/manifestation.rb +252 -148
  29. data/app/models/manifestation_relationship_type.rb +9 -7
  30. data/app/models/medium_of_performance.rb +11 -8
  31. data/app/models/periodical.rb +33 -0
  32. data/app/models/periodical_and_manifestation.rb +16 -0
  33. data/app/models/picture_file.rb +2 -0
  34. data/app/models/produce_type.rb +8 -7
  35. data/app/models/realize_type.rb +8 -7
  36. data/app/models/resource_export_file.rb +8 -6
  37. data/app/models/resource_export_file_state_machine.rb +1 -1
  38. data/app/models/resource_import_file.rb +62 -153
  39. data/app/views/agent_import_results/index.txt.erb +3 -0
  40. data/app/views/agent_relationship_types/index.html.erb +1 -1
  41. data/app/views/agent_relationship_types/show.html.erb +1 -1
  42. data/app/views/agent_relationships/_form.html.erb +1 -1
  43. data/app/views/agent_types/index.html.erb +1 -1
  44. data/app/views/agent_types/show.html.erb +1 -1
  45. data/app/views/agents/_agent.html.erb +1 -1
  46. data/app/views/agents/_agent_list.html.erb +2 -2
  47. data/app/views/agents/_form.html.erb +4 -4
  48. data/app/views/agents/_index_agent.html.erb +1 -1
  49. data/app/views/agents/_index_agent_merge_list.html.erb +1 -1
  50. data/app/views/agents/_index_expression.html.erb +2 -2
  51. data/app/views/agents/_index_manifestation.html.erb +2 -2
  52. data/app/views/agents/_index_work.html.erb +2 -2
  53. data/app/views/agents/index.atom.builder +1 -1
  54. data/app/views/agents/index.rss.builder +1 -1
  55. data/app/views/agents/show.html+phone.erb +2 -2
  56. data/app/views/agents/show.html.erb +2 -2
  57. data/app/views/carrier_types/index.html.erb +2 -2
  58. data/app/views/carrier_types/show.html.erb +3 -3
  59. data/app/views/content_types/index.html.erb +1 -1
  60. data/app/views/content_types/show.html.erb +1 -1
  61. data/app/views/countries/index.html.erb +1 -1
  62. data/app/views/countries/show.html.erb +1 -1
  63. data/app/views/create_types/index.html.erb +1 -1
  64. data/app/views/create_types/show.html.erb +1 -1
  65. data/app/views/creates/_form.html.erb +1 -1
  66. data/app/views/form_of_works/index.html.erb +1 -1
  67. data/app/views/form_of_works/show.html.erb +1 -1
  68. data/app/views/frequencies/index.html.erb +1 -1
  69. data/app/views/frequencies/show.html.erb +1 -1
  70. data/app/views/identifier_types/index.html.erb +1 -1
  71. data/app/views/identifier_types/show.html.erb +1 -1
  72. data/app/views/items/_form.html.erb +13 -33
  73. data/app/views/items/index.html+phone.erb +3 -3
  74. data/app/views/items/index.html.erb +3 -3
  75. data/app/views/items/show.html+phone.erb +5 -5
  76. data/app/views/items/show.html.erb +12 -27
  77. data/app/views/languages/index.html.erb +1 -1
  78. data/app/views/languages/show.html.erb +1 -1
  79. data/app/views/layouts/agents.html.erb +2 -2
  80. data/app/views/layouts/items.html.erb +1 -1
  81. data/app/views/layouts/manifestations.html.erb +4 -4
  82. data/app/views/licenses/index.html.erb +1 -1
  83. data/app/views/licenses/show.html.erb +1 -1
  84. data/app/views/manifestation_relationship_types/index.html.erb +1 -1
  85. data/app/views/manifestation_relationship_types/show.html.erb +1 -1
  86. data/app/views/manifestation_relationships/_form.html.erb +1 -1
  87. data/app/views/manifestations/_call_number.html.erb +3 -3
  88. data/app/views/manifestations/_export_detail.html.erb +0 -1
  89. data/app/views/manifestations/_export_list.html.erb +0 -1
  90. data/app/views/manifestations/_form.html.erb +5 -28
  91. data/app/views/manifestations/_identifier_fields.html.erb +1 -1
  92. data/app/views/manifestations/_manifestation.txt.erb +1 -1
  93. data/app/views/manifestations/_show_creators.html.erb +1 -1
  94. data/app/views/manifestations/_show_detail_librarian.html.erb +5 -25
  95. data/app/views/manifestations/_show_detail_user.html.erb +5 -13
  96. data/app/views/manifestations/_show_holding.html+phone.erb +3 -3
  97. data/app/views/manifestations/_show_holding.html.erb +2 -2
  98. data/app/views/manifestations/index.atom.builder +1 -1
  99. data/app/views/manifestations/index.opds.builder +1 -1
  100. data/app/views/manifestations/index.rdf.builder +1 -1
  101. data/app/views/manifestations/index.rss.builder +1 -1
  102. data/app/views/manifestations/index.txt.erb +1 -0
  103. data/app/views/manifestations/show.txt.erb +1 -0
  104. data/app/views/medium_of_performances/index.html.erb +1 -1
  105. data/app/views/medium_of_performances/show.html.erb +1 -1
  106. data/app/views/notifier/manifestation_info.en.text.erb +1 -1
  107. data/app/views/notifier/manifestation_info.ja.text.erb +1 -1
  108. data/app/views/picture_files/edit.html.erb +0 -4
  109. data/app/views/produce_types/index.html.erb +1 -1
  110. data/app/views/produce_types/show.html.erb +1 -1
  111. data/app/views/produces/_form.html.erb +1 -1
  112. data/app/views/realize_types/index.html.erb +1 -1
  113. data/app/views/realize_types/show.html.erb +1 -1
  114. data/app/views/realizes/_form.html.erb +1 -1
  115. data/app/views/resource_import_files/_results.html.erb +0 -6
  116. data/app/views/resource_import_files/new.html.erb +2 -2
  117. data/app/views/resource_import_results/index.html.erb +11 -0
  118. data/app/views/resource_import_results/index.txt.erb +3 -0
  119. data/app/views/series_statements/_form.html.erb +8 -6
  120. data/app/views/series_statements/show.html.erb +0 -12
  121. data/config/locales/translation_en.yml +1 -28
  122. data/config/locales/translation_ja.yml +3 -30
  123. data/config/routes.rb +0 -2
  124. data/db/migrate/20081027150907_create_picture_files.rb +2 -0
  125. data/db/migrate/20160319144230_create_issn_records.rb +11 -0
  126. data/db/migrate/20160506144040_create_isbn_records.rb +11 -0
  127. data/db/migrate/20170116134107_create_issn_record_and_manifestations.rb +11 -0
  128. data/db/migrate/20170116134120_create_isbn_record_and_manifestations.rb +11 -0
  129. data/db/migrate/20190102034126_create_doi_records.rb +13 -0
  130. data/db/migrate/20190311154610_create_periodicals.rb +10 -0
  131. data/db/migrate/20190312033839_create_periodical_and_manifestations.rb +11 -0
  132. data/db/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb +21 -0
  133. data/lib/enju_biblio/version.rb +1 -1
  134. data/lib/generators/enju_biblio/setup/setup_generator.rb +0 -2
  135. data/lib/generators/enju_biblio/setup/templates/db/fixtures/agent_relationship_types.yml +3 -3
  136. data/lib/generators/enju_biblio/setup/templates/db/fixtures/agent_types.yml +2 -4
  137. data/lib/generators/enju_biblio/setup/templates/db/fixtures/carrier_types.yml +8 -26
  138. data/lib/generators/enju_biblio/setup/templates/db/fixtures/content_types.yml +12 -24
  139. data/lib/generators/enju_biblio/setup/templates/db/fixtures/create_types.yml +4 -22
  140. data/lib/generators/enju_biblio/setup/templates/db/fixtures/form_of_works.yml +1 -1
  141. data/lib/generators/enju_biblio/setup/templates/db/fixtures/frequencies.yml +9 -18
  142. data/lib/generators/enju_biblio/setup/templates/db/fixtures/languages.yml +2 -4
  143. data/lib/generators/enju_biblio/setup/templates/db/fixtures/licenses.yml +2 -2
  144. data/lib/generators/enju_biblio/setup/templates/db/fixtures/manifestation_relationship_types.yml +2 -4
  145. data/lib/generators/enju_biblio/setup/templates/db/fixtures/medium_of_performances.yml +15 -0
  146. data/lib/generators/enju_biblio/setup/templates/db/fixtures/produce_types.yml +2 -19
  147. data/lib/generators/enju_biblio/setup/templates/db/fixtures/realize_types.yml +3 -21
  148. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_isbn_which_is_already_imported/assigns_a_newly_created_import_request_as_import_request.yml +121 -0
  149. data/spec/controllers/content_types_controller_spec.rb +1 -1
  150. data/spec/controllers/items_controller_spec.rb +1 -23
  151. data/spec/controllers/manifestations_controller_spec.rb +0 -49
  152. data/spec/dummy/app/helpers/application_helper.rb +1 -1
  153. data/spec/dummy/app/models/user.rb +4 -0
  154. data/spec/dummy/bin/bundle +1 -1
  155. data/spec/dummy/bin/setup +1 -3
  156. data/spec/dummy/bin/update +4 -2
  157. data/spec/dummy/bin/yarn +3 -3
  158. data/spec/dummy/config/application.rb +1 -2
  159. data/spec/dummy/config/database.yml +70 -9
  160. data/spec/dummy/config/initializers/assets.rb +2 -2
  161. data/spec/dummy/db/development.sqlite3 +0 -0
  162. data/spec/dummy/db/migrate/002_devise_create_users.rb +1 -0
  163. data/spec/dummy/db/migrate/113_create_events.rb +2 -4
  164. data/spec/dummy/db/migrate/154_create_messages.rb +4 -8
  165. data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +3 -3
  166. data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +2 -4
  167. data/spec/dummy/db/migrate/20090519203307_create_participates.rb +2 -4
  168. data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +2 -2
  169. data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +1 -0
  170. data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +1 -1
  171. data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +1 -1
  172. data/spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb +1 -1
  173. data/spec/dummy/db/migrate/20140524135607_create_bookmark_stat_transitions.rb +1 -1
  174. data/spec/dummy/db/migrate/20140720192418_add_default_library_id_to_event_import_file.rb +1 -1
  175. data/spec/dummy/db/migrate/20140812152348_create_event_export_files.rb +1 -1
  176. data/spec/dummy/db/migrate/20140812153137_create_event_export_file_transitions.rb +1 -1
  177. data/spec/dummy/db/migrate/20140814070854_add_default_event_category_id_to_event_import_file.rb +1 -1
  178. data/spec/dummy/db/migrate/20151128142913_create_places.rb +14 -0
  179. data/spec/dummy/db/migrate/20151201163718_add_place_id_to_event.rb +5 -0
  180. data/spec/dummy/db/migrate/20160703184258_add_most_recent_to_event_import_file_transitions.rb +9 -0
  181. data/spec/dummy/db/migrate/20160703184311_add_most_recent_to_event_export_file_transitions.rb +9 -0
  182. data/spec/dummy/db/migrate/20160813191533_add_book_jacket_source_to_library_group.rb +1 -1
  183. data/spec/dummy/db/migrate/20160813191820_add_screenshot_generator_to_library_group.rb +1 -1
  184. data/spec/dummy/db/migrate/20160815045420_add_most_recent_to_bookmark_stat_transitions.rb +9 -0
  185. data/spec/dummy/db/migrate/20170116150432_create_jpno_records.rb +10 -0
  186. data/spec/dummy/db/migrate/20171126072934_create_ndla_records.rb +10 -0
  187. data/spec/dummy/db/migrate/20180107162659_add_constraints_to_most_recent_for_message_transitions.rb +13 -0
  188. data/spec/dummy/db/migrate/20180107162711_add_constraints_to_most_recent_for_message_request_transitions.rb +13 -0
  189. data/spec/dummy/db/migrate/20180107164558_add_constraints_to_most_recent_for_event_import_file_transitions.rb +13 -0
  190. data/spec/dummy/db/migrate/20180107164617_add_constraints_to_most_recent_for_event_export_file_transitions.rb +13 -0
  191. data/spec/dummy/db/migrate/20180107172413_add_constraints_to_most_recent_for_bookmark_stat_transitions.rb +13 -0
  192. data/spec/dummy/db/migrate/20180709023035_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb +36 -0
  193. data/spec/dummy/db/migrate/20180709023036_add_missing_unique_indices.acts_as_taggable_on_engine.rb +26 -0
  194. data/spec/dummy/db/migrate/20180709023037_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +20 -0
  195. data/spec/dummy/db/migrate/20180709023038_add_missing_taggable_index.acts_as_taggable_on_engine.rb +15 -0
  196. data/spec/dummy/db/migrate/20180709023039_change_collation_for_tag_names.acts_as_taggable_on_engine.rb +15 -0
  197. data/spec/dummy/db/migrate/20180709023040_add_missing_indexes_on_taggings.acts_as_taggable_on_engine.rb +23 -0
  198. data/spec/dummy/db/migrate/20180709161346_add_created_at_to_tag.rb +6 -0
  199. data/spec/dummy/db/migrate/20181119170645_add_foreign_key_to_events_referencing_event_categories.rb +5 -0
  200. data/spec/dummy/db/migrate/20190501043418_create_ndl_bib_id_records.rb +10 -0
  201. data/spec/dummy/db/migrate/20190508160525_create_retains.rb +10 -0
  202. data/spec/dummy/db/migrate/20190630113817_add_display_name_translations_to_library_group.rb +12 -0
  203. data/spec/dummy/db/migrate/20190630115523_add_login_banner_translations_to_library_group.rb +6 -0
  204. data/spec/dummy/db/migrate/20190630151446_add_display_name_translations_to_role.rb +5 -0
  205. data/spec/dummy/db/migrate/20190630153136_add_display_name_translations_to_event.rb +6 -0
  206. data/spec/dummy/db/migrate/20190706052525_add_display_name_translations_to_circulation_status.rb +5 -0
  207. data/spec/dummy/db/schema.rb +335 -221
  208. data/spec/dummy/db/test.sqlite3 +0 -0
  209. data/spec/factories/create_types.rb +8 -7
  210. data/spec/factories/produce_types.rb +8 -7
  211. data/spec/factories/realize_types.rb +8 -7
  212. data/spec/factories/series_statement.rb +3 -4
  213. data/spec/fixtures/agent_relationship_types.yml +8 -7
  214. data/spec/fixtures/agent_types.yml +11 -10
  215. data/spec/fixtures/carrier_types.yml +16 -15
  216. data/spec/fixtures/content_types.yml +20 -31
  217. data/spec/fixtures/create_types.yml +12 -15
  218. data/spec/fixtures/creates.yml +0 -2
  219. data/spec/fixtures/form_of_works.yml +11 -10
  220. data/spec/fixtures/frequencies.yml +17 -25
  221. data/spec/fixtures/items.yml +11 -12
  222. data/spec/fixtures/languages.yml +11 -11
  223. data/spec/fixtures/libraries.yml +30 -30
  224. data/spec/fixtures/library_groups.yml +11 -6
  225. data/spec/fixtures/licenses.yml +8 -7
  226. data/spec/fixtures/manifestation_relationship_types.yml +12 -11
  227. data/spec/fixtures/manifestations.yml +0 -1
  228. data/spec/fixtures/medium_of_performances.yml +10 -9
  229. data/spec/fixtures/picture_files.yml +2 -0
  230. data/spec/fixtures/produce_types.yml +10 -11
  231. data/spec/fixtures/produces.yml +0 -2
  232. data/spec/fixtures/profiles.yml +8 -5
  233. data/spec/fixtures/realize_types.yml +11 -13
  234. data/spec/fixtures/realizes.yml +0 -2
  235. data/spec/fixtures/request_status_types.yml +14 -14
  236. data/spec/fixtures/request_types.yml +13 -13
  237. data/spec/fixtures/resource_export_files.yml +1 -1
  238. data/spec/fixtures/resource_import_results.yml +2 -2
  239. data/spec/fixtures/roles.yml +22 -5
  240. data/spec/fixtures/shelves.yml +16 -16
  241. data/spec/fixtures/user_groups.yml +12 -12
  242. data/spec/fixtures/user_has_roles.yml +3 -4
  243. data/spec/fixtures/users.yml +0 -3
  244. data/spec/models/agent_relationship_type_spec.rb +8 -7
  245. data/spec/models/agent_type_spec.rb +8 -7
  246. data/spec/models/carrier_type_spec.rb +12 -11
  247. data/spec/models/content_type_spec.rb +8 -7
  248. data/spec/models/create_type_spec.rb +8 -7
  249. data/spec/models/doi_record_spec.rb +19 -0
  250. data/spec/models/form_of_work_spec.rb +8 -7
  251. data/spec/models/frequency_spec.rb +8 -7
  252. data/spec/models/item_spec.rb +0 -7
  253. data/spec/models/language_spec.rb +10 -9
  254. data/spec/models/license_spec.rb +8 -7
  255. data/spec/models/manifestation_relationship_type_spec.rb +8 -7
  256. data/spec/models/manifestation_spec.rb +16 -24
  257. data/spec/models/medium_of_performance_spec.rb +8 -7
  258. data/spec/models/periodical_and_manifestation_spec.rb +17 -0
  259. data/spec/models/periodical_spec.rb +16 -0
  260. data/spec/models/picture_file_spec.rb +2 -0
  261. data/spec/models/produce_type_spec.rb +8 -7
  262. data/spec/models/realize_type_spec.rb +8 -7
  263. data/spec/models/resource_export_file_spec.rb +9 -62
  264. data/spec/models/resource_import_file_spec.rb +14 -44
  265. data/spec/rails_helper.rb +8 -4
  266. data/spec/system/manifestations_spec.rb +0 -30
  267. data/spec/views/items/index.html.erb_spec.rb +6 -7
  268. data/spec/views/manifestations/{index.txt.ruby_spec.rb → index.txt.erb_spec.rb} +1 -1
  269. data/spec/views/manifestations/{show.txt.ruby_spec.rb → show.txt.erb_spec.rb} +2 -2
  270. data/spec/views/resource_import_results/show.html.erb_spec.rb +1 -1
  271. metadata +129 -285
  272. data/app/controllers/item_custom_properties_controller.rb +0 -69
  273. data/app/controllers/manifestation_custom_properties_controller.rb +0 -69
  274. data/app/models/item_custom_property.rb +0 -18
  275. data/app/models/item_custom_value.rb +0 -17
  276. data/app/models/manifestation_custom_property.rb +0 -18
  277. data/app/models/manifestation_custom_value.rb +0 -17
  278. data/app/policies/item_custom_property_policy.rb +0 -21
  279. data/app/policies/manifestation_custom_property_policy.rb +0 -21
  280. data/app/views/agent_import_results/index.txt.ruby +0 -5
  281. data/app/views/item_custom_properties/_form.html.erb +0 -32
  282. data/app/views/item_custom_properties/edit.html.erb +0 -13
  283. data/app/views/item_custom_properties/index.html.erb +0 -43
  284. data/app/views/item_custom_properties/new.html.erb +0 -12
  285. data/app/views/item_custom_properties/show.html.erb +0 -28
  286. data/app/views/manifestation_custom_properties/_form.html.erb +0 -32
  287. data/app/views/manifestation_custom_properties/edit.html.erb +0 -13
  288. data/app/views/manifestation_custom_properties/index.html.erb +0 -43
  289. data/app/views/manifestation_custom_properties/new.html.erb +0 -12
  290. data/app/views/manifestation_custom_properties/show.html.erb +0 -28
  291. data/app/views/manifestations/index.txt.ruby +0 -7
  292. data/app/views/manifestations/show.json.jbuilder +0 -2
  293. data/app/views/manifestations/show.txt.ruby +0 -5
  294. data/app/views/resource_import_results/index.txt.ruby +0 -5
  295. data/db/migrate/20190818075603_add_memo_to_manifestation.rb +0 -5
  296. data/db/migrate/20190818075628_add_memo_to_item.rb +0 -5
  297. data/db/migrate/20200425072340_create_manifestation_custom_properties.rb +0 -12
  298. data/db/migrate/20200425072349_create_item_custom_properties.rb +0 -12
  299. data/db/migrate/20200425074758_create_manifestation_custom_values.rb +0 -12
  300. data/db/migrate/20200425074822_create_item_custom_values.rb +0 -12
  301. data/lib/generators/enju_biblio/setup/templates/db/fixtures/agents.yml +0 -19
  302. data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_import_custom_values.yml +0 -121
  303. data/spec/cassette_library/resource_import_results/index_txt_ruby/renders_a_list_of_resource_import_results.yml +0 -121
  304. data/spec/controllers/item_custom_properties_controller_spec.rb +0 -449
  305. data/spec/controllers/manifestation_custom_properties_controller_spec.rb +0 -449
  306. data/spec/dummy/db/migrate/20081117143156_create_inventory_files.rb +0 -18
  307. data/spec/dummy/db/migrate/20081117143455_create_inventories.rb +0 -17
  308. data/spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb +0 -15
  309. data/spec/dummy/db/migrate/20091202124834_create_versions.rb +0 -18
  310. data/spec/dummy/db/migrate/20100525171356_acts_as_taggable_on_migration.rb +0 -30
  311. data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +0 -5
  312. data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +0 -6
  313. data/spec/dummy/db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb +0 -5
  314. data/spec/dummy/db/migrate/20150421023923_create_identities.rb +0 -14
  315. data/spec/dummy/db/migrate/20151126005552_add_provider_to_identity.rb +0 -5
  316. data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +0 -18
  317. data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +0 -22
  318. data/spec/factories/item_custom_property.rb +0 -6
  319. data/spec/factories/item_custom_value.rb +0 -6
  320. data/spec/factories/manifestation_custom_property.rb +0 -6
  321. data/spec/factories/manifestation_custom_value.rb +0 -6
  322. data/spec/fixtures/carrier_type_has_checkout_types.yml +0 -31
  323. data/spec/fixtures/checkout_stat_has_manifestations.yml +0 -24
  324. data/spec/fixtures/checkout_stat_has_users.yml +0 -24
  325. data/spec/fixtures/checkout_types.yml +0 -34
  326. data/spec/fixtures/circulation_statuses.yml +0 -136
  327. data/spec/fixtures/inventory_files.yml +0 -40
  328. data/spec/fixtures/item_custom_properties.yml +0 -24
  329. data/spec/fixtures/manifestation_checkout_stats.yml +0 -29
  330. data/spec/fixtures/manifestation_custom_properties.yml +0 -24
  331. data/spec/fixtures/manifestation_reserve_stats.yml +0 -29
  332. data/spec/fixtures/reserve_stat_has_manifestations.yml +0 -24
  333. data/spec/fixtures/reserve_stat_has_users.yml +0 -24
  334. data/spec/fixtures/reserve_transitions.yml +0 -104
  335. data/spec/fixtures/reserves.yml +0 -143
  336. data/spec/fixtures/use_restrictions.yml +0 -93
  337. data/spec/fixtures/user_checkout_stats.yml +0 -28
  338. data/spec/fixtures/user_group_has_checkout_types.yml +0 -111
  339. data/spec/fixtures/user_reserve_stats.yml +0 -28
  340. data/spec/models/item_custom_property_spec.rb +0 -18
  341. data/spec/models/item_custom_value_spec.rb +0 -17
  342. data/spec/models/manifestation_custom_property_spec.rb +0 -18
  343. data/spec/models/manifestation_custom_value_spec.rb +0 -17
  344. data/spec/requests/item_custom_properties_spec.rb +0 -129
  345. data/spec/requests/manifestation_custom_properties_spec.rb +0 -129
  346. data/spec/routing/item_custom_properties_routing_spec.rb +0 -38
  347. data/spec/routing/manifestation_custom_properties_routing_spec.rb +0 -38
  348. data/spec/system/items_spec.rb +0 -115
  349. data/spec/system/series_statements_spec.rb +0 -16
  350. data/spec/views/agent_import_results/index.html.erb_spec.rb +0 -29
  351. data/spec/views/agent_import_results/index.txt.ruby_spec.rb +0 -20
  352. data/spec/views/agent_import_results/show.html.erb_spec.rb +0 -24
  353. data/spec/views/item_custom_properties/edit.html.erb_spec.rb +0 -21
  354. data/spec/views/item_custom_properties/index.html.erb_spec.rb +0 -25
  355. data/spec/views/item_custom_properties/new.html.erb_spec.rb +0 -21
  356. data/spec/views/item_custom_properties/show.html.erb_spec.rb +0 -16
  357. data/spec/views/manifestation_custom_properties/edit.html.erb_spec.rb +0 -21
  358. data/spec/views/manifestation_custom_properties/index.html.erb_spec.rb +0 -25
  359. data/spec/views/manifestation_custom_properties/new.html.erb_spec.rb +0 -21
  360. data/spec/views/manifestation_custom_properties/show.html.erb_spec.rb +0 -16
  361. data/spec/views/manifestations/show.json.jbuilder_spec.rb +0 -16
  362. data/spec/views/resource_import_results/index.txt.ruby_spec.rb +0 -22
@@ -12,11 +12,12 @@ end
12
12
  #
13
13
  # Table name: create_types
14
14
  #
15
- # id :integer not null, primary key
16
- # name :string
17
- # display_name :text
18
- # note :text
19
- # position :integer
20
- # created_at :datetime
21
- # updated_at :datetime
15
+ # id :integer not null, primary key
16
+ # name :string
17
+ # display_name :text
18
+ # note :text
19
+ # position :integer
20
+ # created_at :datetime
21
+ # updated_at :datetime
22
+ # display_name_translations :jsonb not null
22
23
  #
@@ -12,11 +12,12 @@ end
12
12
  #
13
13
  # Table name: produce_types
14
14
  #
15
- # id :integer not null, primary key
16
- # name :string
17
- # display_name :text
18
- # note :text
19
- # position :integer
20
- # created_at :datetime
21
- # updated_at :datetime
15
+ # id :integer not null, primary key
16
+ # name :string
17
+ # display_name :text
18
+ # note :text
19
+ # position :integer
20
+ # created_at :datetime
21
+ # updated_at :datetime
22
+ # display_name_translations :jsonb not null
22
23
  #
@@ -12,11 +12,12 @@ end
12
12
  #
13
13
  # Table name: realize_types
14
14
  #
15
- # id :integer not null, primary key
16
- # name :string
17
- # display_name :text
18
- # note :text
19
- # position :integer
20
- # created_at :datetime
21
- # updated_at :datetime
15
+ # id :integer not null, primary key
16
+ # name :string
17
+ # display_name :text
18
+ # note :text
19
+ # position :integer
20
+ # created_at :datetime
21
+ # updated_at :datetime
22
+ # display_name_translations :jsonb not null
22
23
  #
@@ -2,10 +2,9 @@ FactoryBot.define do
2
2
  factory :series_statement do |f|
3
3
  f.sequence(:original_title){|n| "series_statement_#{n}"}
4
4
  end
5
- factory :series_statement_serial, class: SeriesStatement do
6
- sequence(:original_title){|n| "series_statement_serial_#{n}" }
7
- sequence(:creator_string){|n| "シリーズの著者 #{n}" }
5
+ factory :series_statement_serial, class: SeriesStatement do |f|
6
+ f.sequence(:original_title){|n| "series_statement_serial_#{n}" }
8
7
  #f.root_manifestation_id{FactoryBot.create(:manifestation_serial).id}
9
- series_master{true}
8
+ f.series_master{true}
10
9
  end
11
10
  end
@@ -23,11 +23,12 @@ agent_relationship_type_00003:
23
23
  #
24
24
  # Table name: agent_relationship_types
25
25
  #
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
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
  #
@@ -2,21 +2,21 @@
2
2
  agent_type_00001:
3
3
  id: 1
4
4
  name: person
5
- display_name: Person
5
+ display_name_translations: {"en": "Person", "ja": "個人"}
6
6
  note:
7
7
  position: 1
8
8
 
9
9
  agent_type_00002:
10
10
  id: 2
11
11
  name: corporate_body
12
- display_name: CorporateBody
12
+ display_name_translations: {"en": "CorporateBody", "ja": "団体"}
13
13
  note:
14
14
  position: 2
15
15
 
16
16
  agent_type_00003:
17
17
  id: 3
18
18
  name: conference
19
- display_name: Conference
19
+ display_name_translations: {"en": "Conference", "ja": "会議"}
20
20
  note:
21
21
  position: 3
22
22
 
@@ -24,11 +24,12 @@ agent_type_00003:
24
24
  #
25
25
  # Table name: agent_types
26
26
  #
27
- # id :integer not null, primary key
28
- # name :string not null
29
- # display_name :text
30
- # note :text
31
- # position :integer
32
- # created_at :datetime
33
- # updated_at :datetime
27
+ # id :integer not null, primary key
28
+ # name :string not null
29
+ # display_name :text
30
+ # note :text
31
+ # position :integer
32
+ # created_at :datetime
33
+ # updated_at :datetime
34
+ # display_name_translations :jsonb not null
34
35
  #
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  carrier_type_00001:
3
3
  name: volume
4
- display_name: Volume
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
- display_name: Audio disc
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
- display_name: Video disc
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
- display_name: online_resource
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 :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 :integer
53
- # attachment_updated_at :datetime
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
  #
@@ -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
  #
@@ -2,32 +2,28 @@
2
2
 
3
3
  author:
4
4
  name: author
5
- display_name: "en: Author\r\n\
6
- ja: 著者"
5
+ display_name_translations: {"en: Author", "ja": "著者"}
7
6
  note:
8
7
  position: 1
9
8
  id: 1
10
9
 
11
10
  editor:
12
11
  name: editor
13
- display_name: "en: Editor\r\n\
14
- ja: 編者"
12
+ display_name_translations: {"en": "Editor", "ja": "編者"}
15
13
  note:
16
14
  position: 2
17
15
  id: 2
18
16
 
19
17
  translator:
20
18
  name: translator
21
- display_name: "en: Translator\r\n\
22
- ja: 訳者"
19
+ display_name_translations: {"en": "Translator", "ja": "訳者"}
23
20
  note:
24
21
  position: 3
25
22
  id: 3
26
23
 
27
24
  illustrator:
28
25
  name: illustrator
29
- display_name: "en: Illustrator\r\n\
30
- ja: 作画者"
26
+ display_name_translations: {"en": "Illustrator", "ja": "作画者"}
31
27
  note:
32
28
  position: 4
33
29
  id: 4
@@ -36,11 +32,12 @@ illustrator:
36
32
  #
37
33
  # Table name: create_types
38
34
  #
39
- # id :integer not null, primary key
40
- # name :string
41
- # display_name :text
42
- # note :text
43
- # position :integer
44
- # created_at :datetime
45
- # updated_at :datetime
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
46
43
  #
@@ -2,7 +2,6 @@
2
2
  create_00001:
3
3
  updated_at: 2007-12-13 19:56:07.002082 +09:00
4
4
  agent_id: 1
5
- create_type_id: 1
6
5
  id: 1
7
6
  work_id: 1
8
7
  position: 1
@@ -10,7 +9,6 @@ create_00001:
10
9
  create_00002:
11
10
  updated_at: 2007-12-13 19:56:48.538796 +09:00
12
11
  agent_id: 1
13
- create_type_id: 1
14
12
  id: 2
15
13
  work_id: 2
16
14
  position: 1
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  form_of_work_00001:
3
3
  name: (not specified)
4
- display_name: (not specified)
4
+ display_name_translations: {"en": "(not specified)", "ja": "不明"}
5
5
  updated_at: 2008-01-08 15:35:55.188771 +09:00
6
6
  id: 1
7
7
  note: ""
@@ -9,7 +9,7 @@ form_of_work_00001:
9
9
  position: 1
10
10
  form_of_work_00002:
11
11
  name: idea
12
- display_name: idea
12
+ display_name_translations: {"en": "idea", "ja": "idea"}
13
13
  updated_at: 2008-01-08 15:35:55.188771 +09:00
14
14
  id: 2
15
15
  note: ""
@@ -17,7 +17,7 @@ form_of_work_00002:
17
17
  position: 2
18
18
  form_of_work_00003:
19
19
  name: test
20
- display_name: test
20
+ display_name_translations: {"en": "test", "ja": "test"}
21
21
  updated_at: 2008-01-08 15:35:55.188771 +09:00
22
22
  id: 3
23
23
  note: ""
@@ -28,11 +28,12 @@ form_of_work_00003:
28
28
  #
29
29
  # Table name: form_of_works
30
30
  #
31
- # id :integer not null, primary key
32
- # name :string not null
33
- # display_name :text
34
- # note :text
35
- # position :integer
36
- # created_at :datetime
37
- # updated_at :datetime
31
+ # id :integer not null, primary key
32
+ # name :string not null
33
+ # display_name :text
34
+ # note :text
35
+ # position :integer
36
+ # created_at :datetime
37
+ # updated_at :datetime
38
+ # display_name_translations :jsonb not null
38
39
  #
@@ -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
  #