blacklight 6.19.1 → 6.19.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/VERSION +1 -1
- data/app/views/catalog/_citation.html.erb +23 -18
- data/app/views/catalog/citation.html.erb +1 -1
- data/app/views/catalog/citation.js.erb +1 -7
- data/blacklight.gemspec +1 -1
- data/spec/controllers/catalog_controller_spec.rb +3 -3
- data/tasks/blacklight.rake +0 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29725d7ac098fe4dfcdadceabf7b03066f14c680a9af21afa54191d643e87e7a
|
4
|
+
data.tar.gz: e36bfb2a98c4eccdd1368f8a06a7a377e5fa5f1d3282a48384e31470148b3c50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f00f3c5c21af357d7c695888835a92a7ca63ca361fdb670fee07254f69a444fca4bc6d7d0ccd396bb871346eabc6ef6015c82d4dbadd81c1a3e7ccb584f56545
|
7
|
+
data.tar.gz: 4f06db656530cb3b32364815ae24fff6c4ddcd8fe12373e08d6088b263025b9acb292c616ac45377ba43f96dbb6230875e98553fe4c7bd87b5f18f5819557a92
|
data/.travis.yml
CHANGED
@@ -24,6 +24,10 @@ matrix:
|
|
24
24
|
env: "RAILS_VERSION=5.2.0 JRUBY_OPTS=\"-J-Xms512m -J-Xmx1024m\""
|
25
25
|
allow_failures:
|
26
26
|
- rvm: jruby-9.1.17.0
|
27
|
+
- rvm: 2.4.4
|
28
|
+
env: "RAILS_VERSION=4.2.10"
|
29
|
+
- rvm: 2.2.10
|
30
|
+
env: "RAILS_VESION=5.0.7"
|
27
31
|
fast_finish: true
|
28
32
|
|
29
33
|
before_install:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.19.
|
1
|
+
6.19.2
|
@@ -1,21 +1,26 @@
|
|
1
|
+
<div class="modal-header">
|
2
|
+
<h1><%= t('blacklight.tools.citation') %></h1>
|
3
|
+
<button type="button" class="blacklight-modal-close close" data-dismiss="modal" aria-label="<%= t('blacklight.modal.close') %>">
|
4
|
+
<span aria-hidden="true">×</span>
|
5
|
+
</button>
|
6
|
+
</div>
|
7
|
+
<div class="modal-body">
|
8
|
+
<% @documents.each do |document| %>
|
9
|
+
<h1 class="modal-title"><%= document_heading(document) %></h1>
|
1
10
|
|
2
|
-
<%
|
11
|
+
<% if document.respond_to?(:export_as_mla_citation_txt) %>
|
12
|
+
<h2><%= t('blacklight.citation.mla') %></h2>
|
13
|
+
<%= document.send(:export_as_mla_citation_txt).html_safe %><br/><br/>
|
14
|
+
<% end %>
|
3
15
|
|
4
|
-
|
16
|
+
<% if document.respond_to?(:export_as_apa_citation_txt) %>
|
17
|
+
<h2><%= t('blacklight.citation.apa') %></h2>
|
18
|
+
<%= document.send(:export_as_apa_citation_txt).html_safe %><br/><br/>
|
19
|
+
<% end %>
|
5
20
|
|
6
|
-
<% if document.respond_to?(:
|
7
|
-
|
8
|
-
|
9
|
-
<% end %>
|
10
|
-
|
11
|
-
|
12
|
-
<h4><%= t('blacklight.citation.apa') %></h4>
|
13
|
-
<%= document.send(:export_as_apa_citation_txt).html_safe %><br/><br/>
|
14
|
-
<% end %>
|
15
|
-
|
16
|
-
<%- if document.respond_to?(:export_as_chicago_citation_txt) -%>
|
17
|
-
<h4><%= t('blacklight.citation.chicago') %></h4>
|
18
|
-
<%= document.send(:export_as_chicago_citation_txt).html_safe %>
|
19
|
-
<%- end -%>
|
20
|
-
|
21
|
-
<% end %>
|
21
|
+
<% if document.respond_to?(:export_as_chicago_citation_txt) %>
|
22
|
+
<h2><%= t('blacklight.citation.chicago') %></h2>
|
23
|
+
<%= document.send(:export_as_chicago_citation_txt).html_safe %>
|
24
|
+
<% end %>
|
25
|
+
<% end %>
|
26
|
+
</div>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render :
|
1
|
+
<%= render partial: 'citation' %>
|
@@ -1,7 +1 @@
|
|
1
|
-
|
2
|
-
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
3
|
-
<h3><%= t('blacklight.tools.citation') %></h3>
|
4
|
-
</div>
|
5
|
-
<div class="modal-body">
|
6
|
-
<%= render :partial => 'citation' -%>
|
7
|
-
</div>
|
1
|
+
<%= render partial: 'citation' %>
|
data/blacklight.gemspec
CHANGED
@@ -42,7 +42,7 @@ Gem::Specification.new do |s|
|
|
42
42
|
s.add_development_dependency "capybara", '>= 2', '< 4'
|
43
43
|
s.add_development_dependency 'chromedriver-helper', '< 2.0.0' # 2.1.0 is causing "Unable to find chromedriver" on Travis
|
44
44
|
s.add_development_dependency "selenium-webdriver", '>= 3.13.1'
|
45
|
-
s.add_development_dependency 'engine_cart', '~> 1
|
45
|
+
s.add_development_dependency 'engine_cart', '~> 2.1'
|
46
46
|
s.add_development_dependency "equivalent-xml"
|
47
47
|
s.add_development_dependency "coveralls"
|
48
48
|
s.add_development_dependency "simplecov"
|
@@ -62,7 +62,7 @@ describe CatalogController do
|
|
62
62
|
end
|
63
63
|
|
64
64
|
it "returns results (possibly 0) when the user asks for a valid value to a custom facet query", :integration => true do
|
65
|
-
get :index, params: { f: { example_query_facet_field: '
|
65
|
+
get :index, params: { f: { example_query_facet_field: 'years_25' } } # valid custom facet value with some results
|
66
66
|
expect(assigns(:response).docs).to_not be_empty
|
67
67
|
get :index, params: { f: {example_query_facet_field: 'years_5' } } # valid custom facet value with NO results
|
68
68
|
expect(assigns(:response).docs).to be_empty
|
@@ -149,8 +149,8 @@ describe CatalogController do
|
|
149
149
|
let(:query_facet_items) { facets.last['items'] }
|
150
150
|
let(:regular_facet_items) { facets.first['items'] }
|
151
151
|
it "has items with labels and values" do
|
152
|
-
expect(query_facet_items.first['label']).to eq 'within
|
153
|
-
expect(query_facet_items.first['value']).to eq '
|
152
|
+
expect(query_facet_items.first['label']).to eq 'within 25 Years'
|
153
|
+
expect(query_facet_items.first['value']).to eq 'years_25'
|
154
154
|
expect(regular_facet_items.first['label']).to eq "Book"
|
155
155
|
expect(regular_facet_items.first['value']).to eq "Book"
|
156
156
|
end
|
data/tasks/blacklight.rake
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.19.
|
4
|
+
version: 6.19.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
@@ -17,7 +17,7 @@ authors:
|
|
17
17
|
autorequire:
|
18
18
|
bindir: exe
|
19
19
|
cert_chain: []
|
20
|
-
date:
|
20
|
+
date: 2019-01-11 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rails
|
@@ -267,14 +267,14 @@ dependencies:
|
|
267
267
|
requirements:
|
268
268
|
- - "~>"
|
269
269
|
- !ruby/object:Gem::Version
|
270
|
-
version: '1
|
270
|
+
version: '2.1'
|
271
271
|
type: :development
|
272
272
|
prerelease: false
|
273
273
|
version_requirements: !ruby/object:Gem::Requirement
|
274
274
|
requirements:
|
275
275
|
- - "~>"
|
276
276
|
- !ruby/object:Gem::Version
|
277
|
-
version: '1
|
277
|
+
version: '2.1'
|
278
278
|
- !ruby/object:Gem::Dependency
|
279
279
|
name: equivalent-xml
|
280
280
|
requirement: !ruby/object:Gem::Requirement
|