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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8d4dd5cc70b13f9fe9cfb051cbe37facd5c7160
|
4
|
+
data.tar.gz: 6d6238411097af5374feb62ee82ea679c30a893c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e67efff7b89cf736ed92ed181f3037a0f177504b0cc684f67ad102781931dbc1863616c066c88796d22892d9333e51e56ae02848ee00d79844d35f5077d1917d
|
7
|
+
data.tar.gz: 0068bc61e23930557dfb0c8c7bf67841032ff085c9f425c15a8a299e265a1b85980598585903e327a7411a6a7a24511723f90aed8023b539c3283e819e9d5e3e
|
@@ -12,7 +12,7 @@ module ManifestationsHelper
|
|
12
12
|
|
13
13
|
def back_to_manifestation_index
|
14
14
|
if session[:params]
|
15
|
-
params = session[:params].merge(:
|
15
|
+
params = session[:params].merge(view: nil, :controller => :manifestations)
|
16
16
|
link_to t('page.back_to_search_results'), url_for(params)
|
17
17
|
else
|
18
18
|
link_to t('page.back'), :back
|
@@ -69,41 +69,41 @@ module ManifestationsHelper
|
|
69
69
|
current = true if languages.include?(language.name)
|
70
70
|
if current
|
71
71
|
content_tag :strong do
|
72
|
-
link_to("#{language.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(:
|
72
|
+
link_to("#{language.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(page: nil, language: language.name, view: nil, only_path: true)))
|
73
73
|
end
|
74
74
|
else
|
75
|
-
link_to("#{language.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(:
|
75
|
+
link_to("#{language.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(page: nil, language: language.name, view: nil, only_path: true)))
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
79
|
def library_facet(current_libraries, facet)
|
80
|
-
library = Library.where(:
|
80
|
+
library = Library.where(name: facet.value).select([:name, :display_name]).first
|
81
81
|
return nil unless library
|
82
82
|
string = ''
|
83
83
|
current = true if current_libraries.include?(library.name)
|
84
84
|
content_tag :li do
|
85
85
|
if current
|
86
86
|
content_tag :strong do
|
87
|
-
link_to("#{library.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(:
|
87
|
+
link_to("#{library.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(page: nil, library: (current_libraries << library.name).uniq.join(' '), view: nil, only_path: true)))
|
88
88
|
end
|
89
89
|
else
|
90
|
-
link_to("#{library.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(:
|
90
|
+
link_to("#{library.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(page: nil, library: (current_libraries << library.name).uniq.join(' '), view: nil, only_path: true)))
|
91
91
|
end
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
95
|
def carrier_type_facet(facet)
|
96
96
|
string = ''
|
97
|
-
carrier_type = CarrierType.where(:
|
97
|
+
carrier_type = CarrierType.where(name: facet.value).select([:name, :display_name]).first
|
98
98
|
if carrier_type
|
99
99
|
string << form_icon(carrier_type)
|
100
100
|
current = true if params[:carrier_type] == carrier_type.name
|
101
101
|
if current
|
102
102
|
content_tag :strong do
|
103
|
-
link_to("#{carrier_type.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(:
|
103
|
+
link_to("#{carrier_type.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(carrier_type: carrier_type.name, page: nil, view: nil, only_path: true)))
|
104
104
|
end
|
105
105
|
else
|
106
|
-
link_to("#{carrier_type.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(:
|
106
|
+
link_to("#{carrier_type.display_name.localize} (" + facet.count.to_s + ")", url_for(params.merge(carrier_type: carrier_type.name, page: nil, view: nil, only_path: true)))
|
107
107
|
end
|
108
108
|
end
|
109
109
|
end
|
@@ -113,10 +113,10 @@ module ManifestationsHelper
|
|
113
113
|
current = true if facet.value.first.to_i == pub_date_from.to_i and facet.value.last.to_i - 1 == pub_date_to.to_i
|
114
114
|
if current
|
115
115
|
content_tag :strong do
|
116
|
-
link_to("#{facet.value.first.to_i} - #{facet.value.last.to_i - 1} (" + facet.count.to_s + ")", url_for(params.merge(:
|
116
|
+
link_to("#{facet.value.first.to_i} - #{facet.value.last.to_i - 1} (" + facet.count.to_s + ")", url_for(params.merge(pub_date_from: facet.value.first.to_i, pub_date_to: facet.value.last.to_i - 1, page: nil, view: nil, only_path: true)))
|
117
117
|
end
|
118
118
|
else
|
119
|
-
link_to("#{facet.value.first.to_i} - #{facet.value.last.to_i - 1} (" + facet.count.to_s + ")", url_for(params.merge(:
|
119
|
+
link_to("#{facet.value.first.to_i} - #{facet.value.last.to_i - 1} (" + facet.count.to_s + ")", url_for(params.merge(pub_date_from: facet.value.first.to_i, pub_date_to: facet.value.last.to_i - 1, page: nil, view: nil, only_path: true)))
|
120
120
|
end
|
121
121
|
end
|
122
122
|
|
@@ -127,7 +127,7 @@ module ManifestationsHelper
|
|
127
127
|
end
|
128
128
|
if manifestation.periodical?
|
129
129
|
if manifestation.issue_number_string?
|
130
|
-
title << "
|
130
|
+
title << " (#{manifestation.issue_number_string})"
|
131
131
|
end
|
132
132
|
if manifestation.serial_number?
|
133
133
|
title << " " + manifestation.serial_number.to_s
|
@@ -139,7 +139,7 @@ module ManifestationsHelper
|
|
139
139
|
if defined?(EnjuBookmark)
|
140
140
|
def link_to_bookmark(manifestation)
|
141
141
|
if manifestation.bookmarked?(current_user)
|
142
|
-
link_to t('bookmark.remove_from_my_bookmark'), bookmark_path(Bookmark.where(:user_id => current_user.id, :
|
142
|
+
link_to t('bookmark.remove_from_my_bookmark'), bookmark_path(Bookmark.where(:user_id => current_user.id, manifestation_id: manifestation.id).first), confirm: t('page.are_you_sure'), method: :delete
|
143
143
|
else
|
144
144
|
link_to t('bookmark.add_to_my_bookmark'), new_bookmark_path(:bookmark => {:url => manifestation_url(manifestation)})
|
145
145
|
end
|
@@ -150,19 +150,19 @@ module ManifestationsHelper
|
|
150
150
|
def link_to_reservation(manifestation, reserve)
|
151
151
|
unless current_user
|
152
152
|
unless manifestation.items.for_checkout.empty?
|
153
|
-
link_to t('manifestation.reserve_this'), new_reserve_path(:
|
153
|
+
link_to t('manifestation.reserve_this'), new_reserve_path(manifestation_id: manifestation.id)
|
154
154
|
end
|
155
155
|
else
|
156
156
|
if current_user.has_role?('Librarian')
|
157
|
-
link_to t('manifestation.reserve_this'), new_reserve_path(:
|
157
|
+
link_to t('manifestation.reserve_this'), new_reserve_path(manifestation_id: manifestation.id)
|
158
158
|
else
|
159
159
|
if manifestation.is_checked_out_by?(current_user)
|
160
160
|
I18n.t('manifestation.currently_checked_out')
|
161
161
|
else
|
162
162
|
if manifestation.is_reserved_by?(current_user)
|
163
|
-
link_to t('manifestation.cancel_reservation'), reserve, :
|
163
|
+
link_to t('manifestation.cancel_reservation'), reserve, confirm: t('page.are_you_sure'), method: :delete
|
164
164
|
else
|
165
|
-
link_to t('manifestation.reserve_this'), new_reserve_path(:
|
165
|
+
link_to t('manifestation.reserve_this'), new_reserve_path(manifestation_id: manifestation.id)
|
166
166
|
end
|
167
167
|
end
|
168
168
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%- if can? :show, manifestation -%>
|
2
2
|
<tr>
|
3
3
|
<td><%= t('manifestation.attachment_file') -%>:</td>
|
4
|
-
<td><%= link_to manifestation.attachment_file_name, manifestation_path(:
|
4
|
+
<td><%= link_to manifestation.attachment_file_name, manifestation_path(format: :download) -%></td>
|
5
5
|
</tr>
|
6
6
|
<%- end -%>
|
@@ -4,6 +4,6 @@
|
|
4
4
|
<li><%= carrier_type_facet(facet) %></li>
|
5
5
|
<%- end -%>
|
6
6
|
<%- if params[:carrier_type] -%>
|
7
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(:
|
7
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(carrier_type: nil, page: nil, view: nil, only_path: true)) -%></li>
|
8
8
|
<%- end -%>
|
9
9
|
</ul>
|
@@ -4,12 +4,12 @@
|
|
4
4
|
<% @classification_facet.each do |category| %>
|
5
5
|
<li>
|
6
6
|
<% if category.value == params[:classification].to_s.downcase %><strong><% end %>
|
7
|
-
<%= link_to "#{t('classification.category', :
|
7
|
+
<%= link_to "#{t('classification.category', number: category.value)} #{category_name(category.value)} (#{category.count})", url_for(params.merge(classification: category.value, page: nil, view: nil, only_path: true)) %>
|
8
8
|
<% if category.value == params[:classification].to_s.downcase %></strong><% end %>
|
9
9
|
</li>
|
10
10
|
<% end %>
|
11
11
|
<%- if params[:classification] -%>
|
12
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(:
|
12
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(classification: nil, page: nil, view: nil, only_path: true)) -%></li>
|
13
13
|
<%- end -%>
|
14
14
|
</ul>
|
15
15
|
<%- else -%>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<div class="search_form">
|
2
|
-
<%= form_for :manifestations, :
|
2
|
+
<%= form_for :manifestations, url: manifestations_path, html: {method: 'get'} do -%>
|
3
3
|
<p>
|
4
4
|
<%= label_tag :search_form_top, t('page.search_term') -%>:
|
5
|
-
<%= search_field_tag 'query', h(@query), {:
|
5
|
+
<%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
|
6
6
|
<%= hidden_field_tag 'reservable', h(@reservable) if @reservable -%>
|
7
7
|
<%= submit_tag t('page.search') -%>
|
8
8
|
<br />
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<div class="search_form">
|
2
|
-
<%= form_for :manifestations, :
|
2
|
+
<%= form_for :manifestations, url: contributor_manifestations_path(@index_agent[:contributor]), html: {method: 'get'} do -%>
|
3
3
|
<p>
|
4
4
|
<%= label_tag :search_form_top, t('page.search_term') -%>:
|
5
|
-
<%= search_field_tag 'query', h(@query), {:
|
5
|
+
<%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
|
6
6
|
<%= hidden_field_tag 'reservable', h(@reservable) if @reservable -%>
|
7
7
|
<% if can? :create, Realize %>
|
8
8
|
<%= render 'page/add' %>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<div class="search_form">
|
2
|
-
<%= form_for :manifestations, :
|
2
|
+
<%= form_for :manifestations, url: creator_manifestations_path(@index_agent[:creator]), html: {method: 'get'} do -%>
|
3
3
|
<p>
|
4
4
|
<%= label_tag :search_form_top, t('page.search_term') -%>:
|
5
|
-
<%= search_field_tag 'query', h(@query), {:
|
5
|
+
<%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
|
6
6
|
<%= hidden_field_tag 'reservable', h(@reservable) if @reservable -%>
|
7
7
|
<% if can? :create, Create %>
|
8
8
|
<%= render 'page/add' %>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<div class="search_form">
|
2
|
-
<%= form_for :manifestations, :
|
2
|
+
<%= form_for :manifestations, url: item_manifestations_path(@item), html: {method: 'get'} do -%>
|
3
3
|
<p>
|
4
4
|
<%= label_tag :search_form_top, t('page.search_term') -%>:
|
5
|
-
<%= search_field_tag 'query', h(@query), {:
|
5
|
+
<%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
|
6
6
|
<% if can? :create, Create %>
|
7
7
|
<%= render 'page/add' %>
|
8
8
|
<% end %>
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<%= form_for :manifestations, :
|
1
|
+
<%= form_for :manifestations, url: manifestation_manifestations_path(@manifestation), html: {method: 'get'} do -%>
|
2
2
|
<p>
|
3
3
|
<%= label_tag :search_form_top, t('page.search_term') -%>:
|
4
|
-
<%= search_field_tag 'query', h(@query), {:
|
4
|
+
<%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
|
5
5
|
<%= hidden_field_tag 'reservable', h(@reservable) if @reservable -%>
|
6
6
|
<% if can? :create, ManifestationRelationship %>
|
7
7
|
<%= render 'page/add' %>
|
@@ -1,13 +1,19 @@
|
|
1
|
+
<%= render 'paginate_id_link', manifestation: @parent, manifestation_ids: @manifestation_ids %>
|
2
|
+
|
1
3
|
<h2 class="resource_title">
|
2
4
|
[M]
|
3
|
-
<%= link_to @parent.original_title, @parent, :
|
5
|
+
<%= link_to @parent.original_title, @parent, itemprop: 'name' -%>
|
6
|
+
<% if @parent.periodical? %>
|
7
|
+
<%= image_tag('icons/newspaper.png', size: '16x16', alt: t('manifestation.serial')) -%>
|
8
|
+
<%- end -%>
|
9
|
+
<%= link_to form_icon(@parent.carrier_type), @parent -%>
|
4
10
|
</h2>
|
5
11
|
|
6
12
|
<div class="search_form">
|
7
|
-
<%= form_for :manifestations, :
|
13
|
+
<%= form_for :manifestations, url: manifestations_path, html: {method: 'get'} do -%>
|
8
14
|
<p>
|
9
15
|
<%= label_tag :search_form_top, t('page.search_term') -%>:
|
10
|
-
<%= search_field_tag 'query', h(@query), {:
|
16
|
+
<%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
|
11
17
|
<%= hidden_field_tag 'parent_id', @parent.id -%>
|
12
18
|
<%= hidden_field_tag 'reservable', h(@reservable) if @reservable -%>
|
13
19
|
<% if can? :update, Manifestation %>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<div class="search_form">
|
2
|
-
<%= form_for :manifestations, :
|
2
|
+
<%= form_for :manifestations, url: publisher_manifestations_path(@index_agent[:publisher]), html: {method: 'get'} do -%>
|
3
3
|
<p>
|
4
4
|
<%= label_tag :search_form_top, t('page.search_term') -%>:
|
5
|
-
<%= search_field_tag 'query', h(@query), {:
|
5
|
+
<%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
|
6
6
|
<%= hidden_field_tag 'reservable', h(@reservable) if @reservable -%>
|
7
7
|
<% if can? :create, Produce %>
|
8
8
|
<%= render 'page/add' %>
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<h2 class="resource_title">
|
2
2
|
[S]
|
3
|
-
<%= link_to @series_statement.original_title, @series_statement, :
|
3
|
+
<%= link_to @series_statement.original_title, @series_statement, itemprop: 'name' -%>
|
4
4
|
</h2>
|
5
5
|
|
6
6
|
<div class="search_form">
|
7
|
-
<%= form_for :manifestations, :
|
7
|
+
<%= form_for :manifestations, url: series_statement_manifestations_path(@series_statement), html: {method: 'get'} do -%>
|
8
8
|
<p>
|
9
9
|
<%= label_tag :search_form_top, t('page.search_term') -%>:
|
10
|
-
<%= search_field_tag 'query', h(@query), {:
|
10
|
+
<%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
|
11
11
|
<%= hidden_field_tag 'reservable', h(@reservable) if @reservable -%>
|
12
12
|
<% if can? :update, Manifestation %>
|
13
13
|
<%= render 'page/add' %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<%- languages = params[:language].to_s.split -%>
|
4
4
|
<%- current_languages = languages.dup -%>
|
5
5
|
<%- @language_facet.each do |facet| -%>
|
6
|
-
<%- language = Language.where(:
|
6
|
+
<%- language = Language.where(name: facet.value).select([:name, :display_name]).first -%>
|
7
7
|
<%- if language -%>
|
8
8
|
<li>
|
9
9
|
<%= language_facet(language, current_languages, facet) %>
|
@@ -11,6 +11,6 @@
|
|
11
11
|
<%- end -%>
|
12
12
|
<%- end -%>
|
13
13
|
<%- if params[:language] -%>
|
14
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(:
|
14
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(language: nil, page: nil, view: nil, only_path: true)) -%></li>
|
15
15
|
<%- end -%>
|
16
16
|
</ul>
|
@@ -6,6 +6,6 @@
|
|
6
6
|
<%= library_facet(current_libraries, facet) %>
|
7
7
|
<%- end -%>
|
8
8
|
<%- if params[:library] -%>
|
9
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(:
|
9
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(library: nil, page: nil, view: nil, only_path: true)) -%></li>
|
10
10
|
<%- end -%>
|
11
11
|
</ul>
|
@@ -7,10 +7,10 @@
|
|
7
7
|
|
8
8
|
<div>
|
9
9
|
<%- if manifestations and manifestations.size > @manifestations.limit_value.div(2) -%>
|
10
|
-
<%= form_for :manifestations, :
|
10
|
+
<%= form_for :manifestations, html: {method: 'get'} do -%>
|
11
11
|
<p>
|
12
12
|
<%= label_tag :search_form_bottom, t('page.search_term') -%>:
|
13
|
-
<%= search_field_tag 'query', h(@query), {:
|
13
|
+
<%= search_field_tag 'query', h(@query), {id: 'search_form_bottom', class: 'search_form', placeholder: t('page.search_term')} -%>
|
14
14
|
<%= hidden_field_tag 'reservable', h(@reservable) if @reservable -%>
|
15
15
|
<%= submit_tag t('page.search') -%>
|
16
16
|
<br />
|
@@ -1,60 +1,62 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
<tr class="line<%= cycle("0", "1") -%>">
|
2
|
+
<td style="width: 30px"><%= @manifestations.offset_value + 1 + manifestation_counter -%></td>
|
3
|
+
<% cache([manifestation, fragment: 'manifestation_html', role: current_user_role_name, locale: @locale]) do %>
|
3
4
|
<td style="480px">
|
4
|
-
|
5
|
-
|
5
|
+
<% if manifestation.root_series_statement %>
|
6
|
+
<%= render 'manifestations/show_series_index', manifestation: manifestation, series_statement: manifestation.root_series_statement -%>
|
7
|
+
<% else %>
|
8
|
+
<%= render 'manifestations/show_index', manifestation: manifestation -%>
|
9
|
+
<div class="access_address">
|
10
|
+
<%= link_to manifestation.access_address, manifestation.access_address if manifestation.access_address.present? -%>
|
11
|
+
</div>
|
12
|
+
<% if current_user.try(:has_role?, 'Librarian') %>
|
13
|
+
<%- unless manifestation.items.empty? -%>
|
14
|
+
(<%= link_to_function t('page.holding'), "$('#holding_#{manifestation.id}').toggle()" -%>)
|
15
|
+
<% end %>
|
6
16
|
<% else %>
|
7
|
-
|
8
|
-
|
9
|
-
<%= link_to manifestation.access_address, manifestation.access_address if manifestation.access_address.present? -%>
|
10
|
-
</div>
|
11
|
-
<% if current_user.try(:has_role?, 'Librarian') %>
|
12
|
-
<%- unless manifestation.items.on_shelf.empty? -%>
|
13
|
-
(<%= link_to_function t('page.holding'), "$('#holding_#{manifestation.id}').toggle()" -%>)
|
14
|
-
<% end %>
|
15
|
-
<% else %>
|
16
|
-
<%- unless manifestation.items.for_checkout.on_shelf.empty? -%>
|
17
|
-
(<%= link_to_function t('page.holding'), "$('#holding_#{manifestation.id}').toggle()" -%>)
|
18
|
-
<%- end -%>
|
17
|
+
<%- unless manifestation.items.for_checkout.on_shelf.empty? -%>
|
18
|
+
(<%= link_to_function t('page.holding'), "$('#holding_#{manifestation.id}').toggle()" -%>)
|
19
19
|
<%- end -%>
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
20
|
+
<%- end -%>
|
21
|
+
<% if defined?(EnjuBookmark) %>
|
22
|
+
<%- if manifestation.tags.first -%>
|
23
|
+
(<%= link_to_function t('activerecord.models.tag'), "$('#tag_#{manifestation.id}').toggle()" -%>)
|
24
|
+
<%- end -%>
|
25
|
+
<%= render 'manifestations/show_tag', manifestation: manifestation -%>
|
26
26
|
<% end %>
|
27
|
-
|
27
|
+
<% end %>
|
28
|
+
<%= render 'manifestations/holding', manifestation: manifestation -%>
|
28
29
|
</td>
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
<% end %>
|
41
|
-
<br />
|
30
|
+
<% if signed_in? %>
|
31
|
+
<td id="edit_icons">
|
32
|
+
<% if defined?(EnjuCirculation) %>
|
33
|
+
<% unless params[:mode] == 'add' %>
|
34
|
+
<% if manifestation.is_reservable_by?(current_user) %>
|
35
|
+
<%- reserve = manifestation.is_reserved_by?(current_user) -%>
|
36
|
+
<%- if reserve -%>
|
37
|
+
<%= link_to t('reserve.show'), reserve -%>
|
38
|
+
<%- else -%>
|
39
|
+
<%= link_to t('activerecord.models.reserve'), new_reserve_path(manifestation_id: manifestation.id) if can? :create, Reserve -%>
|
40
|
+
<%- end -%>
|
42
41
|
<% end %>
|
42
|
+
<br />
|
43
43
|
<% end %>
|
44
|
-
|
45
|
-
|
46
|
-
|
44
|
+
<% end %>
|
45
|
+
<%- if can? :update, manifestation -%>
|
46
|
+
<% unless params[:mode] == 'add' %>
|
47
|
+
<%= link_to image_tag('icons/book_edit.png', size: '16x16', alt: t('page.edit')), edit_manifestation_path(manifestation) -%>
|
48
|
+
<% else %>
|
49
|
+
<% case %>
|
50
|
+
<% when @parent %>
|
51
|
+
<%= link_to t('page.add'), new_manifestation_relationship_path(manifestation_id: @parent.id, child_id: manifestation.id) unless @parent.derived_manifestations.include?(manifestation) or @parent == manifestation -%>
|
52
|
+
<% when @item %>
|
53
|
+
<%= link_to t('page.change'), edit_item_path(@item, manifestation_id: manifestation.id) unless @item.manifestation == manifestation -%>
|
47
54
|
<% else %>
|
48
|
-
|
49
|
-
|
50
|
-
<%= link_to t('page.add'), new_manifestation_manifestation_relationship_path(@parent, :child_id => manifestation.id) unless @parent.derived_manifestations.include?(manifestation) or @parent == manifestation -%>
|
51
|
-
<% when @item %>
|
52
|
-
<%= link_to t('page.change'), edit_exemplify_path(@item.exemplify, :manifestation_id => manifestation.id) unless @item.manifestation == manifestation -%>
|
53
|
-
<% else %>
|
54
|
-
<%= link_to image_tag('icons/arrow_divide.png', :size => '16x16', :alt => t('manifestation.add_derivation')), new_manifestation_path(:parent_id => manifestation.id) -%>
|
55
|
-
<% end %>
|
56
|
-
<%- end -%>
|
55
|
+
<%= link_to image_tag('icons/arrow_divide.png', size: '16x16', alt: t('manifestation.add_derivation')), new_manifestation_path(parent_id: manifestation.id) -%>
|
56
|
+
<% end %>
|
57
57
|
<%- end -%>
|
58
|
-
|
59
|
-
|
60
|
-
|
58
|
+
<%- end -%>
|
59
|
+
</td>
|
60
|
+
<% end %>
|
61
|
+
<% end %>
|
62
|
+
</tr>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
[M]
|
6
6
|
<%= link_to manifestation.original_title, manifestation -%>
|
7
7
|
<%= form_icon(manifestation.carrier_type) -%>
|
8
|
-
<%= link_to image_tag('icons/world_go.png', :
|
8
|
+
<%= link_to image_tag('icons/world_go.png', size: '16x16', alt: ('Web')), manifestation.access_address if manifestation.access_address? -%>
|
9
9
|
<%= agents_list(manifestation.creators.readable_by(current_user)) -%>
|
10
10
|
<%= agents_list(manifestation.contributors.readable_by(current_user)) -%>
|
11
11
|
<%= agents_list(manifestation.publishers.readable_by(current_user)) -%>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
[M]
|
20
20
|
<%= link_to manifestation.original_title, manifestation -%>
|
21
21
|
<%= form_icon(manifestation.carrier_type) -%>
|
22
|
-
<%= link_to image_tag('icons/world_go.png', :
|
22
|
+
<%= link_to image_tag('icons/world_go.png', size: '16x16', alt: ('Web')), manifestation.access_address if manifestation.access_address? -%>
|
23
23
|
<%= agents_list(manifestation.creators.readable_by(current_user)) -%>
|
24
24
|
<%= agents_list(manifestation.contributors.readable_by(current_user)) -%>
|
25
25
|
<%= agents_list(manifestation.publishers.readable_by(current_user)) -%>
|
@@ -17,13 +17,13 @@
|
|
17
17
|
</script>
|
18
18
|
<% end %>
|
19
19
|
|
20
|
-
<%= form_for :manifestations, :
|
20
|
+
<%= form_for :manifestations, url: manifestations_path, html: {method: 'get'} do -%>
|
21
21
|
<div>
|
22
22
|
<span id="next_link"><%= t('page.next') %></span>
|
23
23
|
<span id="prev_link"><%= t('page.previous') %></span>
|
24
24
|
<%= back_to_manifestation_index -%>
|
25
25
|
<%= label_tag :search_form_top, t('page.search_term') -%>:
|
26
|
-
<%= search_field_tag 'query', @query, {:
|
26
|
+
<%= search_field_tag 'query', @query, {id: 'search_form_top', class: 'search_form_short', placeholder: t('page.search_term')} -%>
|
27
27
|
<%= submit_tag t('page.search') -%>
|
28
28
|
<%= link_to t('page.advanced_search'), page_advanced_search_path -%>
|
29
29
|
</div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% if manifestation %>
|
2
|
-
<% cache(
|
2
|
+
<% cache([manifestation, fragment: 'pickup_html', role: current_user_role_name, locale: @locale]) do %>
|
3
3
|
<div id="pickup_book_jacket">
|
4
4
|
<%= book_jacket(manifestation) -%>
|
5
5
|
</div>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<p>
|
9
9
|
<strong><%= t('activerecord.models.subject') -%>:</strong>
|
10
10
|
<%- manifestation.subjects.each do |subject| -%>
|
11
|
-
<%= link_to subject.term, manifestations_path(:
|
11
|
+
<%= link_to subject.term, manifestations_path(query: "subject_sm:\"#{h(subject.term)}\"") -%>
|
12
12
|
<%- end -%>
|
13
13
|
</p>
|
14
14
|
<% end %>
|
@@ -16,15 +16,15 @@
|
|
16
16
|
<p>
|
17
17
|
<strong><%= t('page.tag') -%>:</strong>
|
18
18
|
<%- manifestation.tags.each do |tag| -%>
|
19
|
-
<%= link_to tag.name, manifestations_path(:
|
19
|
+
<%= link_to tag.name, manifestations_path(tag: tag.name) -%>
|
20
20
|
<%- end -%>
|
21
21
|
</p>
|
22
22
|
<% end %>
|
23
23
|
</div>
|
24
24
|
<div style="clear: both"></div>
|
25
25
|
<div style="margin-top: 5px">
|
26
|
-
<%= render 'manifestations/show_index', :
|
27
|
-
<%= render 'manifestations/holding', :
|
26
|
+
<%= render 'manifestations/show_index', manifestation: manifestation -%>
|
27
|
+
<%= render 'manifestations/holding', manifestation: manifestation -%>
|
28
28
|
</div>
|
29
29
|
<% end %>
|
30
30
|
<% end %>
|
@@ -6,6 +6,6 @@
|
|
6
6
|
</li>
|
7
7
|
<%- end -%>
|
8
8
|
<%- if params[:pub_date_from] and params[:pub_date_to] -%>
|
9
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(:
|
9
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(pub_date_from: nil, pub_date_to: nil, page: nil, view: nil, only_path: true)) -%></li>
|
10
10
|
<%- end -%>
|
11
11
|
</ul>
|
@@ -4,11 +4,11 @@
|
|
4
4
|
<% facet.value ? facet_reservable = true : facet_reservable = false %>
|
5
5
|
<li>
|
6
6
|
<%- if @reservable == facet_reservable -%><strong><%- end -%>
|
7
|
-
<%= link_to "#{localized_boolean(facet.value)} (#{facet.count})", url_for(params.merge(:
|
7
|
+
<%= link_to "#{localized_boolean(facet.value)} (#{facet.count})", url_for(params.merge(page: nil, reservable: facet.value.to_s, view: nil, only_path: true)) -%>
|
8
8
|
<%- if @reservable == facet_reservable -%></strong><%- end -%>
|
9
9
|
</li>
|
10
10
|
<%- end -%>
|
11
11
|
<%- unless @reservable.nil? -%>
|
12
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(:
|
12
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(reservable: nil, page: nil, view: nil, only_path: true)) -%></li>
|
13
13
|
<%- end -%>
|
14
14
|
</ul>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%- @search_engines.each do |search_engine| -%>
|
2
2
|
<p>
|
3
|
-
<%= form_tag search_engine.base_url, :
|
3
|
+
<%= form_tag search_engine.base_url, method: search_engine.http_method do -%>
|
4
4
|
<%= link_to search_engine.name, search_engine.url -%>
|
5
5
|
<%= submit_tag t('page.search') -%>
|
6
6
|
<br />
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<%- if params[:mode] == 'show_all_creators' -%>
|
2
2
|
<%= agents_list(manifestation.creators.readable_by(current_user)) %>
|
3
3
|
<%- if manifestation.creators.readable_by(current_user).size > 5 -%>
|
4
|
-
(<a href="#" onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#creator_list_<%= manifestation.id %>').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, :
|
4
|
+
(<a href="#" onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#creator_list_<%= manifestation.id %>').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, index_num: manifestation.id, mode: 'show_creators') %>'}); return false;"><%= t('page.hide') %></a>)
|
5
5
|
<%- end -%>
|
6
6
|
<%- else -%>
|
7
7
|
<%= agents_list(manifestation.creators.readable_by(current_user)[0..2]) %>
|
8
8
|
<%- if manifestation.creators.readable_by(current_user).size > 5 -%>
|
9
|
-
(<a href="#" onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#creator_list_<%= manifestation.id %>').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, :
|
9
|
+
(<a href="#" onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#creator_list_<%= manifestation.id %>').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, index_num: manifestation.id, mode: 'show_all_creators') %>'}); return false;"><%= t('page.show_all') %></a>)
|
10
10
|
<%- end -%>
|
11
11
|
<%- end -%>
|
12
12
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<%- if params[:mode] == 'show_all_creators' -%>
|
2
2
|
<%= agents_list(manifestation.creators.readable_by(current_user)) %>
|
3
3
|
<%- if manifestation.creators.readable_by(current_user).size > 5 -%>
|
4
|
-
(<a href="#" onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#creator_list_<%= manifestation.id %>').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, :
|
4
|
+
(<a href="#" onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#creator_list_<%= manifestation.id %>').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, index_num: manifestation.id, mode: 'show_creators') %>'}); return false;"><%= t('page.hide') %></a>)
|
5
5
|
<%- end -%>
|
6
6
|
<%- else -%>
|
7
7
|
<%= agents_list(manifestation.creators.readable_by(current_user)[0..2]) %>
|
8
8
|
<%- if manifestation.creators.readable_by(current_user).size > 5 -%>
|
9
|
-
(<a href="#" onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#creator_list_<%= manifestation.id %>').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, :
|
9
|
+
(<a href="#" onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#creator_list_<%= manifestation.id %>').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, index_num: manifestation.id, mode: 'show_all_creators') %>'}); return false;"><%= t('page.show_all') %></a>)
|
10
10
|
<%- end -%>
|
11
11
|
<%- end -%>
|
12
12
|
|