enju_flower 0.1.1 → 0.1.2
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/_carrier_type_facet.html.erb +1 -1
- data/app/views/manifestations/_classification_facet.html.erb +2 -2
- data/app/views/manifestations/_colorbox.html.erb +5 -0
- data/app/views/manifestations/_index_form_parent.html.erb +1 -1
- data/app/views/manifestations/_language_facet.html.erb +1 -1
- data/app/views/manifestations/_library_facet.html.erb +1 -1
- data/app/views/manifestations/_pub_year_facet.html.erb +1 -1
- data/app/views/manifestations/_reservable_facet.html.erb +2 -2
- data/app/views/manifestations/_show_series_detail.html.erb +0 -3
- data/app/views/manifestations/index.html.erb +7 -7
- data/app/views/manifestations/index.rdf.builder +2 -2
- data/app/views/manifestations/index.rss.builder +2 -2
- data/app/views/manifestations/show.html.erb +1 -5
- data/lib/enju_flower/version.rb +1 -1
- data/spec/views/manifestations/index.html.erb_spec.rb +1 -0
- data/spec/views/manifestations/show.html.erb_spec.rb +1 -1
- metadata +24 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6344aee6468f3f38922537d8fb415d15c01038ed
|
4
|
+
data.tar.gz: 4e9c7f3c5e9cb5efe983defba677463666cb0861
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c56eb151ae25d4f2a72c5f65f8e08b873b2c629d869993d5e418ccd9dfb922078fe5810d53b5082bebaf547e9d9d1064356f492b81fe4181f82d7bb2b5057c05
|
7
|
+
data.tar.gz: e8db709f738f8fa06c11386a271aa440b64520d9a3461f7aeeade33c42c9e1c3c1a5861abe8a1cba1170bcaa7c6f60538eb4db795458f09924f8add1f6ca58af
|
@@ -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(carrier_type: nil, page: nil, view: nil, only_path: true)) -%></li>
|
7
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.permit.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', number: category.value)} #{category_name(category.value)} (#{category.count})", url_for(params.merge(classification: category.value, page: nil, view: nil, only_path: true)) %>
|
7
|
+
<%= link_to "#{t('classification.category', number: category.value)} #{category_name(category.value)} (#{category.count})", url_for(params.permit.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(classification: nil, page: nil, view: nil, only_path: true)) -%></li>
|
12
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.permit.merge(classification: nil, page: nil, view: nil, only_path: true)) -%></li>
|
13
13
|
<%- end -%>
|
14
14
|
</ul>
|
15
15
|
<%- else -%>
|
@@ -16,7 +16,7 @@
|
|
16
16
|
<%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
|
17
17
|
<%= hidden_field_tag 'parent_id', @parent.id -%>
|
18
18
|
<%= hidden_field_tag 'reservable', h(@reservable) if @reservable -%>
|
19
|
-
<% if can? :update,
|
19
|
+
<% if can? :update, @parent %>
|
20
20
|
<%= render 'page/add' %>
|
21
21
|
<% end %>
|
22
22
|
<%= submit_tag t('page.search') -%>
|
@@ -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(language: nil, page: nil, view: nil, only_path: true)) -%></li>
|
14
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.permit.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(library: nil, page: nil, view: nil, only_path: true)) -%></li>
|
9
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.permit.merge(library: nil, page: nil, view: nil, only_path: true)) -%></li>
|
10
10
|
<%- end -%>
|
11
11
|
</ul>
|
@@ -6,6 +6,6 @@
|
|
6
6
|
</li>
|
7
7
|
<%- end -%>
|
8
8
|
<%- if params[:pub_date_from] and params[:pub_date_until] -%>
|
9
|
-
<li><%= link_to t('page.remove_this_facet'), url_for(params.merge(pub_date_from: nil, pub_date_until: nil, page: nil, view: nil, only_path: true)) -%></li>
|
9
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.permit.merge(pub_date_from: nil, pub_date_until: 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(page: nil, reservable: facet.value.to_s, view: nil, only_path: true)) -%>
|
7
|
+
<%= link_to "#{localized_boolean(facet.value)} (#{facet.count})", url_for(params.permit.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(reservable: nil, page: nil, view: nil, only_path: true)) -%></li>
|
12
|
+
<li><%= link_to t('page.remove_this_facet'), url_for(params.permit.merge(reservable: nil, page: nil, view: nil, only_path: true)) -%></li>
|
13
13
|
<%- end -%>
|
14
14
|
</ul>
|
@@ -40,17 +40,17 @@
|
|
40
40
|
<%- if params[:sort_by].blank? -%>
|
41
41
|
<strong><%= t('manifestation.date_of_acquisition') -%></strong>
|
42
42
|
<%- else -%>
|
43
|
-
<%= link_to t('manifestation.date_of_acquisition'), url_for(params.merge(sort_by: nil, only_path: true)) -%>
|
43
|
+
<%= link_to t('manifestation.date_of_acquisition'), url_for(params.permit.merge(sort_by: nil, only_path: true)) -%>
|
44
44
|
<%- end -%>
|
45
45
|
<%- if params[:sort_by] == 'pub_date' -%>
|
46
46
|
<strong><%= t('activerecord.attributes.manifestation.date_of_publication') -%></strong>
|
47
47
|
<%- else -%>
|
48
|
-
<%= link_to t('activerecord.attributes.manifestation.date_of_publication'), url_for(params.merge(sort_by: 'pub_date', only_path: true)) -%>
|
48
|
+
<%= link_to t('activerecord.attributes.manifestation.date_of_publication'), url_for(params.permit.merge(sort_by: 'pub_date', only_path: true)) -%>
|
49
49
|
<%- end -%>
|
50
50
|
<%- if params[:sort_by] == 'title' -%>
|
51
51
|
<strong><%= t('page.title') -%></strong>
|
52
52
|
<%- else -%>
|
53
|
-
<%= link_to t('page.title'), url_for(params.merge(sort_by: 'title', only_path: true)) -%>
|
53
|
+
<%= link_to t('page.title'), url_for(params.permit.merge(sort_by: 'title', only_path: true)) -%>
|
54
54
|
<%- end -%>
|
55
55
|
</p>
|
56
56
|
|
@@ -84,15 +84,15 @@
|
|
84
84
|
<% if @parent and can?(:update, @parent) %>
|
85
85
|
<%= render 'submenu_parent' %>
|
86
86
|
<% end %>
|
87
|
-
<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>
|
87
|
+
<h3><%= link_to h("#{t('page.total')}: #{@count[:query_result]}"), url_for(params.permit.merge(action: 'index', view: nil, carrier_type: nil, library: nil, language: nil, subject: nil, only_path: true)) -%></h3>
|
88
88
|
<%- if @manifestations.total_count > 0 -%>
|
89
89
|
<%= render 'manifestations/all_facet' -%>
|
90
90
|
<%- end -%>
|
91
91
|
<div>
|
92
92
|
<%- if params[:library_id].blank? -%>
|
93
|
-
<%= 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)) -%>
|
93
|
+
<%= link_to((image_tag 'icons/feed.png', size: '16x16', alt: t('page.feed'), class: 'icon'), url_for(params.permit.merge(format: :rss, page: nil, library_id: nil, only_path: true))) -%> <%= link_to t('page.search_result_feed'), url_for(params.permit.merge(format: :rss, page: nil, library_id: nil, commit: nil, only_path: true)) -%>
|
94
94
|
<%- else -%>
|
95
|
-
<%= 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)) -%>
|
95
|
+
<%= link_to((image_tag 'icons/feed.png', size: '16x16', alt: t('page.feed'), class: 'icon'), url_for(params.permit.merge(format: :rss, page: nil, only_path: true))) -%> <%= link_to t('page.search_result_feed'), url_for(params.permit.merge(format: :rss, page: nil, commit: nil, only_path: true)) -%>
|
96
96
|
<%- end -%>
|
97
97
|
</div>
|
98
98
|
<%= render 'manifestations/export_list' %>
|
@@ -101,7 +101,7 @@
|
|
101
101
|
<% if defined?(EnjuBookmark) %>
|
102
102
|
<script type="text/javascript">
|
103
103
|
window.onload = function() {
|
104
|
-
$("#tag_cloud_list").load('<%= url_for(params.merge(view: "tag_cloud", only_path: true)) -%>', hideTagCloudSpinner);
|
104
|
+
$("#tag_cloud_list").load('<%= url_for(params.permit.merge(view: "tag_cloud", only_path: true)) -%>', hideTagCloudSpinner);
|
105
105
|
}
|
106
106
|
|
107
107
|
function hideTagCloudSpinner(){
|
@@ -8,9 +8,9 @@ xml.rdf(:RDF,
|
|
8
8
|
'xmlns:foaf' => "http://xmlns.com/foaf/0.1/",
|
9
9
|
'xmlns:prism' => "http://prismstandard.org/namespaces/basic/2.0/",
|
10
10
|
'xmlns:rdfs' =>"http://www.w3.org/2000/01/rdf-schema#"){
|
11
|
-
xml.channel("rdf:about" => manifestations_url(params: params.merge(format: 'rdf', only_path: true))){
|
11
|
+
xml.channel("rdf:about" => manifestations_url(params: params.permit.merge(format: 'rdf', only_path: true))){
|
12
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))}"
|
13
|
+
xml.link "#{request.protocol}#{request.host_with_port}#{url_for(params.permit.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"
|
@@ -5,11 +5,11 @@ xml.rss('version' => "2.0",
|
|
5
5
|
'xmlns:atom' => "http://www.w3.org/2005/Atom"){
|
6
6
|
xml.channel{
|
7
7
|
xml.title t('manifestation.query_search_result', query: @query, library_group_name: @library_group.display_name.localize)
|
8
|
-
xml.link "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(format: nil, only_path: true))}"
|
8
|
+
xml.link "#{request.protocol}#{request.host_with_port}#{url_for(params.permit.merge(format: nil, only_path: true))}"
|
9
9
|
xml.description "Next-L Enju, an open source integrated library system developed by Project Next-L"
|
10
10
|
xml.language @locale.to_s
|
11
11
|
xml.ttl "60"
|
12
|
-
xml.tag! "atom:link", rel: 'self', href: "#{request.protocol}#{request.host_with_port}#{url_for(params.merge(format: :rss, only_path: true))}"
|
12
|
+
xml.tag! "atom:link", rel: 'self', href: "#{request.protocol}#{request.host_with_port}#{url_for(params.permit.merge(format: :rss, only_path: true))}"
|
13
13
|
xml.tag! "atom:link", rel: 'alternate', href: manifestations_url
|
14
14
|
xml.tag! "atom:link", rel: 'search', type: 'application/opensearchdescription+xml', href: page_opensearch_url
|
15
15
|
unless params[:query].blank?
|
@@ -27,11 +27,7 @@
|
|
27
27
|
<li><%= link_to t('page.new', model: t('activerecord.models.picture_file')), new_picture_file_path(manifestation_id: @manifestation.id) -%></li>
|
28
28
|
<%- end -%>
|
29
29
|
</ul>
|
30
|
-
|
31
|
-
$(document).ready(function(){
|
32
|
-
$("a[rel='manifestation_<%= @manifestation.id -%>']").colorbox({transition:"none", photo:true});
|
33
|
-
})
|
34
|
-
</script>
|
30
|
+
<%= render 'manifestations/colorbox' %>
|
35
31
|
<div id="call_number_content">
|
36
32
|
<%- @manifestation.items.for_checkout(nil).on_shelf.sort_by{|item|
|
37
33
|
holding_item_sort_criteria(item)
|
data/lib/enju_flower/version.rb
CHANGED
@@ -12,6 +12,7 @@ describe "manifestations/show" do
|
|
12
12
|
@item2 = FactoryGirl.create( :item_for_checkout, shelf_id: 4 )
|
13
13
|
assign(:manifestation, @manifestation)
|
14
14
|
assign(:library_group, LibraryGroup.site_config)
|
15
|
+
view.stub(:params).and_return(ActionController::Parameters.new)
|
15
16
|
end
|
16
17
|
|
17
18
|
it "renders attributes in <p>" do
|
@@ -29,7 +30,6 @@ describe "manifestations/show" do
|
|
29
30
|
render
|
30
31
|
expect(rendered).to include series_statement.original_title
|
31
32
|
expect(rendered).to include series_statement.volume_number_string
|
32
|
-
expect(rendered).to include series_statement.creator_string
|
33
33
|
end
|
34
34
|
|
35
35
|
describe "call_number_label" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_flower
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosuke Tanabe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|
@@ -94,20 +94,6 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: sunspot_rails
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - '='
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 2.2.0
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - '='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 2.2.0
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: sunspot_solr
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,42 +114,42 @@ dependencies:
|
|
128
114
|
requirements:
|
129
115
|
- - "~>"
|
130
116
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.1.
|
117
|
+
version: 1.1.4
|
132
118
|
type: :development
|
133
119
|
prerelease: false
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
135
121
|
requirements:
|
136
122
|
- - "~>"
|
137
123
|
- !ruby/object:Gem::Version
|
138
|
-
version: 1.1.
|
124
|
+
version: 1.1.4
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: enju_manifestation_viewer
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
142
128
|
requirements:
|
143
129
|
- - "~>"
|
144
130
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.1.
|
131
|
+
version: 0.1.1
|
146
132
|
type: :development
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
136
|
- - "~>"
|
151
137
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.1.
|
138
|
+
version: 0.1.1
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: enju_circulation
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
143
|
- - "~>"
|
158
144
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.1.
|
145
|
+
version: 0.1.2
|
160
146
|
type: :development
|
161
147
|
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
150
|
- - "~>"
|
165
151
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.1.
|
152
|
+
version: 0.1.2
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
154
|
name: enju_bookmark
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -262,6 +248,20 @@ dependencies:
|
|
262
248
|
- - ">="
|
263
249
|
- !ruby/object:Gem::Version
|
264
250
|
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: coveralls
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
265
|
description: User interface for Next-L Enju
|
266
266
|
email:
|
267
267
|
- nabeta@fastmail.fm
|
@@ -277,6 +277,7 @@ files:
|
|
277
277
|
- app/views/manifestations/_book_jacket.html.erb
|
278
278
|
- app/views/manifestations/_carrier_type_facet.html.erb
|
279
279
|
- app/views/manifestations/_classification_facet.html.erb
|
280
|
+
- app/views/manifestations/_colorbox.html.erb
|
280
281
|
- app/views/manifestations/_edition_and_number.html.erb
|
281
282
|
- app/views/manifestations/_holding.html.erb
|
282
283
|
- app/views/manifestations/_index_form.html.erb
|
@@ -688,7 +689,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
688
689
|
version: '0'
|
689
690
|
requirements: []
|
690
691
|
rubyforge_project:
|
691
|
-
rubygems_version: 2.5.
|
692
|
+
rubygems_version: 2.5.1
|
692
693
|
signing_key:
|
693
694
|
specification_version: 4
|
694
695
|
summary: Next-L Enju Flower
|