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

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.