enju_biblio 0.1.0.pre19 → 0.1.0.pre20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/manifestations/_book_jacket.html.erb +1 -1
- data/app/views/manifestations/_list.html.erb +0 -15
- data/app/views/manifestations/_manifestation.html.erb +0 -12
- data/app/views/manifestations/_pickup.html.erb +0 -8
- data/app/views/manifestations/_show_detail_librarian.html.erb +0 -8
- data/app/views/manifestations/_show_detail_user.html.erb +0 -8
- data/app/views/manifestations/_show_holding.html.erb +0 -15
- data/app/views/manifestations/index.atom.builder +0 -3
- data/app/views/manifestations/index.html.erb +6 -35
- data/app/views/manifestations/index.opds.builder +0 -3
- data/app/views/manifestations/index.rss.builder +0 -5
- data/app/views/manifestations/show.html.erb +0 -3
- data/lib/enju_biblio/engine.rb +1 -0
- data/lib/enju_biblio/version.rb +1 -1
- data/spec/controllers/manifestations_controller_spec.rb +0 -35
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_fj +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments.gen +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +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
- metadata +15 -13
- data/app/views/manifestations/_all_facet.html.erb +0 -8
- data/app/views/manifestations/_carrier_type_facet.html.erb +0 -9
- data/app/views/manifestations/_language_facet.html.erb +0 -16
- data/app/views/manifestations/_library_facet.html.erb +0 -11
- data/app/views/manifestations/_pub_year_facet.html.erb +0 -11
- data/app/views/manifestations/_reservable_facet.html.erb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aecbc0477fe4b4c9060346bfda5ac15c2cd035d1
|
4
|
+
data.tar.gz: 56e785276f3708e7675dfeffc3b005841ba09968
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bec7bf7ef3bc253b7d1b031e02ab5b5073a2dd3dd4f81673aeb9e6e30373e71e38adbb607db040ec954abfbdae11f7cb187928234ed1cc59fc1a0a173e65b7b
|
7
|
+
data.tar.gz: 6cae1aa3708892aa5e323593c5c1f694c786a62f4f3f9d18194f4547bb4545e6ad29131322b05d462fdf03010d336db67c481cc5e7baf6f4f58e23f1e5bc71c8
|
@@ -4,18 +4,3 @@
|
|
4
4
|
|
5
5
|
<%= paginate(manifestations) -%>
|
6
6
|
<br />
|
7
|
-
|
8
|
-
<div>
|
9
|
-
<%- if manifestations and manifestations.size > @manifestations.limit_value.div(2) -%>
|
10
|
-
<%= form_for :manifestations, :html => {:method => 'get'} do -%>
|
11
|
-
<p>
|
12
|
-
<%= label_tag :search_form_bottom, t('page.search_term') -%>:
|
13
|
-
<%= search_field_tag 'query', h(@query), {:id => 'search_form_bottom', :class => 'search_form', :placeholder => t('page.search_term')} -%>
|
14
|
-
<%= hidden_field_tag 'reservable', h(@reservable) if @reservable -%>
|
15
|
-
<%= submit_tag t('page.search') -%>
|
16
|
-
<br />
|
17
|
-
<%= link_to t('page.advanced_search'), page_advanced_search_path -%>
|
18
|
-
</p>
|
19
|
-
<%- end -%>
|
20
|
-
<%- end -%>
|
21
|
-
</div>
|
@@ -9,18 +9,6 @@
|
|
9
9
|
<div class="access_address">
|
10
10
|
<%= link_to manifestation.access_address, manifestation.access_address if manifestation.access_address.present? -%>
|
11
11
|
</div>
|
12
|
-
<%- unless manifestation.items.on_shelf.empty? -%>
|
13
|
-
(<%= link_to_function t('page.holding'), "$('#holding_#{manifestation.id}').toggle()" -%>)
|
14
|
-
<%- end -%>
|
15
|
-
<% if defined?(EnjuBookmark) %>
|
16
|
-
<%- if manifestation.tags.first -%>
|
17
|
-
(<%= link_to_function t('activerecord.models.tag'), "$('#tag_#{manifestation.id}').toggle()" -%>)
|
18
|
-
<%- end -%>
|
19
|
-
<%= render 'manifestations/show_tag', :manifestation => manifestation -%>
|
20
|
-
<% end %>
|
21
|
-
<%= render 'manifestations/holding', :manifestation => manifestation -%>
|
22
|
-
<%# グループ表示の部分テンプレート %>
|
23
|
-
<%= render 'manifestations/show_group', :manifestation => manifestation -%>
|
24
12
|
<% end %>
|
25
13
|
<% end %>
|
26
14
|
</td>
|
@@ -12,14 +12,6 @@
|
|
12
12
|
<%- end -%>
|
13
13
|
</p>
|
14
14
|
<% end %>
|
15
|
-
<% if defined?(EnjuBookmark) %>
|
16
|
-
<p>
|
17
|
-
<strong><%= t('page.tag') -%>:</strong>
|
18
|
-
<%- manifestation.tags.each do |tag| -%>
|
19
|
-
<%= link_to tag.name, manifestations_path(:tag => tag.name) -%>
|
20
|
-
<%- end -%>
|
21
|
-
</p>
|
22
|
-
<% end %>
|
23
15
|
</div>
|
24
16
|
<div style="clear: both"></div>
|
25
17
|
<div style="margin-top: 5px">
|
@@ -74,14 +74,6 @@
|
|
74
74
|
</td>
|
75
75
|
</tr>
|
76
76
|
<% end %>
|
77
|
-
<% if defined?(EnjuBookmark) %>
|
78
|
-
<tr>
|
79
|
-
<td><%= t('activerecord.models.tag') -%>:</td>
|
80
|
-
<td>
|
81
|
-
<%= render 'manifestations/tag_list', :manifestation => manifestation -%>
|
82
|
-
</td>
|
83
|
-
</tr>
|
84
|
-
<% end %>
|
85
77
|
<%- unless manifestation.periodical? -%>
|
86
78
|
<tr>
|
87
79
|
<td><%= t('page.identifier') -%>:</td>
|
@@ -65,14 +65,6 @@
|
|
65
65
|
</tr>
|
66
66
|
<%- end -%>
|
67
67
|
<% end %>
|
68
|
-
<% if defined?(EnjuBookmark) %>
|
69
|
-
<tr>
|
70
|
-
<td><%= t('activerecord.models.tag') -%>:</td>
|
71
|
-
<td>
|
72
|
-
<%= render 'manifestations/tag_list', :manifestation => manifestation -%>
|
73
|
-
</td>
|
74
|
-
</tr>
|
75
|
-
<% end %>
|
76
68
|
<%- unless manifestation.periodical? -%>
|
77
69
|
<tr>
|
78
70
|
<td><%= t('page.identifier') -%>:</td>
|
@@ -40,21 +40,6 @@
|
|
40
40
|
</td>
|
41
41
|
<% end %>
|
42
42
|
</tr>
|
43
|
-
<% if can? :update, item %>
|
44
|
-
<script>
|
45
|
-
$(function(){
|
46
|
-
$('a#item_identifier_item_<%= item.id %>').data(
|
47
|
-
'powertip',
|
48
|
-
'item_identifier: <%= item.item_identifier %>'
|
49
|
-
);
|
50
|
-
$('a#item_identifier_item_<%= item.id %>').powerTip({
|
51
|
-
placement: 'e',
|
52
|
-
mouseOnToPopup: true
|
53
|
-
});
|
54
|
-
});
|
55
|
-
</script>
|
56
|
-
<%= render 'items/tooltip', :item => item %>
|
57
|
-
<% end %>
|
58
43
|
<%- end -%>
|
59
44
|
</table>
|
60
45
|
</div>
|
@@ -5,9 +5,6 @@ atom_feed(:url => manifestations_url(:format => :atom)) do |feed|
|
|
5
5
|
@manifestations.each do |manifestation|
|
6
6
|
feed.entry(manifestation) do |entry|
|
7
7
|
entry.title(manifestation.original_title)
|
8
|
-
if defined?(EnjuBookmark)
|
9
|
-
entry.content(manifestation.tags.join(' '), :type => 'html')
|
10
|
-
end
|
11
8
|
|
12
9
|
manifestation.creators.readable_by(current_user).each do |patron|
|
13
10
|
entry.author do |author|
|
@@ -54,22 +54,16 @@
|
|
54
54
|
</p>
|
55
55
|
|
56
56
|
<div class="autopagerize_page_element" id="list">
|
57
|
-
|
57
|
+
<table class="table table-striped index" id="manifestation_list">
|
58
|
+
<%= render @manifestations %>
|
59
|
+
</table>
|
60
|
+
|
61
|
+
<%= paginate(@manifestations) -%>
|
62
|
+
<br />
|
58
63
|
</div>
|
59
64
|
|
60
|
-
<% if defined?(EnjuBookmark) %>
|
61
|
-
<div id="tag_cloud">
|
62
|
-
<h3 class="resource_title"><%= t('activerecord.models.tag') -%></h3>
|
63
|
-
<div id="tag_cloud_list"></div>
|
64
|
-
<%= image_tag 'spinner.gif', :id => 'spinner_tag_cloud',
|
65
|
-
:style => 'padding-bottom: 15px; padding-left: 40px;' -%>
|
66
|
-
</div>
|
67
|
-
<% end %>
|
68
65
|
<%- else -%>
|
69
66
|
<!-- TODO: 検索結果が少ない場合にも表示させる -->
|
70
|
-
<%- if @suggested_tag -%>
|
71
|
-
<p><%= t('page.did_you_mean') -%>: <%= link_to @suggested_tag.name, manifestations_path(:tag => @suggested_tag.name) -%></p>
|
72
|
-
<%- end -%>
|
73
67
|
<%= render 'manifestations/not_found' -%>
|
74
68
|
<%- end -%>
|
75
69
|
|
@@ -82,31 +76,8 @@
|
|
82
76
|
<% if @series_statement and can?(:update, @series_statement) %>
|
83
77
|
<%= render 'submenu_series_statement' %>
|
84
78
|
<% end %>
|
85
|
-
<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>
|
86
|
-
<%- if @manifestations.total_count > 0 -%>
|
87
|
-
<%= render 'manifestations/all_facet' -%>
|
88
|
-
<%- end -%>
|
89
|
-
<div>
|
90
|
-
<%- if params[:library_id].blank? -%>
|
91
|
-
<%= 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)) -%>
|
92
|
-
<%- else -%>
|
93
|
-
<%= 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)) -%>
|
94
|
-
<%- end -%>
|
95
|
-
</div>
|
96
79
|
</div>
|
97
80
|
|
98
|
-
<% if defined?(EnjuBookmark) %>
|
99
|
-
<script type="text/javascript">
|
100
|
-
window.onload = function() {
|
101
|
-
$("#tag_cloud_list").load('<%= url_for(params.merge(:view => "tag_cloud", :only_path => true)) -%>', hideTagCloudSpinner);
|
102
|
-
}
|
103
|
-
|
104
|
-
function hideTagCloudSpinner(){
|
105
|
-
$("#spinner_tag_cloud").hide();
|
106
|
-
}
|
107
|
-
</script>
|
108
|
-
<% end %>
|
109
|
-
|
110
81
|
<% if @manifestation_ids and @search_query %>
|
111
82
|
<%= render 'session_ids' %>
|
112
83
|
<% end %>
|
@@ -10,9 +10,6 @@ atom_feed(:url => manifestations_url(:format => :atom),
|
|
10
10
|
feed.entry(manifestation) do |entry|
|
11
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
|
-
if defined?(EnjuBookmark)
|
14
|
-
entry.content(manifestation.tags.join(' '), :type => 'html')
|
15
|
-
end
|
16
13
|
|
17
14
|
manifestation.creators.readable_by(current_user).each do |patron|
|
18
15
|
entry.author do |author|
|
@@ -30,11 +30,6 @@ xml.rss('version' => "2.0",
|
|
30
30
|
xml.pubDate manifestation.date_of_publication.try(:utc).try(:rfc822)
|
31
31
|
xml.link manifestation_url(manifestation)
|
32
32
|
xml.guid manifestation_url(manifestation), :isPermaLink => "true"
|
33
|
-
if defined?(EnjuBookmark)
|
34
|
-
manifestation.tags.each do |tag|
|
35
|
-
xml.category tag
|
36
|
-
end
|
37
|
-
end
|
38
33
|
xml.tag! "dc:identifier", manifestation.isbn
|
39
34
|
end
|
40
35
|
end
|
@@ -48,9 +48,6 @@
|
|
48
48
|
<%- if current_user.email.present? -%>
|
49
49
|
<li><%= link_to t('manifestation.send_email'), manifestation_path(:mode => 'send_email'), :data => {:confirm => t('page.are_you_sure')} -%></li>
|
50
50
|
<%- end -%>
|
51
|
-
<% if defined?(EnjuBookmark) %>
|
52
|
-
<li><%= link_to_bookmark(@manifestation) %></li>
|
53
|
-
<% end %>
|
54
51
|
<% end %>
|
55
52
|
|
56
53
|
<%- unless @manifestation.carrier_type.name == 'file' -%>
|
data/lib/enju_biblio/engine.rb
CHANGED
data/lib/enju_biblio/version.rb
CHANGED
@@ -182,41 +182,6 @@ describe ManifestationsController do
|
|
182
182
|
assigns(:query).should eq '2005 date_of_publication_d:[* TO 2000-12-31T14:59:59Z]'
|
183
183
|
end
|
184
184
|
|
185
|
-
it "should get index_all_facet" do
|
186
|
-
get :index, :query => '2005', :view => 'all_facet'
|
187
|
-
response.should be_success
|
188
|
-
assigns(:carrier_type_facet).should_not be_empty
|
189
|
-
assigns(:language_facet).should_not be_empty
|
190
|
-
assigns(:library_facet).should_not be_empty
|
191
|
-
end
|
192
|
-
|
193
|
-
it "should get index_carrier_type_facet" do
|
194
|
-
get :index, :query => '2005', :view => 'carrier_type_facet'
|
195
|
-
response.should be_success
|
196
|
-
assigns(:carrier_type_facet).should_not be_empty
|
197
|
-
end
|
198
|
-
|
199
|
-
it "should get index_language_facet" do
|
200
|
-
get :index, :query => '2005', :view => 'language_facet'
|
201
|
-
response.should be_success
|
202
|
-
assigns(:language_facet).should_not be_empty
|
203
|
-
end
|
204
|
-
|
205
|
-
it "should get index_library_facet" do
|
206
|
-
get :index, :query => '2005', :view => 'library_facet'
|
207
|
-
response.should be_success
|
208
|
-
assigns(:library_facet).should_not be_empty
|
209
|
-
end
|
210
|
-
|
211
|
-
it "should get index_pub_year_facet" do
|
212
|
-
get :index, :view => 'pub_year_facet'
|
213
|
-
response.should be_success
|
214
|
-
assigns(:pub_year_facet).first.value.should eq 2010.0..2020.0
|
215
|
-
assigns(:pub_year_facet).first.count.should eq 1
|
216
|
-
assigns(:pub_year_facet).last.value.should eq 2000.0..2010.0
|
217
|
-
assigns(:pub_year_facet).last.count.should eq 1
|
218
|
-
end
|
219
|
-
|
220
185
|
it "should get tag_cloud" do
|
221
186
|
get :index, :query => '2005', :view => 'tag_cloud'
|
222
187
|
response.should be_success
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_biblio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosuke Tanabe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-02-
|
11
|
+
date: 2013-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -310,14 +310,14 @@ dependencies:
|
|
310
310
|
requirements:
|
311
311
|
- - ~>
|
312
312
|
- !ruby/object:Gem::Version
|
313
|
-
version: 2.0.0
|
313
|
+
version: 2.0.0
|
314
314
|
type: :development
|
315
315
|
prerelease: false
|
316
316
|
version_requirements: !ruby/object:Gem::Requirement
|
317
317
|
requirements:
|
318
318
|
- - ~>
|
319
319
|
- !ruby/object:Gem::Version
|
320
|
-
version: 2.0.0
|
320
|
+
version: 2.0.0
|
321
321
|
- !ruby/object:Gem::Dependency
|
322
322
|
name: enju_library
|
323
323
|
requirement: !ruby/object:Gem::Requirement
|
@@ -394,14 +394,14 @@ dependencies:
|
|
394
394
|
requirements:
|
395
395
|
- - ~>
|
396
396
|
- !ruby/object:Gem::Version
|
397
|
-
version: 0.1.0.
|
397
|
+
version: 0.1.0.pre6
|
398
398
|
type: :development
|
399
399
|
prerelease: false
|
400
400
|
version_requirements: !ruby/object:Gem::Requirement
|
401
401
|
requirements:
|
402
402
|
- - ~>
|
403
403
|
- !ruby/object:Gem::Version
|
404
|
-
version: 0.1.0.
|
404
|
+
version: 0.1.0.pre6
|
405
405
|
- !ruby/object:Gem::Dependency
|
406
406
|
name: enju_export
|
407
407
|
requirement: !ruby/object:Gem::Requirement
|
@@ -665,11 +665,9 @@ files:
|
|
665
665
|
- app/views/manifestation_relationships/index.html.erb
|
666
666
|
- app/views/manifestation_relationships/new.html.erb
|
667
667
|
- app/views/manifestation_relationships/show.html.erb
|
668
|
-
- app/views/manifestations/_all_facet.html.erb
|
669
668
|
- app/views/manifestations/_attachment_file.html.erb
|
670
669
|
- app/views/manifestations/_book_jacket.html.erb
|
671
670
|
- app/views/manifestations/_call_number.html.erb
|
672
|
-
- app/views/manifestations/_carrier_type_facet.html.erb
|
673
671
|
- app/views/manifestations/_edition_and_number.html.erb
|
674
672
|
- app/views/manifestations/_form.html.erb
|
675
673
|
- app/views/manifestations/_history_list.html.erb
|
@@ -681,17 +679,13 @@ files:
|
|
681
679
|
- app/views/manifestations/_index_form_manifestation.html.erb
|
682
680
|
- app/views/manifestations/_index_form_publisher.html.erb
|
683
681
|
- app/views/manifestations/_index_form_series_statement.html.erb
|
684
|
-
- app/views/manifestations/_language_facet.html.erb
|
685
|
-
- app/views/manifestations/_library_facet.html.erb
|
686
682
|
- app/views/manifestations/_list.html.erb
|
687
683
|
- app/views/manifestations/_manifestation.html.erb
|
688
684
|
- app/views/manifestations/_manifestation_list.html.erb
|
689
685
|
- app/views/manifestations/_not_found.html.erb
|
690
686
|
- app/views/manifestations/_paginate_id_link.html.erb
|
691
687
|
- app/views/manifestations/_pickup.html.erb
|
692
|
-
- app/views/manifestations/_pub_year_facet.html.erb
|
693
688
|
- app/views/manifestations/_question_list.html.erb
|
694
|
-
- app/views/manifestations/_reservable_facet.html.erb
|
695
689
|
- app/views/manifestations/_search_engine.html.erb
|
696
690
|
- app/views/manifestations/_serial_form.html.erb
|
697
691
|
- app/views/manifestations/_session_ids.html.erb
|
@@ -1145,6 +1139,10 @@ files:
|
|
1145
1139
|
- spec/dummy/solr/conf/spellings.txt
|
1146
1140
|
- spec/dummy/solr/conf/stopwords.txt
|
1147
1141
|
- spec/dummy/solr/conf/synonyms.txt
|
1142
|
+
- spec/dummy/solr/data/test/index/segments.gen
|
1143
|
+
- spec/dummy/solr/data/test/index/segments_fj
|
1144
|
+
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
1145
|
+
- spec/dummy/solr/data/test/spellchecker/segments_1
|
1148
1146
|
- spec/dummy/tmp/cache/4F7/F90/default_role
|
1149
1147
|
- spec/dummy/tmp/cache/6E4/420/search_engine_all
|
1150
1148
|
- spec/factories/basket.rb
|
@@ -1371,7 +1369,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1371
1369
|
version: 1.3.1
|
1372
1370
|
requirements: []
|
1373
1371
|
rubyforge_project:
|
1374
|
-
rubygems_version: 2.0.0
|
1372
|
+
rubygems_version: 2.0.0
|
1375
1373
|
signing_key:
|
1376
1374
|
specification_version: 4
|
1377
1375
|
summary: enju_biblio plugin
|
@@ -1571,6 +1569,10 @@ test_files:
|
|
1571
1569
|
- spec/dummy/solr/conf/spellings.txt
|
1572
1570
|
- spec/dummy/solr/conf/stopwords.txt
|
1573
1571
|
- spec/dummy/solr/conf/synonyms.txt
|
1572
|
+
- spec/dummy/solr/data/test/index/segments.gen
|
1573
|
+
- spec/dummy/solr/data/test/index/segments_fj
|
1574
|
+
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
1575
|
+
- spec/dummy/solr/data/test/spellchecker/segments_1
|
1574
1576
|
- spec/dummy/tmp/cache/4F7/F90/default_role
|
1575
1577
|
- spec/dummy/tmp/cache/6E4/420/search_engine_all
|
1576
1578
|
- spec/factories/basket.rb
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<%= render 'manifestations/carrier_type_facet' -%>
|
2
|
-
<%= render 'manifestations/library_facet' -%>
|
3
|
-
<%= render 'manifestations/language_facet' -%>
|
4
|
-
<%= render 'manifestations/pub_year_facet' -%>
|
5
|
-
<%=
|
6
|
-
#render 'manifestations/subject_facet'
|
7
|
-
-%>
|
8
|
-
<%= render 'manifestations/reservable_facet' if defined?(EnjuCirculation) -%>
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<h4><%= t('activerecord.models.carrier_type') -%></h4>
|
2
|
-
<ul>
|
3
|
-
<%- @carrier_type_facet.each do |facet| -%>
|
4
|
-
<li><%= carrier_type_facet(facet) %></li>
|
5
|
-
<%- end -%>
|
6
|
-
<%- if params[:carrier_type] -%>
|
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
|
-
<%- end -%>
|
9
|
-
</ul>
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<h4><%= t('activerecord.models.language') -%></h4>
|
2
|
-
<ul>
|
3
|
-
<%- languages = params[:language].to_s.split -%>
|
4
|
-
<%- current_languages = languages.dup -%>
|
5
|
-
<%- @language_facet.each do |facet| -%>
|
6
|
-
<%- language = Language.where(:name => facet.value).select([:name, :display_name]).first -%>
|
7
|
-
<%- if language -%>
|
8
|
-
<li>
|
9
|
-
<%= language_facet(language, current_languages, facet) %>
|
10
|
-
</li>
|
11
|
-
<%- end -%>
|
12
|
-
<%- end -%>
|
13
|
-
<%- if params[:language] -%>
|
14
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(:language => nil, :page => nil, :view => nil, :only_path => true)) -%></li>
|
15
|
-
<%- end -%>
|
16
|
-
</ul>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<h4><%= t('activerecord.models.library') -%></h4>
|
2
|
-
<ul>
|
3
|
-
<%- libraries = params[:library].to_s.split -%>
|
4
|
-
<%- @library_facet.each do |facet| -%>
|
5
|
-
<%- current_libraries = libraries.dup -%>
|
6
|
-
<%= library_facet(current_libraries, facet) %>
|
7
|
-
<%- end -%>
|
8
|
-
<%- if params[:library] -%>
|
9
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(:library => nil, :page => nil, :view => nil, :only_path => true)) -%></li>
|
10
|
-
<%- end -%>
|
11
|
-
</ul>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<h4><%= t('activerecord.attributes.manifestation.date_of_publication') -%></h4>
|
2
|
-
<ul>
|
3
|
-
<%- @pub_year_facet.each do |facet| -%>
|
4
|
-
<li>
|
5
|
-
<%= pub_year_facet(params[:pub_date_from].to_s, params[:pub_date_to].to_s, facet) %>
|
6
|
-
</li>
|
7
|
-
<%- end -%>
|
8
|
-
<%- if params[:pub_date_from] and params[:pub_date_to] -%>
|
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
|
-
<%- end -%>
|
11
|
-
</ul>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<h4><%= t('manifestation.reservable') -%></h4>
|
2
|
-
<ul>
|
3
|
-
<%- @reservable_facet.each do |facet| -%>
|
4
|
-
<% facet.value ? facet_reservable = true : facet_reservable = false %>
|
5
|
-
<li>
|
6
|
-
<%- if @reservable == facet_reservable -%><strong><%- end -%>
|
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
|
-
<%- if @reservable == facet_reservable -%></strong><%- end -%>
|
9
|
-
</li>
|
10
|
-
<%- end -%>
|
11
|
-
<%- unless @reservable.nil? -%>
|
12
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(:reservable => nil, :page => nil, :view => nil, :only_path => true)) -%></li>
|
13
|
-
<%- end -%>
|
14
|
-
</ul>
|