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.
- checksums.yaml +4 -4
- data/app/helpers/manifestations_helper.rb +17 -17
- data/app/views/manifestations/_attachment_file.html.erb +1 -1
- data/app/views/manifestations/_carrier_type_facet.html.erb +1 -1
- data/app/views/manifestations/_classification_facet.html.erb +2 -2
- data/app/views/manifestations/_holding.html.erb +1 -1
- data/app/views/manifestations/_index_form.html.erb +2 -2
- data/app/views/manifestations/_index_form_contributor.html.erb +2 -2
- data/app/views/manifestations/_index_form_creator.html.erb +2 -2
- data/app/views/manifestations/_index_form_item.html.erb +2 -2
- data/app/views/manifestations/_index_form_manifestation.html.erb +2 -2
- data/app/views/manifestations/_index_form_parent.html.erb +9 -3
- data/app/views/manifestations/_index_form_publisher.html.erb +2 -2
- data/app/views/manifestations/_index_form_series_statement.html.erb +3 -3
- data/app/views/manifestations/_language_facet.html.erb +2 -2
- data/app/views/manifestations/_library_facet.html.erb +1 -1
- data/app/views/manifestations/_list.html.erb +2 -2
- data/app/views/manifestations/_manifestation.html.erb +53 -51
- data/app/views/manifestations/_manifestation_list.html.erb +2 -2
- data/app/views/manifestations/_paginate_id_link.html.erb +2 -2
- data/app/views/manifestations/_pickup.html.erb +5 -5
- data/app/views/manifestations/_pub_year_facet.html.erb +1 -1
- data/app/views/manifestations/_question_list.html.erb +1 -1
- data/app/views/manifestations/_reservable_facet.html.erb +2 -2
- data/app/views/manifestations/_search_engine.html.erb +1 -1
- data/app/views/manifestations/_show_creators.html.erb +2 -2
- data/app/views/manifestations/_show_creators.mobile.erb +2 -2
- data/app/views/manifestations/_show_detail_librarian.html.erb +14 -10
- data/app/views/manifestations/_show_detail_user.html.erb +14 -10
- data/app/views/manifestations/_show_holding.html.erb +12 -10
- data/app/views/manifestations/_show_holding.mobile.erb +1 -1
- data/app/views/manifestations/_show_index.html.erb +7 -5
- data/app/views/manifestations/_show_index.mobile.erb +3 -3
- data/app/views/manifestations/_show_reservation.html.erb +5 -5
- data/app/views/manifestations/_show_series_index.html.erb +6 -3
- data/app/views/manifestations/_submenu_parent.html.erb +1 -1
- data/app/views/manifestations/_tab_list.html.erb +3 -3
- data/app/views/manifestations/_tab_menu.html.erb +1 -1
- data/app/views/manifestations/_title.html.erb +9 -6
- data/app/views/manifestations/_title.mobile.erb +6 -6
- data/app/views/manifestations/index.atom.builder +3 -3
- data/app/views/manifestations/index.html.erb +15 -14
- data/app/views/manifestations/index.mobile.erb +3 -3
- data/app/views/manifestations/index.mods.builder +1 -1
- data/app/views/manifestations/index.opds.builder +5 -5
- data/app/views/manifestations/index.rdf.builder +4 -4
- data/app/views/manifestations/index.rss.builder +6 -6
- data/app/views/manifestations/index.sru.builder +1 -1
- data/app/views/manifestations/show.html.erb +14 -14
- data/app/views/manifestations/show.mobile.erb +3 -3
- data/app/views/manifestations/show.mods.builder +1 -1
- data/app/views/manifestations/show.rdf.builder +1 -1
- data/app/views/page/_footer.html.erb +3 -2
- data/lib/enju_flower/version.rb +1 -1
- data/spec/controllers/manifestations_controller_spec.rb +22 -22
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/001_create_agents.rb +0 -1
- data/spec/dummy/db/migrate/{20111201155513_add_devise_to_users.rb → 002_devise_create_users.rb} +18 -16
- data/spec/dummy/db/migrate/005_create_manifestations.rb +4 -16
- data/spec/dummy/db/migrate/006_create_items.rb +0 -3
- data/spec/dummy/db/migrate/035_create_reserves.rb +0 -1
- data/spec/dummy/db/migrate/041_create_roles.rb +13 -0
- data/spec/dummy/db/migrate/077_create_user_groups.rb +3 -7
- data/spec/dummy/db/migrate/080_create_library_groups.rb +0 -1
- data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +17 -0
- data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +14 -0
- data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +0 -2
- data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +1 -3
- data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +0 -1
- data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +0 -1
- data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +0 -1
- data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +0 -1
- data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +0 -4
- data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +0 -1
- data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +9 -0
- data/spec/dummy/db/migrate/{20111201163718_create_user_has_roles.rb → 20100606065209_create_user_has_roles.rb} +2 -0
- data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +0 -2
- data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
- data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +12 -0
- data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
- data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +1 -11
- data/spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +6 -0
- data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +18 -0
- data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +11 -0
- data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
- data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140524135607_create_bookmark_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140524142813_add_taggings_count_to_tag.rb +5 -0
- data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +11 -0
- data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
- data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
- data/spec/dummy/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb +12 -0
- data/spec/dummy/db/migrate/20140810091231_add_checkout_icalendar_token_to_profile.rb +6 -0
- data/spec/dummy/db/migrate/20140810091417_add_save_checkout_history_to_profile.rb +5 -0
- data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +5 -0
- data/spec/dummy/db/migrate/20140812093836_add_share_bookmarks_to_profile.rb +5 -0
- data/spec/dummy/db/schema.rb +250 -252
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/default/data/index/_1x.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_1x.fnm +0 -0
- data/spec/dummy/solr/default/data/index/_1x.nvm +0 -0
- data/spec/dummy/solr/default/data/index/{_cx.si → _1x.si} +0 -0
- data/spec/dummy/solr/default/data/index/{_cx_Lucene41_0.tim → _1x_Lucene41_0.tim} +0 -0
- data/spec/dummy/solr/default/data/index/_1x_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/_1y.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_1y.fnm +0 -0
- data/spec/dummy/solr/default/data/index/_1y.nvm +0 -0
- data/spec/dummy/solr/default/data/index/{_cy.si → _1y.si} +0 -0
- data/spec/dummy/solr/default/data/index/{_cy_Lucene41_0.tim → _1y_Lucene41_0.tim} +0 -0
- data/spec/dummy/solr/default/data/index/{_cy_Lucene41_0.tip → _1y_Lucene41_0.tip} +0 -0
- data/spec/dummy/solr/default/data/index/_1z.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_1z.fnm +0 -0
- data/spec/dummy/solr/default/data/index/_1z.nvm +0 -0
- data/spec/dummy/solr/default/data/index/{_cz.si → _1z.si} +0 -0
- data/spec/dummy/solr/default/data/index/{_cz_Lucene41_0.tim → _1z_Lucene41_0.tim} +0 -0
- data/spec/dummy/solr/default/data/index/{_cz_Lucene41_0.tip → _1z_Lucene41_0.tip} +0 -0
- data/spec/dummy/solr/default/data/index/segments.gen +0 -0
- data/spec/dummy/solr/default/data/index/segments_2p +0 -0
- data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000591 → tlog.0000000000000000093} +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000094 +0 -0
- data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000593 → tlog.0000000000000000095} +0 -0
- data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
- data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
- data/spec/factories/profile.rb +10 -0
- data/spec/factories/user.rb +0 -13
- data/spec/fixtures/import_requests.yml +0 -3
- data/spec/fixtures/items.yml +46 -21
- data/spec/fixtures/library_groups.yml +0 -2
- data/spec/fixtures/manifestations.yml +0 -2
- data/spec/fixtures/profiles.yml +98 -0
- data/spec/fixtures/reserve_transitions.yml +88 -0
- data/spec/fixtures/resource_import_files.yml +0 -4
- data/spec/fixtures/users.yml +0 -55
- metadata +158 -140
- data/spec/dummy/db/migrate/113_create_events.rb +0 -23
- data/spec/dummy/db/migrate/114_create_event_categories.rb +0 -16
- data/spec/dummy/db/migrate/149_create_message_templates.rb +0 -18
- data/spec/dummy/db/migrate/154_create_messages.rb +0 -24
- data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +0 -20
- data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +0 -27
- data/spec/dummy/db/migrate/20081117143156_create_inventory_files.rb +0 -18
- data/spec/dummy/db/migrate/20081117143455_create_inventories.rb +0 -17
- data/spec/dummy/db/migrate/20090519203307_create_participates.rb +0 -17
- data/spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb +0 -15
- data/spec/dummy/db/migrate/20100527113752_create_delayed_jobs.rb +0 -21
- data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +0 -15
- data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
- data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +0 -9
- data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +0 -13
- data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +0 -11
- data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
- data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +0 -9
- data/spec/dummy/db/migrate/20111201121844_create_roles.rb +0 -12
- data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -8
- data/spec/dummy/db/migrate/20120105101944_add_queue_to_delayed_jobs.rb +0 -9
- data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +0 -6
- data/spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb +0 -5
- data/spec/dummy/db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb +0 -5
- data/spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb +0 -5
- data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +0 -9
- data/spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb +0 -9
- data/spec/dummy/db/migrate/20120728204337_create_series_statement_relationships.rb +0 -11
- data/spec/dummy/db/migrate/20130303104849_add_state_index_to_reserve.rb +0 -5
- data/spec/dummy/db/migrate/20140529014410_create_item_transitions.rb +0 -14
- data/spec/dummy/solr/default/data/index/_cx.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_cx.fnm +0 -0
- data/spec/dummy/solr/default/data/index/_cx.nvm +0 -0
- data/spec/dummy/solr/default/data/index/_cx_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/_cy.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_cy.fnm +0 -0
- data/spec/dummy/solr/default/data/index/_cy.nvm +0 -0
- data/spec/dummy/solr/default/data/index/_cz.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_cz.fnm +0 -0
- data/spec/dummy/solr/default/data/index/_cz.nvm +0 -0
- data/spec/dummy/solr/default/data/index/segments_gj +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000592 +0 -0
- /data/spec/dummy/solr/default/data/index/{_cx.fdx → _1x.fdx} +0 -0
- /data/spec/dummy/solr/default/data/index/{_cx.nvd → _1x.nvd} +0 -0
- /data/spec/dummy/solr/default/data/index/{_cx_Lucene41_0.doc → _1x_Lucene41_0.doc} +0 -0
- /data/spec/dummy/solr/default/data/index/{_cx_Lucene41_0.pos → _1x_Lucene41_0.pos} +0 -0
- /data/spec/dummy/solr/default/data/index/{_cy.fdx → _1y.fdx} +0 -0
- /data/spec/dummy/solr/default/data/index/{_cy.nvd → _1y.nvd} +0 -0
- /data/spec/dummy/solr/default/data/index/{_cy_Lucene41_0.doc → _1y_Lucene41_0.doc} +0 -0
- /data/spec/dummy/solr/default/data/index/{_cy_Lucene41_0.pos → _1y_Lucene41_0.pos} +0 -0
- /data/spec/dummy/solr/default/data/index/{_cz.fdx → _1z.fdx} +0 -0
- /data/spec/dummy/solr/default/data/index/{_cz.nvd → _1z.nvd} +0 -0
- /data/spec/dummy/solr/default/data/index/{_cz_Lucene41_0.doc → _1z_Lucene41_0.doc} +0 -0
- /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', :
|
2
|
+
<%= render 'manifestations/tab_menu', manifestation: manifestation %>
|
3
3
|
<div id="detail">
|
4
|
-
<% cache(
|
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', :
|
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', :
|
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', :
|
55
|
-
<%= render 'manifestations/classification_detail', :
|
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', :
|
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', :
|
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', :
|
104
|
+
<%= render 'manifestations/show_holding', manifestation: manifestation -%>
|
101
105
|
</div>
|
102
|
-
<%= render 'manifestations/tab_list', :
|
106
|
+
<%= render 'manifestations/tab_list', manifestation: manifestation %>
|
103
107
|
</div>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<div id="tabs">
|
2
|
-
<%= render 'manifestations/tab_menu', :
|
2
|
+
<%= render 'manifestations/tab_menu', manifestation: manifestation %>
|
3
3
|
<div id="detail">
|
4
|
-
<% cache(
|
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', :
|
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', :
|
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', :
|
57
|
-
<%= render 'manifestations/classification_detail', :
|
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', :
|
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', :
|
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', :
|
111
|
+
<%= render 'manifestations/show_holding', manifestation: manifestation -%>
|
108
112
|
<%- end -%>
|
109
113
|
</div>
|
110
|
-
<%= render 'manifestations/tab_list', :
|
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
|
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, :
|
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, :
|
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, :
|
31
|
-
<%= render 'items/shelf_picture', :
|
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
|
-
|
40
|
+
<% if item.rent? %>
|
40
41
|
(
|
41
42
|
<%= t('activerecord.attributes.checkout.due_date') -%>:
|
42
|
-
<%= l(item.latest_checkout.due_date, :
|
43
|
+
<%= l(item.latest_checkout.due_date, format: :short) -%>
|
43
44
|
)
|
44
|
-
|
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', :
|
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', :
|
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 %>
|
@@ -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(:
|
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.
|
9
|
-
<%= image_tag('icons/newspaper.png', :
|
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', :
|
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', :
|
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', :
|
10
|
-
<%= link_to image_tag('icons/world_go.png', :
|
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', :
|
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(:
|
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', :
|
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, :
|
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'),
|
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', :
|
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(:
|
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', :
|
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', :
|
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', :
|
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', :
|
2
|
+
<%= render 'manifestations/manifestation_list', manifestation: manifestation -%>
|
3
3
|
<%- end -%>
|
4
4
|
<%-if defined?(EnjuQuestion) -%>
|
5
|
-
<%- unless manifestation.questions(:
|
6
|
-
<%= render 'manifestations/question_list', :
|
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(:
|
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(
|
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, :
|
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), :
|
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), :
|
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), :
|
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', :
|
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(
|
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, :
|
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), :
|
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), :
|
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), :
|
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', :
|
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(:
|
2
|
-
feed.title t('manifestation.query_search_result', :
|
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(' '), :
|
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', :
|
2
|
+
<h1 class="title"><%= t('page.search_resource', model: t('page.resource')) -%></h1>
|
3
3
|
<div id="content_list">
|
4
|
-
|
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', :
|
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', :
|
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(:
|
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(:
|
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(:
|
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', :
|
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', :
|
65
|
-
:
|
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(:
|
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', :
|
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', :
|
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(:
|
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', :
|
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, :
|
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), {:
|
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', :
|
6
|
+
xml << render('manifestations/show', manifestation: manifestation)
|
7
7
|
end
|
8
8
|
}
|
@@ -1,17 +1,17 @@
|
|
1
|
-
atom_feed(:
|
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', :
|
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 :
|
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 :
|
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(' '), :
|
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(:
|
12
|
-
xml.title t('manifestation.query_search_result', :
|
13
|
-
xml.link "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(:
|
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', :
|
28
|
+
xml << render('manifestations/show', manifestation: manifestation)
|
29
29
|
end
|
30
30
|
}
|