enju_flower 0.1.0.pre16 → 0.1.0.pre17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. checksums.yaml +4 -4
  2. data/app/helpers/manifestations_helper.rb +17 -17
  3. data/app/views/manifestations/_attachment_file.html.erb +1 -1
  4. data/app/views/manifestations/_carrier_type_facet.html.erb +1 -1
  5. data/app/views/manifestations/_classification_facet.html.erb +2 -2
  6. data/app/views/manifestations/_holding.html.erb +1 -1
  7. data/app/views/manifestations/_index_form.html.erb +2 -2
  8. data/app/views/manifestations/_index_form_contributor.html.erb +2 -2
  9. data/app/views/manifestations/_index_form_creator.html.erb +2 -2
  10. data/app/views/manifestations/_index_form_item.html.erb +2 -2
  11. data/app/views/manifestations/_index_form_manifestation.html.erb +2 -2
  12. data/app/views/manifestations/_index_form_parent.html.erb +9 -3
  13. data/app/views/manifestations/_index_form_publisher.html.erb +2 -2
  14. data/app/views/manifestations/_index_form_series_statement.html.erb +3 -3
  15. data/app/views/manifestations/_language_facet.html.erb +2 -2
  16. data/app/views/manifestations/_library_facet.html.erb +1 -1
  17. data/app/views/manifestations/_list.html.erb +2 -2
  18. data/app/views/manifestations/_manifestation.html.erb +53 -51
  19. data/app/views/manifestations/_manifestation_list.html.erb +2 -2
  20. data/app/views/manifestations/_paginate_id_link.html.erb +2 -2
  21. data/app/views/manifestations/_pickup.html.erb +5 -5
  22. data/app/views/manifestations/_pub_year_facet.html.erb +1 -1
  23. data/app/views/manifestations/_question_list.html.erb +1 -1
  24. data/app/views/manifestations/_reservable_facet.html.erb +2 -2
  25. data/app/views/manifestations/_search_engine.html.erb +1 -1
  26. data/app/views/manifestations/_show_creators.html.erb +2 -2
  27. data/app/views/manifestations/_show_creators.mobile.erb +2 -2
  28. data/app/views/manifestations/_show_detail_librarian.html.erb +14 -10
  29. data/app/views/manifestations/_show_detail_user.html.erb +14 -10
  30. data/app/views/manifestations/_show_holding.html.erb +12 -10
  31. data/app/views/manifestations/_show_holding.mobile.erb +1 -1
  32. data/app/views/manifestations/_show_index.html.erb +7 -5
  33. data/app/views/manifestations/_show_index.mobile.erb +3 -3
  34. data/app/views/manifestations/_show_reservation.html.erb +5 -5
  35. data/app/views/manifestations/_show_series_index.html.erb +6 -3
  36. data/app/views/manifestations/_submenu_parent.html.erb +1 -1
  37. data/app/views/manifestations/_tab_list.html.erb +3 -3
  38. data/app/views/manifestations/_tab_menu.html.erb +1 -1
  39. data/app/views/manifestations/_title.html.erb +9 -6
  40. data/app/views/manifestations/_title.mobile.erb +6 -6
  41. data/app/views/manifestations/index.atom.builder +3 -3
  42. data/app/views/manifestations/index.html.erb +15 -14
  43. data/app/views/manifestations/index.mobile.erb +3 -3
  44. data/app/views/manifestations/index.mods.builder +1 -1
  45. data/app/views/manifestations/index.opds.builder +5 -5
  46. data/app/views/manifestations/index.rdf.builder +4 -4
  47. data/app/views/manifestations/index.rss.builder +6 -6
  48. data/app/views/manifestations/index.sru.builder +1 -1
  49. data/app/views/manifestations/show.html.erb +14 -14
  50. data/app/views/manifestations/show.mobile.erb +3 -3
  51. data/app/views/manifestations/show.mods.builder +1 -1
  52. data/app/views/manifestations/show.rdf.builder +1 -1
  53. data/app/views/page/_footer.html.erb +3 -2
  54. data/lib/enju_flower/version.rb +1 -1
  55. data/spec/controllers/manifestations_controller_spec.rb +22 -22
  56. data/spec/dummy/db/development.sqlite3 +0 -0
  57. data/spec/dummy/db/migrate/001_create_agents.rb +0 -1
  58. data/spec/dummy/db/migrate/{20111201155513_add_devise_to_users.rb → 002_devise_create_users.rb} +18 -16
  59. data/spec/dummy/db/migrate/005_create_manifestations.rb +4 -16
  60. data/spec/dummy/db/migrate/006_create_items.rb +0 -3
  61. data/spec/dummy/db/migrate/035_create_reserves.rb +0 -1
  62. data/spec/dummy/db/migrate/041_create_roles.rb +13 -0
  63. data/spec/dummy/db/migrate/077_create_user_groups.rb +3 -7
  64. data/spec/dummy/db/migrate/080_create_library_groups.rb +0 -1
  65. data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +17 -0
  66. data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +14 -0
  67. data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +0 -2
  68. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +1 -3
  69. data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +0 -1
  70. data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +0 -1
  71. data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +0 -1
  72. data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +0 -1
  73. data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +0 -4
  74. data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +0 -1
  75. data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +9 -0
  76. data/spec/dummy/db/migrate/{20111201163718_create_user_has_roles.rb → 20100606065209_create_user_has_roles.rb} +2 -0
  77. data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +0 -2
  78. data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
  79. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +12 -0
  80. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
  81. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +1 -11
  82. data/spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +6 -0
  83. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +18 -0
  84. data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +11 -0
  85. data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
  86. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +14 -0
  87. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +14 -0
  88. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +14 -0
  89. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +14 -0
  90. data/spec/dummy/db/migrate/20140524135607_create_bookmark_stat_transitions.rb +14 -0
  91. data/spec/dummy/db/migrate/20140524142813_add_taggings_count_to_tag.rb +5 -0
  92. data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +11 -0
  93. data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
  94. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +14 -0
  95. data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +5 -0
  96. data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
  97. data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
  98. data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +11 -0
  99. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +14 -0
  100. data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
  101. data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +5 -0
  102. data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +5 -0
  103. data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
  104. data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
  105. data/spec/dummy/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb +12 -0
  106. data/spec/dummy/db/migrate/20140810091231_add_checkout_icalendar_token_to_profile.rb +6 -0
  107. data/spec/dummy/db/migrate/20140810091417_add_save_checkout_history_to_profile.rb +5 -0
  108. data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +5 -0
  109. data/spec/dummy/db/migrate/20140812093836_add_share_bookmarks_to_profile.rb +5 -0
  110. data/spec/dummy/db/schema.rb +250 -252
  111. data/spec/dummy/db/test.sqlite3 +0 -0
  112. data/spec/dummy/solr/default/data/index/_1x.fdt +0 -0
  113. data/spec/dummy/solr/default/data/index/_1x.fnm +0 -0
  114. data/spec/dummy/solr/default/data/index/_1x.nvm +0 -0
  115. data/spec/dummy/solr/default/data/index/{_cx.si → _1x.si} +0 -0
  116. data/spec/dummy/solr/default/data/index/{_cx_Lucene41_0.tim → _1x_Lucene41_0.tim} +0 -0
  117. data/spec/dummy/solr/default/data/index/_1x_Lucene41_0.tip +0 -0
  118. data/spec/dummy/solr/default/data/index/_1y.fdt +0 -0
  119. data/spec/dummy/solr/default/data/index/_1y.fnm +0 -0
  120. data/spec/dummy/solr/default/data/index/_1y.nvm +0 -0
  121. data/spec/dummy/solr/default/data/index/{_cy.si → _1y.si} +0 -0
  122. data/spec/dummy/solr/default/data/index/{_cy_Lucene41_0.tim → _1y_Lucene41_0.tim} +0 -0
  123. data/spec/dummy/solr/default/data/index/{_cy_Lucene41_0.tip → _1y_Lucene41_0.tip} +0 -0
  124. data/spec/dummy/solr/default/data/index/_1z.fdt +0 -0
  125. data/spec/dummy/solr/default/data/index/_1z.fnm +0 -0
  126. data/spec/dummy/solr/default/data/index/_1z.nvm +0 -0
  127. data/spec/dummy/solr/default/data/index/{_cz.si → _1z.si} +0 -0
  128. data/spec/dummy/solr/default/data/index/{_cz_Lucene41_0.tim → _1z_Lucene41_0.tim} +0 -0
  129. data/spec/dummy/solr/default/data/index/{_cz_Lucene41_0.tip → _1z_Lucene41_0.tip} +0 -0
  130. data/spec/dummy/solr/default/data/index/segments.gen +0 -0
  131. data/spec/dummy/solr/default/data/index/segments_2p +0 -0
  132. data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000591 → tlog.0000000000000000093} +0 -0
  133. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000094 +0 -0
  134. data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000593 → tlog.0000000000000000095} +0 -0
  135. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  136. data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
  137. data/spec/factories/profile.rb +10 -0
  138. data/spec/factories/user.rb +0 -13
  139. data/spec/fixtures/import_requests.yml +0 -3
  140. data/spec/fixtures/items.yml +46 -21
  141. data/spec/fixtures/library_groups.yml +0 -2
  142. data/spec/fixtures/manifestations.yml +0 -2
  143. data/spec/fixtures/profiles.yml +98 -0
  144. data/spec/fixtures/reserve_transitions.yml +88 -0
  145. data/spec/fixtures/resource_import_files.yml +0 -4
  146. data/spec/fixtures/users.yml +0 -55
  147. metadata +158 -140
  148. data/spec/dummy/db/migrate/113_create_events.rb +0 -23
  149. data/spec/dummy/db/migrate/114_create_event_categories.rb +0 -16
  150. data/spec/dummy/db/migrate/149_create_message_templates.rb +0 -18
  151. data/spec/dummy/db/migrate/154_create_messages.rb +0 -24
  152. data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +0 -20
  153. data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +0 -27
  154. data/spec/dummy/db/migrate/20081117143156_create_inventory_files.rb +0 -18
  155. data/spec/dummy/db/migrate/20081117143455_create_inventories.rb +0 -17
  156. data/spec/dummy/db/migrate/20090519203307_create_participates.rb +0 -17
  157. data/spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb +0 -15
  158. data/spec/dummy/db/migrate/20100527113752_create_delayed_jobs.rb +0 -21
  159. data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +0 -15
  160. data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
  161. data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +0 -9
  162. data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +0 -13
  163. data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +0 -11
  164. data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
  165. data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +0 -9
  166. data/spec/dummy/db/migrate/20111201121844_create_roles.rb +0 -12
  167. data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -8
  168. data/spec/dummy/db/migrate/20120105101944_add_queue_to_delayed_jobs.rb +0 -9
  169. data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +0 -6
  170. data/spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb +0 -5
  171. data/spec/dummy/db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb +0 -5
  172. data/spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb +0 -5
  173. data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +0 -9
  174. data/spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb +0 -9
  175. data/spec/dummy/db/migrate/20120728204337_create_series_statement_relationships.rb +0 -11
  176. data/spec/dummy/db/migrate/20130303104849_add_state_index_to_reserve.rb +0 -5
  177. data/spec/dummy/db/migrate/20140529014410_create_item_transitions.rb +0 -14
  178. data/spec/dummy/solr/default/data/index/_cx.fdt +0 -0
  179. data/spec/dummy/solr/default/data/index/_cx.fnm +0 -0
  180. data/spec/dummy/solr/default/data/index/_cx.nvm +0 -0
  181. data/spec/dummy/solr/default/data/index/_cx_Lucene41_0.tip +0 -0
  182. data/spec/dummy/solr/default/data/index/_cy.fdt +0 -0
  183. data/spec/dummy/solr/default/data/index/_cy.fnm +0 -0
  184. data/spec/dummy/solr/default/data/index/_cy.nvm +0 -0
  185. data/spec/dummy/solr/default/data/index/_cz.fdt +0 -0
  186. data/spec/dummy/solr/default/data/index/_cz.fnm +0 -0
  187. data/spec/dummy/solr/default/data/index/_cz.nvm +0 -0
  188. data/spec/dummy/solr/default/data/index/segments_gj +0 -0
  189. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000592 +0 -0
  190. /data/spec/dummy/solr/default/data/index/{_cx.fdx → _1x.fdx} +0 -0
  191. /data/spec/dummy/solr/default/data/index/{_cx.nvd → _1x.nvd} +0 -0
  192. /data/spec/dummy/solr/default/data/index/{_cx_Lucene41_0.doc → _1x_Lucene41_0.doc} +0 -0
  193. /data/spec/dummy/solr/default/data/index/{_cx_Lucene41_0.pos → _1x_Lucene41_0.pos} +0 -0
  194. /data/spec/dummy/solr/default/data/index/{_cy.fdx → _1y.fdx} +0 -0
  195. /data/spec/dummy/solr/default/data/index/{_cy.nvd → _1y.nvd} +0 -0
  196. /data/spec/dummy/solr/default/data/index/{_cy_Lucene41_0.doc → _1y_Lucene41_0.doc} +0 -0
  197. /data/spec/dummy/solr/default/data/index/{_cy_Lucene41_0.pos → _1y_Lucene41_0.pos} +0 -0
  198. /data/spec/dummy/solr/default/data/index/{_cz.fdx → _1z.fdx} +0 -0
  199. /data/spec/dummy/solr/default/data/index/{_cz.nvd → _1z.nvd} +0 -0
  200. /data/spec/dummy/solr/default/data/index/{_cz_Lucene41_0.doc → _1z_Lucene41_0.doc} +0 -0
  201. /data/spec/dummy/solr/default/data/index/{_cz_Lucene41_0.pos → _1z_Lucene41_0.pos} +0 -0
@@ -1,7 +1,7 @@
1
1
  <div id="tabs">
2
- <%= render 'manifestations/tab_menu', :manifestation => manifestation %>
2
+ <%= render 'manifestations/tab_menu', manifestation: manifestation %>
3
3
  <div id="detail">
4
- <% cache(:manifestation => manifestation.id, :fragment => 'show_detail_librarian_html', :role => current_user_role_name, :locale => @locale) do %>
4
+ <% cache([manifestation, fragment: 'show_detail_librarian_html', role: current_user_role_name, locale: @locale]) do %>
5
5
  <table class="table table-striped" id="resource_detail">
6
6
  <%= embed_content(manifestation) -%>
7
7
  <% if manifestation.title_alternative? %>
@@ -14,14 +14,14 @@
14
14
  <tr>
15
15
  <td style="width: 200px"><%= t('activerecord.models.series_statement') -%>:</td>
16
16
  <td style="width: 500px">
17
- <%= render 'show_series_detail', :manifestation => manifestation %>
17
+ <%= render 'show_series_detail', manifestation: manifestation %>
18
18
  <%- unless manifestation.identifier_contents(:issn).empty? -%>
19
19
  (<%= t('activerecord.attributes.manifestation.issn') -%>: <%= manifestation.identifier_contents(:issn).join(" ") -%>)
20
20
  <%- end -%>
21
21
  </td>
22
22
  </tr>
23
23
  <% end %>
24
- <%= render 'edition_and_number', :manifestation => manifestation %>
24
+ <%= render 'edition_and_number', manifestation: manifestation %>
25
25
  <tr>
26
26
  <td style="width: 200px"><%= t('page.form') -%>:</td>
27
27
  <td style="width: 500px">
@@ -33,6 +33,10 @@
33
33
  <td><%= t('activerecord.models.language') -%>:</td>
34
34
  <td><span itemprop="inLanguage"><%= manifestation.language.display_name.localize -%></span></td>
35
35
  </tr>
36
+ <tr>
37
+ <td><%= t('activerecord.attributes.manifestation.publication_place') -%>:</td>
38
+ <td><%= manifestation.publication_place %></td>
39
+ </tr>
36
40
  <tr>
37
41
  <td><%= t('manifestation.physical_description') -%>:</td>
38
42
  <td>
@@ -51,14 +55,14 @@
51
55
  <td><%= manifestation.price -%></td>
52
56
  </tr>
53
57
  <% if defined?(EnjuSubject) %>
54
- <%= render 'manifestations/subject_detail', :manifestation => manifestation %>
55
- <%= render 'manifestations/classification_detail', :manifestation => manifestation %>
58
+ <%= render 'manifestations/subject_detail', manifestation: manifestation %>
59
+ <%= render 'manifestations/classification_detail', manifestation: manifestation %>
56
60
  <% end %>
57
61
  <% if defined?(EnjuBookmark) %>
58
62
  <tr>
59
63
  <td><%= t('activerecord.models.tag') -%>:</td>
60
64
  <td>
61
- <%= render 'manifestations/tag_list', :manifestation => manifestation -%>
65
+ <%= render 'manifestations/tag_list', manifestation: manifestation -%>
62
66
  </td>
63
67
  </tr>
64
68
  <% end %>
@@ -73,7 +77,7 @@
73
77
  </tr>
74
78
  <%- end -%>
75
79
  <%- unless manifestation.attachment_file_name.blank? -%>
76
- <%= render 'manifestations/attachment_file', :manifestation => manifestation -%>
80
+ <%= render 'manifestations/attachment_file', manifestation: manifestation -%>
77
81
  <%- end -%>
78
82
  <tr>
79
83
  <td><%= t('page.created_at') -%>:</td>
@@ -97,7 +101,7 @@
97
101
  </tr>
98
102
  </table>
99
103
  <% end %>
100
- <%= render 'manifestations/show_holding', :manifestation => manifestation -%>
104
+ <%= render 'manifestations/show_holding', manifestation: manifestation -%>
101
105
  </div>
102
- <%= render 'manifestations/tab_list', :manifestation => manifestation %>
106
+ <%= render 'manifestations/tab_list', manifestation: manifestation %>
103
107
  </div>
@@ -1,7 +1,7 @@
1
1
  <div id="tabs">
2
- <%= render 'manifestations/tab_menu', :manifestation => manifestation %>
2
+ <%= render 'manifestations/tab_menu', manifestation: manifestation %>
3
3
  <div id="detail">
4
- <% cache(:manifestation => manifestation.id, :fragment => 'show_detail_user_html', :role => current_user_role_name, :locale => @locale) do %>
4
+ <% cache([manifestation, fragment: 'show_detail_user_html', role: current_user_role_name, locale: @locale]) do %>
5
5
  <table class="table table-striped" id="resource_detail">
6
6
  <%= embed_content(manifestation) -%>
7
7
  <% if manifestation.title_alternative? %>
@@ -14,14 +14,14 @@
14
14
  <tr>
15
15
  <td style="width: 200px"><%= t('activerecord.models.series_statement') -%>:</td>
16
16
  <td style="width: 500px">
17
- <%= render 'show_series_detail', :manifestation => manifestation %>
17
+ <%= render 'show_series_detail', manifestation: manifestation %>
18
18
  <%- unless manifestation.identifier_contents(:issn).empty? -%>
19
19
  (<%= t('activerecord.attributes.manifestation.issn') -%>: <%= manifestation.identifier_contents(:issn).join(" ") -%>)
20
20
  <%- end -%>
21
21
  </td>
22
22
  </tr>
23
23
  <% end %>
24
- <%= render 'edition_and_number', :manifestation => manifestation %>
24
+ <%= render 'edition_and_number', manifestation: manifestation %>
25
25
  <tr>
26
26
  <td style="width: 200px"><%= t('page.form') -%>:</td>
27
27
  <td style="width: 500px">
@@ -33,6 +33,10 @@
33
33
  <td><%= t('activerecord.models.language') -%>:</td>
34
34
  <td><span itemprop="inLanguage"><%= manifestation.language.display_name.localize -%></span></td>
35
35
  </tr>
36
+ <tr>
37
+ <td><%= t('activerecord.attributes.manifestation.publication_place') -%>:</td>
38
+ <td><%= manifestation.publication_place %></td>
39
+ </tr>
36
40
  <tr>
37
41
  <td><%= t('manifestation.physical_description') -%>:</td>
38
42
  <td>
@@ -53,14 +57,14 @@
53
57
  </tr>
54
58
  <% end %>
55
59
  <% if defined?(EnjuSubject) %>
56
- <%= render 'manifestations/subject_detail', :manifestation => manifestation %>
57
- <%= render 'manifestations/classification_detail', :manifestation => manifestation %>
60
+ <%= render 'manifestations/subject_detail', manifestation: manifestation %>
61
+ <%= render 'manifestations/classification_detail', manifestation: manifestation %>
58
62
  <% end %>
59
63
  <% if defined?(EnjuBookmark) %>
60
64
  <tr>
61
65
  <td><%= t('activerecord.models.tag') -%>:</td>
62
66
  <td>
63
- <%= render 'manifestations/tag_list', :manifestation => manifestation -%>
67
+ <%= render 'manifestations/tag_list', manifestation: manifestation -%>
64
68
  </td>
65
69
  </tr>
66
70
  <% end %>
@@ -75,7 +79,7 @@
75
79
  </tr>
76
80
  <%- end -%>
77
81
  <%- unless manifestation.attachment_file_name.blank? -%>
78
- <%= render 'manifestations/attachment_file', :manifestation => manifestation -%>
82
+ <%= render 'manifestations/attachment_file', manifestation: manifestation -%>
79
83
  <%- end -%>
80
84
  <tr>
81
85
  <td><%= t('page.created_at') -%>:</td>
@@ -104,8 +108,8 @@
104
108
  </table>
105
109
  <% end %>
106
110
  <%- if manifestation.items.for_checkout.on_shelf.exists? -%>
107
- <%= render 'manifestations/show_holding', :manifestation => manifestation -%>
111
+ <%= render 'manifestations/show_holding', manifestation: manifestation -%>
108
112
  <%- end -%>
109
113
  </div>
110
- <%= render 'manifestations/tab_list', :manifestation => manifestation %>
114
+ <%= render 'manifestations/tab_list', manifestation: manifestation %>
111
115
  </div>
@@ -1,3 +1,4 @@
1
+ <% cache([manifestation, fragment: 'show_holding_html', role: current_user_role_name, locale: @locale]) do %>
1
2
  <div class="holding">
2
3
  <table class="table table-striped holding">
3
4
  <tr>
@@ -10,7 +11,7 @@
10
11
  <% end %>
11
12
  </tr>
12
13
  <% if current_user.try(:has_role?, 'Librarian') %>
13
- <% items = manifestation.items.on_shelf %>
14
+ <% items = manifestation.items %>
14
15
  <% else %>
15
16
  <% items = manifestation.items.for_checkout.on_shelf %>
16
17
  <% end %>
@@ -18,17 +19,17 @@
18
19
  <tr>
19
20
  <td>
20
21
  <%- if item.item_identifier? -%>
21
- <%= link_to(item.item_identifier, item, :id => "item_identifier_item_#{item.id}") -%>
22
+ <%= link_to(item.item_identifier, item, id: "item_identifier_item_#{item.id}") -%>
22
23
  <%- else -%>
23
24
  (<%= link_to t('item.no_number'), item -%>)
24
25
  <%- end -%>
25
26
  </td>
26
27
  <td>
27
- <%= link_to(item.shelf.library.display_name.localize, item.shelf.library, :id => "library_item_#{item.id}") %>
28
+ <%= link_to(item.shelf.library.display_name.localize, item.shelf.library, id: "library_item_#{item.id}") %>
28
29
  </td>
29
30
  <td>
30
- <%= link_to(item.shelf_display_name.localize, item.shelf, :id => "shelf_item_#{item.id}")-%>
31
- <%= render 'items/shelf_picture', :item => item -%>
31
+ <%= link_to(item.shelf_display_name.localize, item.shelf, id: "shelf_item_#{item.id}")-%>
32
+ <%= render 'items/shelf_picture', item: item -%>
32
33
  </td>
33
34
  <td>
34
35
  <%= item.call_number -%>
@@ -36,12 +37,12 @@
36
37
  <% if defined?(EnjuCirculation) %>
37
38
  <td>
38
39
  <%= item.circulation_status.display_name.localize if item.circulation_status -%>
39
- <%- if item.rent? -%>
40
+ <% if item.rent? %>
40
41
  (
41
42
  <%= t('activerecord.attributes.checkout.due_date') -%>:
42
- <%= l(item.latest_checkout.due_date, :format => :short) -%>
43
+ <%= l(item.latest_checkout.due_date, format: :short) -%>
43
44
  )
44
- <%- end -%>
45
+ <% end %>
45
46
  </td>
46
47
  <% end %>
47
48
  </tr>
@@ -58,11 +59,12 @@
58
59
  });
59
60
  });
60
61
  </script>
61
- <%= render 'items/tooltip', :item => item %>
62
+ <%= render 'items/tooltip', item: item %>
62
63
  <% end %>
63
64
  <%- end -%>
64
65
  </table>
65
66
  <%- if can? :create, Item -%>
66
- <p><%= link_to t('page.new', :model => t('activerecord.models.item')), new_manifestation_item_path(manifestation) -%></p>
67
+ <p><%= link_to t('page.new', model: t('activerecord.models.item')), new_item_path(manifestation_id: manifestation.id) -%></p>
67
68
  <%- end -%>
68
69
  </div>
70
+ <% end %>
@@ -29,7 +29,7 @@
29
29
  <%- if item.rent? -%>
30
30
  (
31
31
  <%= t('activerecord.attributes.checkout.due_date') -%>:
32
- <%= l(item.last_checkout.due_date, :format => :short) -%>
32
+ <%= l(item.latest_checkout.due_date, format: :short) -%>
33
33
  )
34
34
  <%- end -%>
35
35
  </td>
@@ -1,16 +1,18 @@
1
+ <% cache([manifestation, fragment: 'show_index_html', role: current_user_role_name, locale: @locale]) do %>
1
2
  <strong>
2
3
  <% if manifestation.root_series_statement %>
3
- <%= link_to manifestation.original_title, manifestations_path(:parent => manifestation.id, :query => @query) %>
4
+ <%= link_to manifestation.original_title, manifestations_path(parent_id: manifestation.id, query: @query) %>
4
5
  <% else %>
5
6
  <%= link_to title_with_volume_number(manifestation), manifestation -%>
6
7
  <% end %>
7
8
  </strong>
8
- <% if manifestation.series_master? %>
9
- <%= image_tag('icons/newspaper.png', :size => '16x16', :alt => t('manifestation.serial')) -%>
9
+ <% if manifestation.periodical? %>
10
+ <%= image_tag('icons/newspaper.png', size: '16x16', alt: t('manifestation.serial')) -%>
10
11
  <%- end -%>
11
12
  <%= link_to form_icon(manifestation.carrier_type), manifestation -%>
12
- <%= link_to image_tag('icons/world_go.png', :size => '16x16', :alt => t('manifestation.web')), manifestation.access_address unless manifestation.access_address.blank? -%>
13
+ <%= link_to image_tag('icons/world_go.png', size: '16x16', alt: t('manifestation.web')), manifestation.access_address unless manifestation.access_address.blank? -%>
13
14
  <br />
14
15
  <div id="creator_list_<%= manifestation.id -%>">
15
- <%= render 'manifestations/show_creators', :manifestation => manifestation -%>
16
+ <%= render 'manifestations/show_creators', manifestation: manifestation -%>
16
17
  </div>
18
+ <% end %>
@@ -6,9 +6,9 @@
6
6
  <%- end -%>
7
7
  <%- end -%>
8
8
  <%= link_to form_icon(manifestation.carrier_type), manifestation -%>
9
- <%= image_tag('icons/newspaper.png', :size => '16x16', :alt => t('manifestation.periodical?')) if manifestation.periodical? -%>
10
- <%= link_to image_tag('icons/world_go.png', :size => '16x16', :alt => t('manifestation.web')), manifestation.access_address unless manifestation.access_address.blank? -%>
9
+ <%= image_tag('icons/newspaper.png', size: '16x16', alt: t('manifestation.periodical?')) if manifestation.periodical? -%>
10
+ <%= link_to image_tag('icons/world_go.png', size: '16x16', alt: t('manifestation.web')), manifestation.access_address unless manifestation.access_address.blank? -%>
11
11
  <br />
12
12
  <div id="creator_list_<%= manifestation.id -%>">
13
- <%= render 'manifestations/show_creators', :manifestation => manifestation -%>
13
+ <%= render 'manifestations/show_creators', manifestation: manifestation -%>
14
14
  </div>
@@ -4,22 +4,22 @@
4
4
  <%- if reserve -%>
5
5
  <%= link_to t('reserve.show'), reserve -%>
6
6
  <%- else -%>
7
- <%= link_to t('activerecord.models.reserve'), new_reserve_path(:manifestation_id => manifestation.id) if can? :create, Reserve -%>
7
+ <%= link_to t('activerecord.models.reserve'), new_reserve_path(manifestation_id: manifestation.id) if can? :create, Reserve -%>
8
8
  <%- end -%>
9
9
  <% end %>
10
10
  <br />
11
11
  <% end %>
12
12
  <%- if can? :update, manifestation -%>
13
13
  <% unless params[:mode] == 'add' %>
14
- <%= link_to image_tag('icons/book_edit.png', :size => '16x16', :alt => t('page.edit')), edit_manifestation_path(manifestation) -%>
14
+ <%= link_to image_tag('icons/book_edit.png', size: '16x16', alt: t('page.edit')), edit_manifestation_path(manifestation) -%>
15
15
  <% else %>
16
16
  <% case %>
17
17
  <% when @parent %>
18
- <%= link_to t('page.add'), new_manifestation_manifestation_relationship_path(@parent, :child_id => manifestation.id) unless @parent.derived_manifestations.include?(manifestation) or @parent == manifestation -%>
18
+ <%= link_to t('page.add'), new_manifestation_manifestation_relationship_path(@parent, child_id: manifestation.id) unless @parent.derived_manifestations.include?(manifestation) or @parent == manifestation -%>
19
19
  <% when @item %>
20
- <%= link_to t('page.change'), edit_exemplify_path(@item.exemplify, :manifestation_id => manifestation.id) unless @item.manifestation == manifestation -%>
20
+ <%= link_to t('page.change'), edit_item_path(@item, manifestation_id: manifestation.id) unless @item.manifestation == manifestation -%>
21
21
  <% else %>
22
- <%= link_to image_tag('icons/arrow_divide.png', :size => '16x16', :alt => t('manifestation.add_derivation')), new_manifestation_path(:parent_id => manifestation.id) -%>
22
+ <%= link_to image_tag('icons/arrow_divide.png', size: '16x16', alt: t('manifestation.add_derivation')), new_manifestation_path(parent_id: manifestation.id) -%>
23
23
  <% end %>
24
24
  <%- end -%>
25
25
  <% end %>
@@ -1,7 +1,10 @@
1
- <strong><%= link_to manifestation.original_title, manifestations_path(:parent_id => manifestation.id, :query => @query) -%></strong>
1
+ <strong><%= link_to manifestation.original_title, manifestations_path(parent_id: manifestation.id, query: @query) -%></strong>
2
+ <% if manifestation.periodical? %>
3
+ <%= image_tag('icons/newspaper.png', size: '16x16', alt: t('manifestation.serial')) -%>
4
+ <%- end -%>
2
5
  <%= link_to form_icon(manifestation.carrier_type), manifestation -%>
3
- <%= link_to image_tag('icons/world_go.png', :size => '16x16', :alt => t('manifestation.web')), manifestation.access_address unless manifestation.access_address.blank? -%>
6
+ <%= link_to image_tag('icons/world_go.png', size: '16x16', alt: t('manifestation.web')), manifestation.access_address unless manifestation.access_address.blank? -%>
4
7
  <br />
5
8
  <div id="creator_list_<%= manifestation.id -%>">
6
- <%= render 'manifestations/show_creators', :manifestation => manifestation -%>
9
+ <%= render 'manifestations/show_creators', manifestation: manifestation -%>
7
10
  </div>
@@ -1,6 +1,6 @@
1
1
  <ul>
2
2
  <% if can? :create, Manifestation %>
3
- <li><%= link_to t('page.new', :model => t('activerecord.models.manifestation')), new_manifestation_path(:parent_id => @parent.id) %></li>
3
+ <li><%= link_to t('page.new', model: t('activerecord.models.manifestation')), new_manifestation_path(parent_id: @parent.id) %></li>
4
4
  <% end %>
5
5
  <% if can? :update, @parent %>
6
6
  <li><%= link_to t('page.edit'), edit_manifestation_path(@parent) %></li>
@@ -1,8 +1,8 @@
1
1
  <%- if manifestation.original_manifestations.first or manifestation.derived_manifestations.first -%>
2
- <%= render 'manifestations/manifestation_list', :manifestation => manifestation -%>
2
+ <%= render 'manifestations/manifestation_list', manifestation: manifestation -%>
3
3
  <%- end -%>
4
4
  <%-if defined?(EnjuQuestion) -%>
5
- <%- unless manifestation.questions(:user => current_user).empty? -%>
6
- <%= render 'manifestations/question_list', :manifestation => manifestation -%>
5
+ <%- unless manifestation.questions(user: current_user).empty? -%>
6
+ <%= render 'manifestations/question_list', manifestation: manifestation -%>
7
7
  <%- end -%>
8
8
  <%- end -%>
@@ -4,7 +4,7 @@
4
4
  <li><a href="#related_manifestation"><em><%= t('page.related_manifestation') -%> (<%= manifestation.original_manifestations.size + manifestation.derived_manifestations.size -%>)</em></a></li>
5
5
  <%- end -%>
6
6
  <% if defined?(EnjuQuestion) %>
7
- <%- unless manifestation.questions(:user => current_user).empty? -%>
7
+ <%- unless manifestation.questions(user: current_user).empty? -%>
8
8
  <li><a href="#question"><em><%= t('resource.question') -%></em></a></li>
9
9
  <%- end -%>
10
10
  <% end %>
@@ -1,19 +1,22 @@
1
- <% cache(:manifestation => manifestation.id, :fragment => 'title_html', :role => current_user_role_name, :locale => @locale) do %>
1
+ <% cache([manifestation, fragment: 'title_html', role: current_user_role_name, locale: @locale]) do %>
2
2
  <h2 class="resource_title">
3
3
  [M]
4
- <%= link_to title_with_volume_number(manifestation), manifestation, :itemprop => 'name' -%>
4
+ <%= link_to title_with_volume_number(manifestation), manifestation, itemprop: 'name' -%>
5
+ <% if manifestation.periodical? %>
6
+ <%= image_tag('icons/newspaper.png', size: '16x16', alt: t('manifestation.serial')) -%>
7
+ <%- end -%>
5
8
  <%= link_to form_icon(manifestation.carrier_type), manifestation -%>
6
9
  </h2>
7
10
  <p>
8
11
  <%= manifestation.statement_of_responsibility %><br />
9
12
  <%- unless manifestation.creators.readable_by(current_user).empty? -%>
10
- <%= t('agent.creator') -%>: <%= agents_list(manifestation.creators.readable_by(current_user), :itemprop => 'author') -%>
13
+ <%= t('agent.creator') -%>: <%= agents_list(manifestation.creators.readable_by(current_user), itemprop: 'author') -%>
11
14
  <%- end -%>
12
15
  <%- unless manifestation.contributors.readable_by(current_user).empty? -%>
13
- <%= t('agent.contributor') -%>: <%= agents_list(manifestation.contributors.readable_by(current_user), :itemprop => 'editor') -%>
16
+ <%= t('agent.contributor') -%>: <%= agents_list(manifestation.contributors.readable_by(current_user), itemprop: 'editor') -%>
14
17
  <%- end -%>
15
18
  <%- unless manifestation.publishers.readable_by(current_user).empty? -%>
16
- <%= t('agent.publisher') -%>: <%= agents_list(manifestation.publishers.readable_by(current_user), :itemprop => 'publisher') -%>
19
+ <%= t('agent.publisher') -%>: <%= agents_list(manifestation.publishers.readable_by(current_user), itemprop: 'publisher') -%>
17
20
  <% end %>
18
21
  <%- if manifestation.date_of_publication? -%>
19
22
  <meta itemprop="publishDate" content="<%= manifestation.date_of_publication.iso8601 %>" />
@@ -22,7 +25,7 @@
22
25
  <%- if manifestation.access_address? -%>
23
26
  <br />
24
27
  <%= link_to manifestation.access_address, manifestation.access_address -%>
25
- <%= link_to image_tag('icons/world_go.png', :size => '16x16', :alt => ('Web')), manifestation.access_address -%>
28
+ <%= link_to image_tag('icons/world_go.png', size: '16x16', alt: ('Web')), manifestation.access_address -%>
26
29
  <%- end -%>
27
30
  </p>
28
31
  <% end %>
@@ -1,19 +1,19 @@
1
- <% cache(:manifestation => manifestation.id, :fragment => 'title_mobile', :role => current_user_role_name, :locale => @locale) do %>
1
+ <% cache([manifestation, fragment: 'title_mobile', role: current_user_role_name, locale: @locale]) do %>
2
2
  <h2 class="resource_title">
3
3
  [M]
4
- <%= link_to title_with_volume_number(manifestation), manifestation, :itemprop => 'name' -%>
4
+ <%= link_to title_with_volume_number(manifestation), manifestation, itemprop: 'name' -%>
5
5
  <%= link_to form_icon(manifestation.carrier_type), manifestation -%>
6
6
  </h2>
7
7
  <p>
8
8
  <%= manifestation.statement_of_responsibility %><br />
9
9
  <%- unless manifestation.creators.readable_by(current_user).empty? -%>
10
- <%= t('agent.creator') -%>: <%= agents_list(manifestation.creators.readable_by(current_user), :itemprop => 'author') -%>
10
+ <%= t('agent.creator') -%>: <%= agents_list(manifestation.creators.readable_by(current_user), itemprop: 'author') -%>
11
11
  <%- end -%>
12
12
  <%- unless manifestation.contributors.readable_by(current_user).empty? -%>
13
- <%= t('agent.contributor') -%>: <%= agents_list(manifestation.contributors.readable_by(current_user), :itemprop => 'editor') -%>
13
+ <%= t('agent.contributor') -%>: <%= agents_list(manifestation.contributors.readable_by(current_user), itemprop: 'editor') -%>
14
14
  <%- end -%>
15
15
  <%- unless manifestation.publishers.readable_by(current_user).empty? -%>
16
- <%= t('agent.publisher') -%>: <%= agents_list(manifestation.publishers.readable_by(current_user), :itemprop => 'publisher') -%>
16
+ <%= t('agent.publisher') -%>: <%= agents_list(manifestation.publishers.readable_by(current_user), itemprop: 'publisher') -%>
17
17
  <% end %>
18
18
  <%- if manifestation.date_of_publication? -%>
19
19
  <meta itemprop="publishDate" content="<%= manifestation.date_of_publication.iso8601 %>" />
@@ -22,7 +22,7 @@
22
22
  <%- if manifestation.access_address? -%>
23
23
  <br />
24
24
  <%= link_to manifestation.access_address, manifestation.access_address -%>
25
- <%= link_to image_tag('icons/world_go.png', :size => '16x16', :alt => ('Web')), manifestation.access_address -%>
25
+ <%= link_to image_tag('icons/world_go.png', size: '16x16', alt: ('Web')), manifestation.access_address -%>
26
26
  <%- end -%>
27
27
  </p>
28
28
  <% end %>
@@ -1,12 +1,12 @@
1
- atom_feed(:url => manifestations_url(:format => :atom)) do |feed|
2
- feed.title t('manifestation.query_search_result', :query => @query, :library_group_name => @library_group.display_name.localize)
1
+ atom_feed(url: manifestations_url(format: :atom)) do |feed|
2
+ feed.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name.localize)
3
3
  feed.updated(@manifestations.first ? @manifestations.first.created_at : Time.zone.now)
4
4
 
5
5
  @manifestations.each do |manifestation|
6
6
  feed.entry(manifestation) do |entry|
7
7
  entry.title(manifestation.original_title)
8
8
  if defined?(EnjuBookmark)
9
- entry.content(manifestation.tags.join(' '), :type => 'html')
9
+ entry.content(manifestation.tags.join(' '), type: 'html')
10
10
  end
11
11
 
12
12
  manifestation.creators.readable_by(current_user).each do |agent|
@@ -1,7 +1,8 @@
1
1
  <div id="content_detail" class="ui-corner-all ui-widget-content">
2
- <h1 class="title"><%= t('page.search_resource', :model => t('page.resource')) -%></h1>
2
+ <h1 class="title"><%= t('page.search_resource', model: t('page.resource')) -%></h1>
3
3
  <div id="content_list">
4
- <%= render 'manifestations/title', :manifestation => @manifestation if @manifestation -%>
4
+ <p id="notice"><%= notice %></p>
5
+ <%= render 'manifestations/title', manifestation: @manifestation if @manifestation -%>
5
6
 
6
7
  <% case %>
7
8
  <% when @index_agent[:creator] %>
@@ -27,10 +28,10 @@
27
28
 
28
29
  <%- if @manifestations.total_count > 0 -%>
29
30
  <p>
30
- <%= t('page.number_of_search_results', :count => @count[:query_result], :numdocs => Manifestation.search.total, :seconds => sprintf("%.3f", @seconds)) -%>
31
+ <%= t('page.number_of_search_results', count: @count[:query_result], numdocs: Manifestation.search.total, seconds: sprintf("%.3f", @seconds)) -%>
31
32
  <%- if @count[:query_result] > Setting.max_number_of_results -%>
32
33
  <br />
33
- <%= t('page.limit_exceeded', :count => Setting.max_number_of_results) -%>
34
+ <%= t('page.limit_exceeded', count: Setting.max_number_of_results) -%>
34
35
  <%- end -%>
35
36
  </p>
36
37
 
@@ -39,30 +40,30 @@
39
40
  <%- if params[:sort_by].blank? -%>
40
41
  <strong><%= t('manifestation.date_of_acquisition') -%></strong>
41
42
  <%- else -%>
42
- <%= link_to t('manifestation.date_of_acquisition'), url_for(params.merge(:sort_by => nil, :only_path => true)) -%>
43
+ <%= link_to t('manifestation.date_of_acquisition'), url_for(params.merge(sort_by: nil, only_path: true)) -%>
43
44
  <%- end -%>
44
45
  <%- if params[:sort_by] == 'pub_date' -%>
45
46
  <strong><%= t('activerecord.attributes.manifestation.date_of_publication') -%></strong>
46
47
  <%- else -%>
47
- <%= link_to t('activerecord.attributes.manifestation.date_of_publication'), url_for(params.merge(:sort_by => 'pub_date', :only_path => true)) -%>
48
+ <%= link_to t('activerecord.attributes.manifestation.date_of_publication'), url_for(params.merge(sort_by: 'pub_date', only_path: true)) -%>
48
49
  <%- end -%>
49
50
  <%- if params[:sort_by] == 'title' -%>
50
51
  <strong><%= t('page.title') -%></strong>
51
52
  <%- else -%>
52
- <%= link_to t('page.title'), url_for(params.merge(:sort_by => 'title', :only_path => true)) -%>
53
+ <%= link_to t('page.title'), url_for(params.merge(sort_by: 'title', only_path: true)) -%>
53
54
  <%- end -%>
54
55
  </p>
55
56
 
56
57
  <div class="autopagerize_page_element" id="list">
57
- <%= render 'manifestations/list', :manifestations => @manifestations -%>
58
+ <%= render 'manifestations/list', manifestations: @manifestations -%>
58
59
  </div>
59
60
 
60
61
  <% if defined?(EnjuBookmark) %>
61
62
  <div id="tag_cloud">
62
63
  <h3 class="resource_title"><%= t('activerecord.models.tag') -%></h3>
63
64
  <div id="tag_cloud_list"></div>
64
- <%= image_tag 'spinner.gif', :id => 'spinner_tag_cloud',
65
- :style => 'padding-bottom: 15px; padding-left: 40px;' -%>
65
+ <%= image_tag 'spinner.gif', id: 'spinner_tag_cloud',
66
+ style: 'padding-bottom: 15px; padding-left: 40px;' -%>
66
67
  </div>
67
68
  <% end %>
68
69
  <%- else -%>
@@ -78,15 +79,15 @@
78
79
  <% if @parent and can?(:update, @parent) %>
79
80
  <%= render 'submenu_parent' %>
80
81
  <% end %>
81
- <h3><%= link_to h("#{t('page.total')}: #{@count[:query_result]}"), url_for(params.merge(:action => 'index', :view => nil, :carrier_type => nil, :library => nil, :language => nil, :subject => nil, :only_path => true)) -%></h3>
82
+ <h3><%= link_to h("#{t('page.total')}: #{@count[:query_result]}"), url_for(params.merge(action: 'index', view: nil, carrier_type: nil, library: nil, language: nil, subject: nil, only_path: true)) -%></h3>
82
83
  <%- if @manifestations.total_count > 0 -%>
83
84
  <%= render 'manifestations/all_facet' -%>
84
85
  <%- end -%>
85
86
  <div>
86
87
  <%- if params[:library_id].blank? -%>
87
- <%= link_to((image_tag 'icons/feed.png', :size => '16x16', :alt => t('page.feed'), :class => 'icon'), url_for(params.merge(:format => :rss, :page => nil, :library_id => nil, :only_path => true))) -%> <%= link_to t('page.search_result_feed'), url_for(params.merge(:format => :rss, :page => nil, :library_id => nil, :commit => nil, :only_path => true)) -%>
88
+ <%= link_to((image_tag 'icons/feed.png', size: '16x16', alt: t('page.feed'), class: 'icon'), url_for(params.merge(format: :rss, page: nil, library_id: nil, only_path: true))) -%> <%= link_to t('page.search_result_feed'), url_for(params.merge(format: :rss, page: nil, library_id: nil, commit: nil, only_path: true)) -%>
88
89
  <%- else -%>
89
- <%= link_to((image_tag 'icons/feed.png', :size => '16x16', :alt => t('page.feed'), :class => 'icon'), url_for(params.merge(:format => :rss, :page => nil, :only_path => true))) -%> <%= link_to t('page.search_result_feed'), url_for(params.merge(:format => :rss, :page => nil, :commit => nil, :only_path => true)) -%>
90
+ <%= link_to((image_tag 'icons/feed.png', size: '16x16', alt: t('page.feed'), class: 'icon'), url_for(params.merge(format: :rss, page: nil, only_path: true))) -%> <%= link_to t('page.search_result_feed'), url_for(params.merge(format: :rss, page: nil, commit: nil, only_path: true)) -%>
90
91
  <%- end -%>
91
92
  </div>
92
93
  </div>
@@ -94,7 +95,7 @@
94
95
  <% if defined?(EnjuBookmark) %>
95
96
  <script type="text/javascript">
96
97
  window.onload = function() {
97
- $("#tag_cloud_list").load('<%= url_for(params.merge(:view => "tag_cloud", :only_path => true)) -%>', hideTagCloudSpinner);
98
+ $("#tag_cloud_list").load('<%= url_for(params.merge(view: "tag_cloud", only_path: true)) -%>', hideTagCloudSpinner);
98
99
  }
99
100
 
100
101
  function hideTagCloudSpinner(){
@@ -1,12 +1,12 @@
1
1
  <div data-role="header">
2
- <h1 class="title"><%= t('page.search_resource', :model => t('page.resource')) -%></h1>
2
+ <h1 class="title"><%= t('page.search_resource', model: t('page.resource')) -%></h1>
3
3
  </div>
4
4
 
5
5
  <div data-role="content">
6
6
  <div data-role="fieldcontain">
7
- <%= form_for :manifestations, :html => {:method => 'get'} do -%>
7
+ <%= form_for :manifestations, html: {method: 'get'} do -%>
8
8
  <%= label_tag :search_form_top, t('page.search_term') -%>:
9
- <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%>
9
+ <%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
10
10
  <%= submit_tag t('page.search') -%>
11
11
  <% end %>
12
12
  </div>
@@ -3,6 +3,6 @@ xml.modsCollection(
3
3
  'xmlns:xsi' => "http://www.w3.org/2001/XMLSchema-instance",
4
4
  'xmlns' => "http://www.loc.gov/mods/v3"){
5
5
  @manifestations.each do |manifestation|
6
- xml << render('manifestations/show', :manifestation => manifestation)
6
+ xml << render('manifestations/show', manifestation: manifestation)
7
7
  end
8
8
  }
@@ -1,17 +1,17 @@
1
- atom_feed(:url => manifestations_url(:format => :atom),
1
+ atom_feed(url: manifestations_url(format: :atom),
2
2
  "xmlns:opds" => "http://opds-spec.org/2010/catalog",
3
3
  "xmlns:jepa" => "http://www.jepa.or.jp/xmlns/atomPhonetics/1.1"
4
4
  ) do |feed|
5
- feed.title t('manifestation.query_search_result', :query => @query, :library_group_name => @library_group.display_name.localize)
5
+ feed.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name.localize)
6
6
  feed.updated(@manifestations.first ? @manifestations.first.created_at : Time.zone.now)
7
- feed.link :rel => 'start', :href => manifestations_url(:format => :opds), :type => "application/atom+xml;profile=opds-catalog;kind=navigation"
7
+ feed.link rel: 'start', href: manifestations_url(format: :opds), type: "application/atom+xml;profile=opds-catalog;kind=navigation"
8
8
 
9
9
  @manifestations.each do |manifestation|
10
10
  feed.entry(manifestation) do |entry|
11
- entry.link :rel => "http://opds-spec.org/acquisition/borrow", :href => manifestation_url(manifestation), :type => 'text/html'
11
+ entry.link rel: "http://opds-spec.org/acquisition/borrow", href: manifestation_url(manifestation), type: 'text/html'
12
12
  entry.title(manifestation.original_title)
13
13
  if defined?(EnjuBookmark)
14
- entry.content(manifestation.tags.join(' '), :type => 'html')
14
+ entry.content(manifestation.tags.join(' '), type: 'html')
15
15
  end
16
16
 
17
17
  manifestation.creators.readable_by(current_user).each do |agent|
@@ -8,9 +8,9 @@ xml.rdf(:RDF,
8
8
  'xmlns:foaf' => "http://xmlns.com/foaf/0.1/",
9
9
  'xmlns:prism' => "http://prismstandard.org/namespaces/basic/2.0/",
10
10
  'xmlns:rdfs' =>"http://www.w3.org/2000/01/rdf-schema#"){
11
- xml.channel("rdf:about" => manifestations_url(:params => params.merge(:format => 'rdf', :only_path => true))){
12
- xml.title t('manifestation.query_search_result', :query => @query, :library_group_name => @library_group.display_name.localize)
13
- xml.link "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(:format => nil, :only_path => true))}"
11
+ xml.channel("rdf:about" => manifestations_url(params: params.merge(format: 'rdf', only_path: true))){
12
+ xml.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name.localize)
13
+ xml.link "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(format: nil, only_path: true))}"
14
14
  xml.description "Next-L Enju, an open source integrated library system developed by Project Next-L"
15
15
  xml.language @locale.to_s
16
16
  xml.ttl "60"
@@ -25,6 +25,6 @@ xml.rdf(:RDF,
25
25
  end
26
26
  }
27
27
  @manifestations.each do |manifestation|
28
- xml << render('manifestations/show', :manifestation => manifestation)
28
+ xml << render('manifestations/show', manifestation: manifestation)
29
29
  end
30
30
  }