blacklight 7.0.0 → 7.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/VERSION +1 -1
- data/app/assets/stylesheets/blacklight/_constraints.scss +1 -1
- data/app/helpers/blacklight/configuration_helper_behavior.rb +0 -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 -9
- data/blacklight.gemspec +2 -2
- data/lib/generators/blacklight/install_generator.rb +1 -2
- data/package.json +1 -1
- data/spec/controllers/catalog_controller_spec.rb +3 -3
- data/spec/helpers/blacklight/configuration_helper_behavior_spec.rb +0 -6
- data/tasks/blacklight.rake +0 -2
- data/template.demo.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b48d282f24a3086daabbb88b766b5a1d76ff4230a6e6abff9d419b23b01289e
|
4
|
+
data.tar.gz: 31da35fbd6535f17a16803af0058b3734e5eb37c44352cc0fbacad8a7bf45142
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c27bcde35299dcc9468f3684459664fe048d2e4c284701d30128e9f842fb18575905b934c806fb55290ac9eaaf434461b680b1ea3f2f7a626e627c05787391a5
|
7
|
+
data.tar.gz: 8478b902a2878b30091fc944dd3be890322a530eca1559f78c9867c03838f575bf46fd4cff2f7b88b00d035deaa0cc51274bc8b253c97626c9af059be7572fda
|
data/.travis.yml
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.0.
|
1
|
+
7.0.1
|
@@ -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
|
-
<h2><%= t('blacklight.citation.apa') %></h2>
|
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
|
-
<h2><%= t('blacklight.citation.chicago') %></h2>
|
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,9 +1 @@
|
|
1
|
-
|
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
|
-
<%= render :partial => 'citation' -%>
|
9
|
-
</div>
|
1
|
+
<%= render partial: 'citation' %>
|
data/blacklight.gemspec
CHANGED
@@ -40,10 +40,10 @@ Gem::Specification.new do |s|
|
|
40
40
|
s.add_development_dependency "capybara", '~> 3'
|
41
41
|
s.add_development_dependency 'chromedriver-helper', '< 2.0.0' # 2.1.0 is causing "Unable to find chromedriver" on Travis
|
42
42
|
s.add_development_dependency "selenium-webdriver", '>= 3.13.1'
|
43
|
-
s.add_development_dependency 'engine_cart', '~> 1
|
43
|
+
s.add_development_dependency 'engine_cart', '~> 2.1'
|
44
44
|
s.add_development_dependency "equivalent-xml"
|
45
45
|
s.add_development_dependency "simplecov"
|
46
|
-
s.add_development_dependency "rubocop", '~> 0.
|
46
|
+
s.add_development_dependency "rubocop", '~> 0.61.1'
|
47
47
|
s.add_development_dependency "rubocop-rspec", '~> 1.8'
|
48
48
|
s.add_development_dependency "i18n-tasks"
|
49
49
|
end
|
@@ -7,7 +7,6 @@ module Blacklight
|
|
7
7
|
argument :controller_name, type: :string, default: "catalog"
|
8
8
|
argument :document_name, type: :string, default: "solr_document"
|
9
9
|
argument :search_builder_name, type: :string, default: "search_builder"
|
10
|
-
argument :solr_version, type: :string, default: "latest"
|
11
10
|
|
12
11
|
class_option :devise, type: :boolean, default: false, aliases: "-d", desc: "Use Devise as authentication logic."
|
13
12
|
class_option :marc, type: :boolean, default: false, aliases: "-m", desc: "Generate MARC-based demo."
|
@@ -88,7 +87,7 @@ EOF
|
|
88
87
|
return unless options[:marc]
|
89
88
|
|
90
89
|
blacklight_marc = String.new('blacklight-marc')
|
91
|
-
gem blacklight_marc, '< 8'
|
90
|
+
gem blacklight_marc, '>= 7.0.0.rc1', '< 8'
|
92
91
|
|
93
92
|
Bundler.with_clean_env do
|
94
93
|
run "bundle install"
|
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "blacklight-frontend",
|
3
|
-
"version": "7.0.
|
3
|
+
"version": "7.0.1",
|
4
4
|
"description": "[![Build Status](https://travis-ci.org/projectblacklight/blacklight.png?branch=master)](https://travis-ci.org/projectblacklight/blacklight) [![Gem Version](https://badge.fury.io/rb/blacklight.png)](http://badge.fury.io/rb/blacklight) [![Coverage Status](https://coveralls.io/repos/github/projectblacklight/blacklight/badge.svg?branch=master)](https://coveralls.io/github/projectblacklight/blacklight?branch=master)",
|
5
5
|
"main": "app/assets/javascripts/blacklight",
|
6
6
|
"scripts": {
|
@@ -64,7 +64,7 @@ RSpec.describe CatalogController, api: true do
|
|
64
64
|
end
|
65
65
|
|
66
66
|
it "returns results (possibly 0) when the user asks for a valid value to a custom facet query", integration: true do
|
67
|
-
get :index, params: { f: { example_query_facet_field: '
|
67
|
+
get :index, params: { f: { example_query_facet_field: 'years_25' } } # valid custom facet value with some results
|
68
68
|
expect(assigns(:response).docs).not_to be_empty
|
69
69
|
end
|
70
70
|
|
@@ -172,8 +172,8 @@ RSpec.describe CatalogController, api: true do
|
|
172
172
|
let(:query_facet_items) { query_facet['attributes']['items'].map { |x| x['attributes'] } }
|
173
173
|
|
174
174
|
it "has items with labels and values" do
|
175
|
-
expect(query_facet_items.first['label']).to eq 'within
|
176
|
-
expect(query_facet_items.first['value']).to eq '
|
175
|
+
expect(query_facet_items.first['label']).to eq 'within 25 Years'
|
176
|
+
expect(query_facet_items.first['value']).to eq 'years_25'
|
177
177
|
end
|
178
178
|
end
|
179
179
|
end
|
@@ -114,12 +114,6 @@ RSpec.describe Blacklight::ConfigurationHelperBehavior do
|
|
114
114
|
f = helper.document_show_link_field document
|
115
115
|
expect(f).to eq :b
|
116
116
|
end
|
117
|
-
|
118
|
-
it "fallbacks on the id" do
|
119
|
-
blacklight_config.index.title_field = [:zzz, :yyy]
|
120
|
-
f = helper.document_show_link_field document
|
121
|
-
expect(f).to eq 123
|
122
|
-
end
|
123
117
|
end
|
124
118
|
|
125
119
|
describe "#view_label" do
|
data/tasks/blacklight.rake
CHANGED
data/template.demo.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
gem
|
3
|
+
gem 'blacklight', '>= 7.0'
|
4
4
|
|
5
5
|
run "bundle install"
|
6
6
|
|
7
7
|
# run the blacklight install generator
|
8
|
-
options = ENV.fetch("BLACKLIGHT_INSTALL_OPTIONS", '--devise --marc
|
8
|
+
options = ENV.fetch("BLACKLIGHT_INSTALL_OPTIONS", '--devise --marc')
|
9
9
|
|
10
10
|
generate 'blacklight:install', options
|
11
11
|
|
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: 7.0.
|
4
|
+
version: 7.0.1
|
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-13 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rails
|
@@ -227,14 +227,14 @@ dependencies:
|
|
227
227
|
requirements:
|
228
228
|
- - "~>"
|
229
229
|
- !ruby/object:Gem::Version
|
230
|
-
version: '1
|
230
|
+
version: '2.1'
|
231
231
|
type: :development
|
232
232
|
prerelease: false
|
233
233
|
version_requirements: !ruby/object:Gem::Requirement
|
234
234
|
requirements:
|
235
235
|
- - "~>"
|
236
236
|
- !ruby/object:Gem::Version
|
237
|
-
version: '1
|
237
|
+
version: '2.1'
|
238
238
|
- !ruby/object:Gem::Dependency
|
239
239
|
name: equivalent-xml
|
240
240
|
requirement: !ruby/object:Gem::Requirement
|
@@ -269,14 +269,14 @@ dependencies:
|
|
269
269
|
requirements:
|
270
270
|
- - "~>"
|
271
271
|
- !ruby/object:Gem::Version
|
272
|
-
version: 0.
|
272
|
+
version: 0.61.1
|
273
273
|
type: :development
|
274
274
|
prerelease: false
|
275
275
|
version_requirements: !ruby/object:Gem::Requirement
|
276
276
|
requirements:
|
277
277
|
- - "~>"
|
278
278
|
- !ruby/object:Gem::Version
|
279
|
-
version: 0.
|
279
|
+
version: 0.61.1
|
280
280
|
- !ruby/object:Gem::Dependency
|
281
281
|
name: rubocop-rspec
|
282
282
|
requirement: !ruby/object:Gem::Requirement
|