enju_leaf 1.3.4 → 2.0.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (326) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -4
  3. data/app/assets/javascripts/enju_leaf/application.js +12 -0
  4. data/app/assets/javascripts/{autocomplete_agent.js → enju_leaf/autocomplete_agent.js} +0 -0
  5. data/app/assets/javascripts/{menu.js → enju_leaf/menu.js} +0 -0
  6. data/app/assets/javascripts/enju_leaf/mobile.js +5 -0
  7. data/app/assets/javascripts/{portlets.js → enju_leaf/portlets.js} +0 -0
  8. data/app/assets/javascripts/{select_locale.js → enju_leaf/select_locale.js} +0 -0
  9. data/app/assets/stylesheets/{enju_leaf.css → enju_leaf/application.scss} +6 -6
  10. data/app/assets/stylesheets/{enju.css → enju_leaf/enju.css} +0 -0
  11. data/app/assets/stylesheets/{enju_mobile.css → enju_leaf/enju_mobile.css} +0 -0
  12. data/app/assets/stylesheets/{enju_print.css → enju_leaf/enju_print.css} +0 -0
  13. data/app/assets/stylesheets/{mobile.css → enju_leaf/mobile.css} +1 -1
  14. data/app/assets/stylesheets/{pagination.css → enju_leaf/pagination.css} +0 -0
  15. data/app/assets/stylesheets/{portlets.css → enju_leaf/portlets.css} +0 -0
  16. data/app/assets/stylesheets/{print.css → enju_leaf/print.css} +1 -1
  17. data/app/assets/stylesheets/{scaffold_modified.css → enju_leaf/scaffold_modified.css} +0 -0
  18. data/app/views/devise/registrations/edit.html.erb +1 -1
  19. data/app/views/layouts/application.html.erb +4 -4
  20. data/app/views/page/_include.html.erb +1 -1
  21. data/app/views/page/_index.html+phone.erb +1 -1
  22. data/app/views/page/_menu.html.erb +1 -1
  23. data/app/views/page/_mobile.html+phone.erb +2 -2
  24. data/app/views/page/about.en.html.erb +4 -4
  25. data/app/views/page/about.ja.html.erb +4 -4
  26. data/app/views/page/advanced_search.html.erb +5 -5
  27. data/app/views/page/configuration.html.erb +0 -2
  28. data/app/views/page/opensearch.xml.builder +2 -2
  29. data/config/locales/en.yml +0 -4
  30. data/config/locales/ja.yml +0 -4
  31. data/lib/enju_leaf/engine.rb +1 -1
  32. data/lib/enju_leaf/version.rb +1 -1
  33. data/lib/generators/enju_leaf/quick_install/quick_install_generator.rb +5 -2
  34. data/lib/generators/enju_leaf/setup/setup_generator.rb +22 -17
  35. data/lib/generators/enju_leaf/setup/templates/Procfile +2 -2
  36. data/lib/generators/enju_leaf/setup/templates/config/schedule.rb +2 -2
  37. data/lib/generators/enju_leaf/setup/templates/db/seeds.rb +0 -4
  38. data/lib/tasks/enju_leaf_tasks.rake +2 -5
  39. data/spec/acceptance/profile.rb +9 -0
  40. data/spec/controllers/page_controller_spec.rb +1 -1
  41. data/spec/dummy/app/assets/javascripts/application.js +3 -0
  42. data/spec/dummy/app/assets/stylesheets/application.css +1 -0
  43. data/spec/dummy/app/controllers/application_controller.rb +0 -1
  44. data/spec/dummy/bin/bundle +1 -1
  45. data/spec/dummy/bin/setup +1 -3
  46. data/spec/dummy/bin/update +4 -2
  47. data/spec/dummy/bin/yarn +3 -3
  48. data/spec/dummy/config.ru +3 -2
  49. data/spec/dummy/config/application.rb +3 -2
  50. data/spec/dummy/config/boot.rb +4 -9
  51. data/spec/dummy/config/cable.yml +10 -0
  52. data/spec/dummy/config/database.yml +70 -9
  53. data/spec/dummy/config/environments/development.rb +9 -2
  54. data/spec/dummy/config/environments/production.rb +7 -4
  55. data/spec/dummy/config/environments/test.rb +7 -1
  56. data/spec/dummy/config/initializers/assets.rb +1 -2
  57. data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
  58. data/spec/dummy/config/locales/en.yml +30 -2
  59. data/spec/dummy/config/puma.rb +34 -0
  60. data/spec/dummy/config/routes.rb +2 -58
  61. data/spec/dummy/config/spring.rb +6 -0
  62. data/spec/dummy/config/storage.yml +34 -0
  63. data/spec/dummy/db/development.sqlite3 +0 -0
  64. data/spec/dummy/db/migrate/005_create_manifestations.rb +3 -3
  65. data/spec/dummy/db/migrate/127_create_use_restrictions.rb +3 -7
  66. data/spec/dummy/db/migrate/132_create_circulation_statuses.rb +3 -7
  67. data/spec/dummy/db/migrate/149_create_message_templates.rb +3 -8
  68. data/spec/dummy/db/migrate/154_create_messages.rb +6 -14
  69. data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +4 -4
  70. data/spec/dummy/db/migrate/20081025083323_create_countries.rb +6 -5
  71. data/spec/dummy/db/migrate/20081025083905_create_languages.rb +1 -0
  72. data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +1 -1
  73. data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
  74. data/spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb +2 -4
  75. data/spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +1 -1
  76. data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +1 -1
  77. data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +1 -1
  78. data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +1 -0
  79. data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +1 -0
  80. data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +1 -0
  81. data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
  82. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +1 -1
  83. data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +1 -1
  84. data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +4 -5
  85. data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +4 -9
  86. data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +4 -9
  87. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +1 -1
  88. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +1 -1
  89. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +1 -1
  90. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +1 -1
  91. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +1 -1
  92. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +1 -1
  93. data/spec/dummy/db/migrate/20160319144230_create_issn_records.rb +11 -0
  94. data/spec/dummy/db/migrate/20160506144040_create_isbn_records.rb +11 -0
  95. data/spec/dummy/db/migrate/20160703185015_add_most_recent_to_message_transitions.rb +1 -1
  96. data/spec/dummy/db/migrate/20160813191533_add_book_jacket_source_to_library_group.rb +1 -1
  97. data/spec/dummy/db/migrate/20160813191820_add_screenshot_generator_to_library_group.rb +1 -1
  98. data/spec/dummy/db/migrate/20160814165332_add_most_recent_to_message_request_transitions.rb +9 -0
  99. data/spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb +11 -0
  100. data/spec/dummy/db/migrate/20170114174536_add_profile_id_to_user.rb +5 -0
  101. data/spec/dummy/db/migrate/20170116134107_create_issn_record_and_manifestations.rb +11 -0
  102. data/spec/dummy/db/migrate/20170116134120_create_isbn_record_and_manifestations.rb +11 -0
  103. data/spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb +5 -0
  104. data/spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb +13 -0
  105. data/spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb +13 -0
  106. data/spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb +13 -0
  107. data/spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb +13 -0
  108. data/spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb +13 -0
  109. data/spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb +13 -0
  110. data/spec/dummy/db/migrate/20180107162659_add_constraints_to_most_recent_for_message_transitions.rb +13 -0
  111. data/spec/dummy/db/migrate/20180107162711_add_constraints_to_most_recent_for_message_request_transitions.rb +13 -0
  112. data/spec/dummy/db/migrate/20181030072731_add_not_null_to_position_on_carrier_type.rb +14 -0
  113. data/spec/dummy/db/migrate/20190102034126_create_doi_records.rb +13 -0
  114. data/spec/dummy/db/migrate/20190208135957_create_active_storage_tables.active_storage.rb +27 -0
  115. data/spec/dummy/db/migrate/20190630113817_add_display_name_translations_to_library_group.rb +12 -0
  116. data/spec/dummy/db/migrate/20190630115523_add_login_banner_translations_to_library_group.rb +6 -0
  117. data/spec/dummy/db/migrate/20190630151446_add_display_name_translations_to_role.rb +5 -0
  118. data/spec/dummy/db/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb +21 -0
  119. data/spec/dummy/db/schema.rb +265 -135
  120. data/spec/dummy/db/test.sqlite3 +0 -0
  121. data/spec/dummy/node_modules/jquery/AUTHORS.txt +278 -0
  122. data/spec/dummy/node_modules/jquery/LICENSE.txt +36 -0
  123. data/spec/dummy/node_modules/jquery/README.md +65 -0
  124. data/spec/dummy/node_modules/jquery/bower.json +14 -0
  125. data/spec/dummy/node_modules/jquery/dist/jquery.js +9814 -0
  126. data/spec/dummy/node_modules/jquery/dist/jquery.min.js +4 -0
  127. data/spec/dummy/node_modules/jquery/dist/jquery.min.map +1 -0
  128. data/spec/dummy/node_modules/jquery/external/sizzle/LICENSE.txt +36 -0
  129. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.js +2143 -0
  130. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  131. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  132. data/spec/dummy/node_modules/jquery/package.json +84 -0
  133. data/spec/dummy/node_modules/jquery/src/ajax.js +845 -0
  134. data/spec/dummy/node_modules/jquery/src/ajax/jsonp.js +100 -0
  135. data/spec/dummy/node_modules/jquery/src/ajax/load.js +83 -0
  136. data/spec/dummy/node_modules/jquery/src/ajax/parseJSON.js +13 -0
  137. data/spec/dummy/node_modules/jquery/src/ajax/parseXML.js +27 -0
  138. data/spec/dummy/node_modules/jquery/src/ajax/script.js +68 -0
  139. data/spec/dummy/node_modules/jquery/src/ajax/var/location.js +3 -0
  140. data/spec/dummy/node_modules/jquery/src/ajax/var/nonce.js +5 -0
  141. data/spec/dummy/node_modules/jquery/src/ajax/var/rquery.js +3 -0
  142. data/spec/dummy/node_modules/jquery/src/ajax/xhr.js +167 -0
  143. data/spec/dummy/node_modules/jquery/src/attributes.js +11 -0
  144. data/spec/dummy/node_modules/jquery/src/attributes/attr.js +142 -0
  145. data/spec/dummy/node_modules/jquery/src/attributes/classes.js +177 -0
  146. data/spec/dummy/node_modules/jquery/src/attributes/prop.js +125 -0
  147. data/spec/dummy/node_modules/jquery/src/attributes/support.js +36 -0
  148. data/spec/dummy/node_modules/jquery/src/attributes/val.js +177 -0
  149. data/spec/dummy/node_modules/jquery/src/callbacks.js +232 -0
  150. data/spec/dummy/node_modules/jquery/src/core.js +494 -0
  151. data/spec/dummy/node_modules/jquery/src/core/access.js +65 -0
  152. data/spec/dummy/node_modules/jquery/src/core/init.js +134 -0
  153. data/spec/dummy/node_modules/jquery/src/core/parseHTML.js +41 -0
  154. data/spec/dummy/node_modules/jquery/src/core/ready.js +103 -0
  155. data/spec/dummy/node_modules/jquery/src/core/var/rsingleTag.js +5 -0
  156. data/spec/dummy/node_modules/jquery/src/css.js +502 -0
  157. data/spec/dummy/node_modules/jquery/src/css/addGetHookIf.js +24 -0
  158. data/spec/dummy/node_modules/jquery/src/css/adjustCSS.js +65 -0
  159. data/spec/dummy/node_modules/jquery/src/css/curCSS.js +60 -0
  160. data/spec/dummy/node_modules/jquery/src/css/defaultDisplay.js +72 -0
  161. data/spec/dummy/node_modules/jquery/src/css/hiddenVisibleSelectors.js +18 -0
  162. data/spec/dummy/node_modules/jquery/src/css/showHide.js +48 -0
  163. data/spec/dummy/node_modules/jquery/src/css/support.js +121 -0
  164. data/spec/dummy/node_modules/jquery/src/css/var/cssExpand.js +3 -0
  165. data/spec/dummy/node_modules/jquery/src/css/var/getStyles.js +15 -0
  166. data/spec/dummy/node_modules/jquery/src/css/var/isHidden.js +16 -0
  167. data/spec/dummy/node_modules/jquery/src/css/var/rmargin.js +3 -0
  168. data/spec/dummy/node_modules/jquery/src/css/var/rnumnonpx.js +5 -0
  169. data/spec/dummy/node_modules/jquery/src/css/var/swap.js +24 -0
  170. data/spec/dummy/node_modules/jquery/src/data.js +187 -0
  171. data/spec/dummy/node_modules/jquery/src/data/Data.js +200 -0
  172. data/spec/dummy/node_modules/jquery/src/data/var/acceptData.js +18 -0
  173. data/spec/dummy/node_modules/jquery/src/data/var/dataPriv.js +5 -0
  174. data/spec/dummy/node_modules/jquery/src/data/var/dataUser.js +5 -0
  175. data/spec/dummy/node_modules/jquery/src/deferred.js +158 -0
  176. data/spec/dummy/node_modules/jquery/src/deprecated.js +32 -0
  177. data/spec/dummy/node_modules/jquery/src/dimensions.js +54 -0
  178. data/spec/dummy/node_modules/jquery/src/effects.js +629 -0
  179. data/spec/dummy/node_modules/jquery/src/effects/Tween.js +121 -0
  180. data/spec/dummy/node_modules/jquery/src/effects/animatedSelector.js +13 -0
  181. data/spec/dummy/node_modules/jquery/src/event.js +711 -0
  182. data/spec/dummy/node_modules/jquery/src/event/ajax.js +20 -0
  183. data/spec/dummy/node_modules/jquery/src/event/alias.js +27 -0
  184. data/spec/dummy/node_modules/jquery/src/event/focusin.js +53 -0
  185. data/spec/dummy/node_modules/jquery/src/event/support.js +9 -0
  186. data/spec/dummy/node_modules/jquery/src/event/trigger.js +183 -0
  187. data/spec/dummy/node_modules/jquery/src/exports/amd.js +24 -0
  188. data/spec/dummy/node_modules/jquery/src/exports/global.js +26 -0
  189. data/spec/dummy/node_modules/jquery/src/intro.js +44 -0
  190. data/spec/dummy/node_modules/jquery/src/jquery.js +37 -0
  191. data/spec/dummy/node_modules/jquery/src/manipulation.js +481 -0
  192. data/spec/dummy/node_modules/jquery/src/manipulation/_evalUrl.js +20 -0
  193. data/spec/dummy/node_modules/jquery/src/manipulation/buildFragment.js +102 -0
  194. data/spec/dummy/node_modules/jquery/src/manipulation/getAll.js +21 -0
  195. data/spec/dummy/node_modules/jquery/src/manipulation/setGlobalEval.js +20 -0
  196. data/spec/dummy/node_modules/jquery/src/manipulation/support.js +33 -0
  197. data/spec/dummy/node_modules/jquery/src/manipulation/var/rcheckableType.js +3 -0
  198. data/spec/dummy/node_modules/jquery/src/manipulation/var/rscriptType.js +3 -0
  199. data/spec/dummy/node_modules/jquery/src/manipulation/var/rtagName.js +3 -0
  200. data/spec/dummy/node_modules/jquery/src/manipulation/wrapMap.js +27 -0
  201. data/spec/dummy/node_modules/jquery/src/offset.js +218 -0
  202. data/spec/dummy/node_modules/jquery/src/outro.js +2 -0
  203. data/spec/dummy/node_modules/jquery/src/queue.js +143 -0
  204. data/spec/dummy/node_modules/jquery/src/queue/delay.js +22 -0
  205. data/spec/dummy/node_modules/jquery/src/selector-native.js +211 -0
  206. data/spec/dummy/node_modules/jquery/src/selector-sizzle.js +14 -0
  207. data/spec/dummy/node_modules/jquery/src/selector.js +1 -0
  208. data/spec/dummy/node_modules/jquery/src/serialize.js +125 -0
  209. data/spec/dummy/node_modules/jquery/src/traversing.js +175 -0
  210. data/spec/dummy/node_modules/jquery/src/traversing/findFilter.js +100 -0
  211. data/spec/dummy/node_modules/jquery/src/traversing/var/dir.js +20 -0
  212. data/spec/dummy/node_modules/jquery/src/traversing/var/rneedsContext.js +6 -0
  213. data/spec/dummy/node_modules/jquery/src/traversing/var/siblings.js +15 -0
  214. data/spec/dummy/node_modules/jquery/src/var/arr.js +3 -0
  215. data/spec/dummy/node_modules/jquery/src/var/class2type.js +5 -0
  216. data/spec/dummy/node_modules/jquery/src/var/concat.js +5 -0
  217. data/spec/dummy/node_modules/jquery/src/var/document.js +3 -0
  218. data/spec/dummy/node_modules/jquery/src/var/documentElement.js +5 -0
  219. data/spec/dummy/node_modules/jquery/src/var/hasOwn.js +5 -0
  220. data/spec/dummy/node_modules/jquery/src/var/indexOf.js +5 -0
  221. data/spec/dummy/node_modules/jquery/src/var/pnum.js +3 -0
  222. data/spec/dummy/node_modules/jquery/src/var/push.js +5 -0
  223. data/spec/dummy/node_modules/jquery/src/var/rcssNum.js +7 -0
  224. data/spec/dummy/node_modules/jquery/src/var/rnotwhite.js +3 -0
  225. data/spec/dummy/node_modules/jquery/src/var/slice.js +5 -0
  226. data/spec/dummy/node_modules/jquery/src/var/support.js +5 -0
  227. data/spec/dummy/node_modules/jquery/src/var/toString.js +5 -0
  228. data/spec/dummy/node_modules/jquery/src/wrap.js +79 -0
  229. data/spec/dummy/package.json +5 -0
  230. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141214-44379-1fdvvdb.txt +8 -0
  231. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141225-67268-nerc4o.txt +8 -0
  232. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20150123-14447-1lf8lc5.txt +8 -0
  233. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141214-44379-1exy9mg.txt +8 -0
  234. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58343-ztcmne.txt +8 -0
  235. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58490-hnqvxg.txt +8 -0
  236. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58609-5iyax7.txt +8 -0
  237. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58776-1e9gg8b.txt +8 -0
  238. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58951-zfxzc6.txt +8 -0
  239. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59095-l3yd2t.txt +8 -0
  240. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59220-1mgboh1.txt +8 -0
  241. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59533-1ie807t.txt +8 -0
  242. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59716-m8uy9h.txt +8 -0
  243. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59834-1fcv3ir.txt +8 -0
  244. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59932-14y6v8m.txt +8 -0
  245. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60422-ksg8ww.txt +8 -0
  246. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60507-j2u5ra.txt +8 -0
  247. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60619-2j2h65.txt +8 -0
  248. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60822-1xdqwcc.txt +8 -0
  249. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60925-4d4ce1.txt +8 -0
  250. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-61046-y4nspn.txt +8 -0
  251. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-62053-1qsuqzd.txt +8 -0
  252. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-62204-3quf6j.txt +8 -0
  253. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-62472-w05wkf.txt +8 -0
  254. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67112-1viizrs.txt +8 -0
  255. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67232-11tcrfq.txt +8 -0
  256. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67342-1bajplt.txt +8 -0
  257. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67475-gmnmq4.txt +8 -0
  258. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-74670-mxvkc6.txt +8 -0
  259. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-74954-1m11avl.txt +8 -0
  260. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75054-1ac0xmz.txt +8 -0
  261. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75135-1r3z1p.txt +8 -0
  262. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75289-18xm9sx.txt +8 -0
  263. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75372-1ab1rn4.txt +8 -0
  264. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75612-14gavh8.txt +8 -0
  265. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75709-xgjjja.txt +8 -0
  266. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75832-uej6ye.txt +8 -0
  267. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75905-13kbauv.txt +8 -0
  268. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76001-13yt1kv.txt +8 -0
  269. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76158-1pitds8.txt +8 -0
  270. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76526-q0rb2j.txt +8 -0
  271. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76848-ya95k2.txt +8 -0
  272. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-88475-165899e.txt +8 -0
  273. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-89902-paupo2.txt +8 -0
  274. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-90001-1eg9w1e.txt +8 -0
  275. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-90157-bcu8m7.txt +8 -0
  276. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141221-7985-u6s6l1.txt +8 -0
  277. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141224-44711-1amcibm.txt +8 -0
  278. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141224-44828-ap6n8d.txt +8 -0
  279. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-48701-14hbzl1.txt +8 -0
  280. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-49875-1pc6esj.txt +8 -0
  281. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-64608-1wo1bpq.txt +8 -0
  282. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-64763-daej3l.txt +8 -0
  283. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65000-1a7srlh.txt +8 -0
  284. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65196-ggad1c.txt +8 -0
  285. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65273-tt5ev2.txt +8 -0
  286. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65424-1d17hts.txt +8 -0
  287. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65662-1gqvlj3.txt +8 -0
  288. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65725-1qpz2tm.txt +8 -0
  289. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65807-t7cfln.txt +8 -0
  290. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65962-161pm01.txt +8 -0
  291. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-66069-h9ftv6.txt +8 -0
  292. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-66327-hsz0j4.txt +8 -0
  293. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-67268-hqxt6v.txt +8 -0
  294. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150119-54567-1exwx4r.txt +8 -0
  295. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150120-80886-1whqn2s.txt +8 -0
  296. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150120-81115-hlvwc4.txt +8 -0
  297. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150121-86495-navftm.txt +8 -0
  298. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150121-86986-894a3i.txt +8 -0
  299. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150122-4492-vaml86.txt +8 -0
  300. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150123-14447-gy0ver.txt +8 -0
  301. data/spec/dummy/yarn.lock +8 -0
  302. data/spec/factories/agent.rb +1 -1
  303. data/spec/factories/library.rb +1 -1
  304. data/spec/factories/profile.rb +3 -3
  305. data/spec/factories/user.rb +25 -31
  306. data/spec/fixtures/carrier_types.yml +23 -24
  307. data/spec/fixtures/content_types.yml +78 -22
  308. data/spec/fixtures/libraries.yml +28 -31
  309. data/spec/fixtures/library_groups.yml +33 -16
  310. data/spec/fixtures/manifestations.yml +32 -27
  311. data/spec/fixtures/roles.yml +11 -12
  312. data/spec/fixtures/shelves.yml +14 -15
  313. data/spec/fixtures/user_groups.yml +9 -16
  314. data/spec/fixtures/user_has_roles.yml +2 -1
  315. data/spec/rails_helper.rb +11 -1
  316. data/spec/system/page_spec.rb +35 -0
  317. data/spec/views/page/configuration.html.erb_spec.rb +1 -1
  318. metadata +479 -93
  319. data/app/assets/javascripts/enju_leaf.js +0 -12
  320. data/app/assets/javascripts/mobile.js +0 -4
  321. data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +0 -25
  322. data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +0 -22
  323. data/vendor/assets/javascripts/jquery.colorbox.js +0 -1105
  324. data/vendor/assets/javascripts/jquery.powertip.js +0 -1395
  325. data/vendor/assets/stylesheets/colorbox.css +0 -70
  326. data/vendor/assets/stylesheets/jquery.powertip.css +0 -105
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ca08f8d46ba44a4dc2fedd7e4e603330e53365bc35f21d61bbf06fa38caaf36
4
- data.tar.gz: 9ba8e77dacd2653bc5dda6bdec6a194cb5511944f83bc962656426c6f4ac8bad
3
+ metadata.gz: 602199f5d16aa5bc86247f221e820011187839881c295106b587ae4815f5cd8c
4
+ data.tar.gz: ebaaa6802346f19b15474f180e43285f038eceab1f623095e01c3533cf582dc1
5
5
  SHA512:
6
- metadata.gz: 86b2152db5e578eb2b1d94ee9359e20560b5277e6e65f9a03113da23b658c1611d89688a737659334ad1db625abab96dac7a3783cc3da0c58af34c3ceb434a05
7
- data.tar.gz: 7bec97e965c36e73e5ddbe036bce8ef704dd962ea86f7e956d3b2fd150e89d1bf8d6aaad505e0dd77451cc639c6f9a87781ebc51b3e24c119b585a3e48a9cc55
6
+ metadata.gz: b175016f211a158b551f7c85be496af6508dec760cfa254872844704a4ae5749b0eb8b993b0f1be101e57b55a6599b412797c1b26314b63527ff573b59bc6526
7
+ data.tar.gz: 5d64877150bb883919ae2720b5a7ff51fdcbf61e6458b55d936204af79cda1680bf7432d2e63a31260668efa67b87be2660b69e159ee24807d9689b36411227d
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Next-L Enju Leaf
2
- [![Travis CI](https://travis-ci.com/next-l/enju_leaf.svg?branch=1.3)](https://travis-ci.com/next-l/enju_leaf)
3
- [![Coverage Status](https://coveralls.io/repos/github/next-l/enju_leaf/badge.svg?branch=1.3)](https://coveralls.io/github/next-l/enju_leaf?branch=1.3)
4
- [![security](https://hakiri.io/github/next-l/enju_leaf/1.3.svg)](https://hakiri.io/github/next-l/enju_leaf/1.3)
2
+ [![CircleCI](https://circleci.com/gh/next-l/enju_leaf/tree/2.x.svg?style=svg)](https://circleci.com/gh/next-l/enju_leaf/tree/2.x)
3
+ [![Coverage Status](https://coveralls.io/repos/github/next-l/enju_leaf/badge.svg?branch=2.x)](https://coveralls.io/github/next-l/enju_leaf?branch=2.x)
5
4
 
6
5
  Next-L Enju Leaf は、[Project Next-L](https://www.next-l.jp) で開発している図書館管理システムです。
7
6
 
@@ -35,4 +34,3 @@ library system maintained by Japanese volunteers interested in libraries.
35
34
  ## 製作者・貢献者 (Authors and contributors)
36
35
  * [TANABE, Kosuke](https://github.com/nabeta) ([@nabeta](https://twitter.com/nabeta))
37
36
  * [Project Next-L](https://www.next-l.jp) ([@ProjectNextL](https://twitter.com/ProjectNextL))
38
-
@@ -0,0 +1,12 @@
1
+ //= require jquery.ui.all
2
+ //= require jquery-colorbox/jquery.colorbox
3
+ //= require jquery.highlight
4
+ //= require jquery.shortcut
5
+ //= require jquery.cookie
6
+ //= require jquery.ui.menubar
7
+ //= require enju_leaf/select_locale
8
+ //= require enju_leaf/portlets
9
+ //= require enju_leaf/menu
10
+ //= require jquery-powertip/dist/jquery.powertip
11
+ //= require cocoon
12
+ //= require enju_leaf/autocomplete_agent
@@ -0,0 +1,5 @@
1
+ //= require rails-ujs
2
+ //= require jquery/dist/jquery
3
+ //= require jquery-migrate/dist/jquery-migrate
4
+ //= require jquery.mobile-1.4.5
5
+ //= require jquery-colorbox/jquery.colorbox
@@ -1,10 +1,10 @@
1
1
  /*
2
2
  *= require html5-doctor-reset-stylesheet.min
3
- *= require scaffold_modified
4
- *= require enju
5
- *= require colorbox
6
- *= require pagination
7
- *= require jquery.powertip
3
+ *= require enju_leaf/scaffold_modified
4
+ *= require enju_leaf/enju
5
+ *= require jquery-colorbox/example1/colorbox
6
+ *= require enju_leaf/pagination
7
+ *= require jquery-powertip/dist/css/jquery.powertip
8
8
  *= require jquery.ui.button
9
9
  *= require jquery.ui.tabs
10
10
  *= require jquery.ui.menu
@@ -12,5 +12,5 @@
12
12
  *= require jquery.ui.menubar
13
13
  *= require jquery.ui.autocomplete
14
14
  *= require jquery.ui.theme
15
- *= require portlets
15
+ *= require enju_leaf/portlets
16
16
  */
@@ -4,5 +4,5 @@
4
4
  * the top of the compiled file, but it's generally better to create a new file per style scope.
5
5
  *= require_self
6
6
  *= require jquery.mobile-1.4.5
7
- *= require enju_mobile
7
+ *= require enju_leaf/enju_mobile
8
8
  */
@@ -3,5 +3,5 @@
3
3
  * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
4
  * the top of the compiled file, but it's generally better to create a new file per style scope.
5
5
  *= require_self
6
- *= require enju_print
6
+ *= require enju_leaf/enju_print
7
7
  */
@@ -2,7 +2,7 @@
2
2
  <h2 class="title"><%= t('activerecord.models.registration') %></h2>
3
3
  <div id="content_list">
4
4
 
5
- <%= form_for(resource, as: resource_name, url: user_registration_path, html: { method: :put }) do |f| %>
5
+ <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
6
6
  <%= devise_error_messages! %>
7
7
 
8
8
  <div class="field">
@@ -5,11 +5,11 @@
5
5
  <%= render 'page/include' %>
6
6
  <title><%= title(controller.controller_name) %></title>
7
7
  <%- if controller.controller_name == 'manifestations' and controller.action_name == 'index' -%>
8
- <%= auto_discovery_link_tag(:rss, url_for(params.permit.merge(format: 'rss', page: nil, commit: nil, only_path: true)), title: (t('manifestation.library_group_manifestation', library_group_name: @library_group.display_name.localize) + " (RSS)")) %>
9
- <%= auto_discovery_link_tag(:atom, url_for(params.permit.merge(format: 'atom', page: nil, commit: nil, only_path: true)), title: (t('manifestation.library_group_manifestation', library_group_name: @library_group.display_name.localize) + " (Atom)")) %>
8
+ <%= auto_discovery_link_tag(:rss, url_for(params.permit.merge(format: 'rss', page: nil, commit: nil, only_path: true)), title: (t('manifestation.library_group_manifestation', library_group_name: @library_group.display_name) + " (RSS)")) %>
9
+ <%= auto_discovery_link_tag(:atom, url_for(params.permit.merge(format: 'atom', page: nil, commit: nil, only_path: true)), title: (t('manifestation.library_group_manifestation', library_group_name: @library_group.display_name) + " (Atom)")) %>
10
10
  <% if defined?(EnjuNews) %>
11
- <%= auto_discovery_link_tag(:rss, news_posts_url(format: :rss, locale: @locale), title: (t('news_post.library_group_news_post', library_group_name: @library_group.display_name.localize) + " (RSS)")) %>
12
- <%= auto_discovery_link_tag(:atom, news_posts_url(format: :atom, locale: @locale), title: (t('news_post.library_group_news_post', library_group_name: @library_group.display_name.localize) + " (Atom)")) %>
11
+ <%= auto_discovery_link_tag(:rss, news_posts_url(format: :rss, locale: @locale), title: (t('news_post.library_group_news_post', library_group_name: @library_group.display_name) + " (RSS)")) %>
12
+ <%= auto_discovery_link_tag(:atom, news_posts_url(format: :atom, locale: @locale), title: (t('news_post.library_group_news_post', library_group_name: @library_group.display_name) + " (Atom)")) %>
13
13
  <% end %>
14
14
  <% end %>
15
15
  <%= book_jacket_header(@library_group.book_jacket_source) %>
@@ -1,5 +1,5 @@
1
1
  <%= stylesheet_link_tag 'application' %>
2
- <%= stylesheet_link_tag 'print', media: :print %>
2
+ <%= stylesheet_link_tag 'enju_leaf/print', media: :print %>
3
3
  <%= javascript_include_tag 'application' %>
4
4
  <%= csrf_meta_tag %>
5
5
 
@@ -1,5 +1,5 @@
1
1
  <div data-role="header">
2
- <h1><%= @library_group.display_name.localize %></h1>
2
+ <h1><%= @library_group.display_name %></h1>
3
3
  </div>
4
4
  <div data-role="content">
5
5
  <h2 class="title">
@@ -91,7 +91,7 @@
91
91
  <li><%= link_to t('page.calendar'), events_path(mode: 'calendar') -%></li>
92
92
  <li><%= link_to t('event.all'), events_path -%></li>
93
93
  <%- @library_group.real_libraries.each do |library| -%>
94
- <li><%= link_to library.display_name.localize, events_path(library_id: library.name) -%></li>
94
+ <li><%= link_to library.display_name, events_path(library_id: library.name) -%></li>
95
95
  <%- end -%>
96
96
  <%- if policy(Event).create? -%>
97
97
  <li><%= link_to t('page.import'), new_event_import_file_path -%></li>
@@ -1,3 +1,3 @@
1
1
  <meta name="viewport" content="width=device-width, initial-scale=1" />
2
- <%= javascript_include_tag 'mobile' %>
3
- <%= stylesheet_link_tag 'mobile' %>
2
+ <%= javascript_include_tag 'enju_leaf/mobile' %>
3
+ <%= stylesheet_link_tag 'enju_leaf/mobile' %>
@@ -29,8 +29,8 @@
29
29
  </li>
30
30
  <li>This system has been using bibliographic data from the following services and databases.
31
31
  <ul>
32
- <li><a href="https://iss.ndl.go.jp/">NDL Search</a></li>
33
- <li><a href="https://crd.ndl.go.jp/jp/public/">National Diet Library Collaborative Reference Database</a></li>
32
+ <li><a href="http://iss.ndl.go.jp/">NDL Search</a></li>
33
+ <li><a href="http://crd.ndl.go.jp/jp/public/">National Diet Library Collaborative Reference Database</a></li>
34
34
  </ul>
35
35
  </li>
36
36
  <li>This system has been using book jacket images from the following service.
@@ -51,8 +51,8 @@
51
51
 
52
52
  <div id="submenu" class="ui-corner-all ui-widget-content">
53
53
  <ul>
54
- <li><a href="https://www.next-l.jp/">Project Next-L</a></li>
54
+ <li><a href="http://www.next-l.jp/">Project Next-L</a></li>
55
55
  <li><a href="https://github.com/next-l/enju_leaf">this project on GitHub</a></li>
56
- <li><a href="https://www.next-l.jp/?page=%A5%E1%A1%BC%A5%EA%A5%F3%A5%B0%A5%EA%A5%B9%A5%C8">Mailing list</a> (in Japanese)</li>
56
+ <li><a href="http://www.next-l.jp/?page=%A5%E1%A1%BC%A5%EA%A5%F3%A5%B0%A5%EA%A5%B9%A5%C8">Mailing list</a> (in Japanese)</li>
57
57
  </ul>
58
58
  </div>
@@ -28,8 +28,8 @@
28
28
  </li>
29
29
  <li>このシステムは、以下のサービスやデータベースから得た書誌データを利用しています。
30
30
  <ul>
31
- <li><a href="https://iss.ndl.go.jp/">国立国会図書館サーチ (NDLサーチ)</a></li>
32
- <li><a href="https://crd.ndl.go.jp/jp/public/">国立国会図書館レファレンス協同データベース</a></li>
31
+ <li><a href="http://iss.ndl.go.jp/">国立国会図書館サーチ (NDLサーチ)</a></li>
32
+ <li><a href="http://crd.ndl.go.jp/jp/public/">国立国会図書館レファレンス協同データベース</a></li>
33
33
  </ul>
34
34
  </li>
35
35
  <li>このシステムは、以下のサービスから得た書影を利用しています。
@@ -50,8 +50,8 @@
50
50
 
51
51
  <div id="submenu" class="ui-corner-all ui-widget-content">
52
52
  <ul>
53
- <li><a href="https://www.next-l.jp/">Project Next-L</a></li>
53
+ <li><a href="http://www.next-l.jp/">Project Next-L</a></li>
54
54
  <li><a href="https://github.com/next-l/enju_leaf">GitHubでのプロジェクトのページ</a></li>
55
- <li><a href="https://www.next-l.jp/?page=%A5%E1%A1%BC%A5%EA%A5%F3%A5%B0%A5%EA%A5%B9%A5%C8">メーリングリスト</a></li>
55
+ <li><a href="http://www.next-l.jp/?page=%A5%E1%A1%BC%A5%EA%A5%F3%A5%B0%A5%EA%A5%B9%A5%C8">メーリングリスト</a></li>
56
56
  </ul>
57
57
  </div>
@@ -11,9 +11,9 @@
11
11
  <ul>
12
12
  <% @libraries.sort_by{|l| l.position }.each do |library| %>
13
13
  <li>
14
- <%= label_tag :"#{library.name}_shelf", library.display_name.localize %>:
14
+ <%= label_tag :"#{library.name}_shelf", library.display_name %>:
15
15
  <% Shelf.where(library_id: library.id).sort_by{|s| s.position }.each do |shelf| %>
16
- <label><%= check_box_tag "#{library.name}_shelf[]", shelf.name %><%= shelf.display_name.localize %></label>
16
+ <label><%= check_box_tag "#{library.name}_shelf[]", shelf.name %><%= shelf.display_name %></label>
17
17
  <% end %>
18
18
  <span class="check_all"><%= check_all_button "#{library.name}_shelf_", t('advanced_search.check_all') %></span>
19
19
  </li>
@@ -26,7 +26,7 @@
26
26
  <td><%= label_tag :library_adv, t('activerecord.models.library') %>:</td>
27
27
  <td>
28
28
  <% @libraries.sort_by{|l| l.position }.each do |library| %>
29
- <label><%= check_box_tag "library_adv[]", library.name %><%= library.display_name.localize %></label>
29
+ <label><%= check_box_tag "library_adv[]", library.name %><%= library.display_name %></label>
30
30
  <% end %>
31
31
  <div class="check_all"><%= check_all_button "library_adv_", t('advanced_search.check_all') %></div>
32
32
  </td>
@@ -75,7 +75,7 @@
75
75
  <td><label><%= t('activerecord.models.classification') %>:</label></td>
76
76
  <td>
77
77
  <%- types = ClassificationType.all.select{|t| ! t.classifications.empty? } -%>
78
- <%= select_tag 'classification_type', options_from_collection_for_select( types, :id, Proc.new{|e| e.display_name.localize } ) -%>
78
+ <%= select_tag 'classification_type', options_from_collection_for_select( types, :id, Proc.new{|e| e.display_name } ) -%>
79
79
  <%= text_field_tag 'classification' -%>
80
80
  </td>
81
81
  </tr>
@@ -106,7 +106,7 @@
106
106
  <select id="library_top" name="library">
107
107
  <option value=""><%= t('advanced_search.all_libraries') -%></option>
108
108
  <%- @libraries.each do |library| -%>
109
- <option value="<%= library.name -%>"><%= library.display_name.localize -%></option>
109
+ <option value="<%= library.name -%>"><%= library.display_name -%></option>
110
110
  <%- end -%>
111
111
  </select>
112
112
  </td>
@@ -125,8 +125,6 @@
125
125
  <li><%= link_to t('activerecord.models.realize_type'), realize_types_path -%></li>
126
126
  <li><%= link_to t('activerecord.models.produce_type'), produce_types_path -%></li>
127
127
  -->
128
- <li><%= link_to t('activerecord.models.manifestation_custom_property'), manifestation_custom_properties_path -%></li>
129
- <li><%= link_to t('activerecord.models.item_custom_property'), item_custom_properties_path -%></li>
130
128
  </ul>
131
129
  </div>
132
130
  </div>
@@ -2,8 +2,8 @@ xml.instruct! :xml, :version=>"1.0"
2
2
  xml.OpenSearchDescription(
3
3
  'xmlns' => "http://a9.com/-/spec/opensearch/1.1/",
4
4
  'xmlns:moz' => 'http://www.mozilla.org/2006/browser/search/'){
5
- xml.ShortName @library_group.display_name.localize
6
- xml.Description @library_group.display_name.localize
5
+ xml.ShortName @library_group.display_name
6
+ xml.Description @library_group.display_name
7
7
  xml.Tags 'Library Catalog'
8
8
  xml.Contact @library_group.user.email
9
9
  xml.Url type: 'text/html', template: "#{manifestations_url}?query={searchTerms}"
@@ -9,10 +9,6 @@ en:
9
9
  time:
10
10
  am: am
11
11
  formats:
12
- default: ! '%a, %d %b %Y %H:%M:%S %z'
13
- long: ! '%B %d, %Y %H:%M'
14
- short: ! '%d %b %H:%M'
15
12
  only_date: "%B %d, %Y"
16
13
  only_year_and_month: "%m, %Y"
17
14
  only_month: "%m"
18
- pm: pm
@@ -9,10 +9,6 @@ ja:
9
9
  time:
10
10
  am: 午前
11
11
  formats:
12
- default: ! '%Y/%m/%d %H:%M:%S'
13
- long: ! '%Y年%m月%d日(%a) %H時%M分%S秒 %z'
14
- short: ! '%y/%m/%d %H:%M'
15
12
  only_date: "%Y年%m月%d日"
16
13
  only_year_and_month: "%Y年%m月"
17
14
  only_month: "%m月"
18
- pm: 午後
@@ -6,7 +6,7 @@ require 'jquery-ui-rails'
6
6
  module EnjuLeaf
7
7
  class Engine < ::Rails::Engine
8
8
  initializer :assets do |config|
9
- Rails.application.config.assets.precompile += %w( mobile.js mobile.css print.css )
9
+ Rails.application.config.assets.precompile += %w( enju_leaf/mobile.js enju_leaf/mobile.css enju_leaf/print.css )
10
10
  end
11
11
  end
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module EnjuLeaf
2
- VERSION = "1.3.4".freeze
2
+ VERSION = "2.0.0.beta.1"
3
3
  end
@@ -10,14 +10,17 @@ class EnjuLeaf::QuickInstallGenerator < Rails::Generators::Base
10
10
  rake("enju_biblio_engine:install:migrations")
11
11
  rake("enju_manifestation_viewer_engine:install:migrations")
12
12
  rake("enju_subject_engine:install:migrations")
13
- rake("enju_inventory_engine:install:migrations")
14
13
  if !ENV['ENJU_SKIP_CONFIG']
15
14
  generate("enju_seed:setup")
16
15
  generate("enju_library:setup")
17
16
  generate("enju_biblio:setup")
18
17
  generate("enju_circulation:setup")
19
18
  generate("enju_subject:setup")
20
- generate("enju_inventory:setup")
21
19
  end
20
+ rake("enju_ndl_engine:install:migrations")
21
+ append_to_file "app/models/user.rb", <<EOS.strip_heredoc
22
+ Manifestation.include(EnjuManifestationViewer::EnjuManifestation)
23
+ Manifestation.include(EnjuNdl::EnjuManifestation)
24
+ EOS
22
25
  end
23
26
  end
@@ -11,10 +11,9 @@ class EnjuLeaf::SetupGenerator < Rails::Generators::Base
11
11
  <<"EOS"
12
12
  config.i18n.available_locales = [:en, :ja]
13
13
  config.i18n.enforce_available_locales = true
14
+ config.active_job.queue_adapter = :resque
14
15
  config.i18n.default_locale = :ja
15
- config.i18n.fallbacks = [I18n.default_locale]
16
16
  config.time_zone = 'Tokyo'
17
- config.active_job.queue_adapter = :resque
18
17
  EOS
19
18
  end
20
19
  gsub_file 'config/schedule.rb', /\/path\/to\/enju_leaf/, Rails.root.to_s
@@ -31,13 +30,23 @@ EOS
31
30
  end
32
31
  inject_into_class "app/controllers/application_controller.rb", ApplicationController do
33
32
  <<"EOS"
33
+ include EnjuLibrary::Controller
34
+ include EnjuBiblio::Controller
35
+
34
36
  include Pundit
35
- before_action :set_paper_trail_whodunnit
36
37
  after_action :verify_authorized, unless: :devise_controller?
37
38
  EOS
38
39
  end
40
+ rake("active_storage:install")
41
+ rake("sitemap:install")
39
42
  generate("devise:install")
40
43
  generate("devise", "User")
44
+ gsub_file 'app/models/user.rb', /, :registerable,$/, ', #:registerable,'
45
+ gsub_file 'app/models/user.rb', /, :validatable$/, <<EOS
46
+ , #:validatable,
47
+ :lockable, lock_strategy: :none, unlock_strategy: :none
48
+ include EnjuSeed::EnjuUser
49
+ EOS
41
50
  generate("sunspot_rails:install")
42
51
  generate("kaminari:config")
43
52
  generate("simple_form:install")
@@ -84,14 +93,15 @@ EOS
84
93
 
85
94
  inject_into_file "app/assets/javascripts/application.js", after: /\/\/= require rails-ujs$\n/ do
86
95
  <<"EOS"
87
- //= require jquery2
88
- //= require enju_leaf
96
+ //= require jquery/dist/jquery
97
+ //= require jquery-migrate/dist/jquery-migrate
98
+ //= require enju_leaf/application
89
99
  EOS
90
100
  end
91
101
  inject_into_file "app/assets/stylesheets/application.css", after: / *= require_self$\n/ do
92
- " *= require enju_leaf\n"
102
+ " *= require enju_leaf/application\n"
93
103
  end
94
- inject_into_file "config.ru", after: /require_relative 'config\/environment'$\n/ do
104
+ inject_into_file "config.ru", after: /require ::File.expand_path\(\'..\/config\/environment\', __FILE__\)$\n/ do
95
105
  <<"EOS"
96
106
  require 'rack/protection'
97
107
  use Rack::Protection, except: [:escaped_params, :json_csrf, :http_origin, :session_hijacking, :remote_token]
@@ -102,18 +112,13 @@ EOS
102
112
  gsub_file 'config/environments/production.rb',
103
113
  /config.serve_static_assets = false$/,
104
114
  "config.serve_static_assets = true"
105
- if Rails::VERSION::STRING =~ /^5\.1/
106
- gsub_file 'config/environments/production.rb',
107
- /# config.cache_store = :mem_cache_store$/,
108
- "config.cache_store = :redis_store, ENV['REDIS_URL'], { expires_in: 1.day }"
109
- else
110
- gsub_file 'config/environments/production.rb',
111
- /# config.cache_store = :mem_cache_store$/,
112
- "config.cache_store = :redis_cache_store, { url: ENV['REDIS_URL'], expires_in: 1.day }"
113
- end
114
-
115
+ gsub_file 'config/environments/production.rb',
116
+ /# config.cache_store = :mem_cache_store$/,
117
+ "config.cache_store = :redis_cache_store, { url: ENV['REDIS_URL'], expires_in: 1.day }"
115
118
  gsub_file 'config/environments/production.rb',
116
119
  /# config.assets.precompile \+= %w\( search.js \)$/,
117
120
  "config.assets.precompile += %w( mobile.js mobile.css print.css )"
121
+ remove_file "public/favicon.ico"
122
+ copy_file("../../../../../app/assets/images/enju_leaf/favicon.ico", "#{Rails.root.to_s}/public/favicon.ico")
118
123
  end
119
124
  end
@@ -1,3 +1,3 @@
1
1
  solr: bundle exec rake sunspot:solr:run
2
- resque: bundle exec rake environment resque:work QUEUE=enju_leaf,mailers TERM_CHILD=1
3
- web: bundle exec rails s -p 3000
2
+ resque: bundle exec rake environment resque:work QUEUE=default,mailers TERM_CHILD=1
3
+ web: bundle exec rails s
@@ -23,11 +23,11 @@ set :path, '/path/to/enju_leaf'
23
23
  set :environment, :development
24
24
  set :output, "#{path}/log/cron_log.log"
25
25
 
26
- every 1.day, :at => '0:00 am' do
26
+ every 1.day, at: '0:00 am' do
27
27
  runner "User.lock_expired_users"
28
28
  end
29
29
 
30
- every 1.day, :at => '3:00 am' do
30
+ every 1.day, at: '3:00 am' do
31
31
  rake "sunspot:reindex"
32
32
  # rake "sitemap:refresh:no_ping"
33
33
  end
@@ -31,10 +31,6 @@ profile.save!
31
31
  system_user.profile = profile
32
32
  system_user.save!
33
33
  LibraryGroup.first.update!(user: system_user)
34
- UserGroup.order(created_at: :desc).first.update!(
35
- number_of_day_to_notify_overdue: 7,
36
- number_of_day_to_notify_due_date: 3
37
- )
38
34
 
39
35
  user = User.new
40
36
  user.username = username