blacklight 6.22.0 → 6.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +13 -22
- data/README.md +1 -1
- data/VERSION +1 -1
- data/app/views/catalog/_facet_pagination.html.erb +2 -2
- data/app/views/catalog/_search_form.html.erb +1 -1
- data/app/views/catalog/_sort_and_per_page.html.erb +1 -1
- data/app/views/catalog/_thumbnail_default.html.erb +3 -3
- data/blacklight.gemspec +0 -1
- data/config/locales/blacklight.de.yml +1 -0
- data/config/locales/blacklight.en.yml +1 -0
- data/config/locales/blacklight.es.yml +1 -0
- data/config/locales/blacklight.fr.yml +1 -0
- data/config/locales/blacklight.it.yml +1 -0
- data/config/locales/blacklight.pt-BR.yml +1 -0
- data/config/locales/blacklight.sq.yml +1 -0
- data/config/locales/blacklight.zh.yml +1 -0
- data/lib/blacklight/utils.rb +7 -3
- data/spec/spec_helper.rb +3 -8
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87e4d1ededc8c09e0bc58aca99ca4c37b7fa0ff85877b4ca7c69fda2cbb02f3d
|
4
|
+
data.tar.gz: a62ce68954acf22deda2dab59c461f194c77f10035d6287b3ebfcb9884b21bc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b4972dcc598dfddc3d48a06d9b0be8d3da169f2255d962b1ef148e14b9a100e67332250c4cfec3ca4c2d0f76c0bb30a2c6d99850ddb74a107a485691eb68331
|
7
|
+
data.tar.gz: 373a787a4da0e1a3f4a96331d88fc8411524f2f8935fd3a16571cc25392a92ac6b3fd6dd0b78f8743cd7239644b5e0234b6b9b0e20869a22be6368813d6f5a80
|
data/.travis.yml
CHANGED
@@ -2,33 +2,14 @@ dist: bionic
|
|
2
2
|
addons:
|
3
3
|
chrome: stable
|
4
4
|
language: ruby
|
5
|
-
sudo: false
|
6
5
|
|
7
6
|
notifications:
|
8
7
|
email: false
|
9
8
|
|
10
9
|
rvm:
|
11
10
|
- 2.5.7
|
12
|
-
|
13
|
-
|
14
|
-
include:
|
15
|
-
- rvm: 2.5.7
|
16
|
-
env: "RAILS_VERSION=5.2.0"
|
17
|
-
- rvm: 2.4.4
|
18
|
-
env: "RAILS_VERSION=4.2.10"
|
19
|
-
- rvm: 2.2.10
|
20
|
-
env: "RAILS_VESION=5.0.7"
|
21
|
-
- rvm: 2.3.7
|
22
|
-
env: "RAILS_VERSION=5.1.6"
|
23
|
-
- rvm: jruby-9.1.17.0
|
24
|
-
env: "RAILS_VERSION=5.2.0 JRUBY_OPTS=\"-J-Xms512m -J-Xmx1024m\""
|
25
|
-
allow_failures:
|
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"
|
31
|
-
fast_finish: true
|
11
|
+
- 2.6.5
|
12
|
+
- 2.7.0
|
32
13
|
|
33
14
|
before_install:
|
34
15
|
- gem update --system
|
@@ -39,7 +20,9 @@ before_script:
|
|
39
20
|
- if [[ "${RAILS_VERSION}" =~ ^4.2.* ]]; then perl -pi -e "s/ActiveRecord::Migration\[[\d\.]+\]/ActiveRecord::Migration/" db/migrate/*; fi
|
40
21
|
|
41
22
|
env:
|
42
|
-
- "RAILS_VERSION=5.1.
|
23
|
+
- "RAILS_VERSION=5.1.7"
|
24
|
+
- "RAILS_VERSION=5.2.0"
|
25
|
+
|
43
26
|
|
44
27
|
notifications:
|
45
28
|
irc: "irc.freenode.org#blacklight"
|
@@ -49,5 +32,13 @@ notifications:
|
|
49
32
|
global_env:
|
50
33
|
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
51
34
|
- ENGINE_CART_RAILS_OPTIONS='--skip-git --skip-bundle --skip-listen --skip-spring --skip-yarn --skip-keeps --skip-action-cable --skip-coffee --skip-test'
|
35
|
+
- CC_TEST_REPORTER_ID=5042c7358c96b0b926088a4cda3e132fffe7a66ce8047cdb1dc6f0b4b6676b79
|
52
36
|
|
53
37
|
jdk: openjdk11
|
38
|
+
|
39
|
+
before_script:
|
40
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
41
|
+
- chmod +x ./cc-test-reporter
|
42
|
+
- ./cc-test-reporter before-build
|
43
|
+
after_script:
|
44
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Blacklight
|
2
2
|
|
3
|
-
[![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
|
3
|
+
[![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) [![Test Coverage](https://api.codeclimate.com/v1/badges/83fd270492c136594e59/test_coverage)](https://codeclimate.com/github/projectblacklight/blacklight/test_coverage)
|
4
4
|
|
5
5
|
Blacklight is an open source Solr user interface discovery platform.
|
6
6
|
You can use Blacklight to enable searching and browsing of your collections.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.
|
1
|
+
6.23.0
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<div class="prev_next_links btn-group pull-left">
|
2
2
|
<%= link_to_previous_page @pagination, raw(t('views.pagination.previous')), params: search_state.to_h, param_name: blacklight_config.facet_paginator_class.request_keys[:page], class: 'btn btn-link', data: { ajax_modal: "preserve" } do %>
|
3
|
-
|
3
|
+
<%= content_tag :span, raw(t('views.pagination.previous')), class: 'disabled btn btn-disabled' %>
|
4
4
|
<% end %>
|
5
5
|
|
6
6
|
<%= link_to_next_page @pagination, raw(t('views.pagination.next')), params: search_state.to_h, param_name: blacklight_config.facet_paginator_class.request_keys[:page], class: 'btn btn-link', data: { ajax_modal: "preserve" } do %>
|
7
|
-
|
7
|
+
<%= content_tag :span, raw(t('views.pagination.next')), class: 'disabled btn btn-disabled' %>
|
8
8
|
<% end %>
|
9
9
|
</div>
|
10
10
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= form_tag search_action_url, method: :get, class: 'search-query-form clearfix navbar-form', role: 'search' do %>
|
1
|
+
<%= form_tag search_action_url, method: :get, class: 'search-query-form clearfix navbar-form', role: 'search', 'aria-label' => t('blacklight.search.form.submit') do %>
|
2
2
|
<%= render_hash_as_hidden_fields(search_state.params_for_search.except(:q, :search_field, :qt, :page, :utf8)) %>
|
3
3
|
<div class="input-group">
|
4
4
|
<% if search_fields.length > 1 %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div id="sortAndPerPage" class="clearfix">
|
1
|
+
<div id="sortAndPerPage" class="clearfix" role="navigation" aria-label="<%= t('blacklight.search.per_page.aria_label')%>">
|
2
2
|
<%= render :partial => "paginate_compact", :object => @response if show_pagination? %>
|
3
3
|
<%= render_results_collection_tools wrapping_class: "search-widgets pull-right" %>
|
4
4
|
</div>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<%- if has_thumbnail?(document) && tn = render_thumbnail_tag(document, {}, :counter
|
1
|
+
<%- if has_thumbnail?(document) && tn = render_thumbnail_tag(document, { alt: '' }, 'aria-hidden': true, tabindex: -1, counter: document_counter_with_offset(document_counter)) %>
|
2
2
|
<div class="document-thumbnail">
|
3
3
|
<%= tn %>
|
4
|
-
</div>
|
5
|
-
<%- end %>
|
4
|
+
</div>
|
5
|
+
<%- end %>
|
data/blacklight.gemspec
CHANGED
@@ -44,7 +44,6 @@ Gem::Specification.new do |s|
|
|
44
44
|
s.add_development_dependency "selenium-webdriver", '>= 3.13.1'
|
45
45
|
s.add_development_dependency 'engine_cart', '~> 2.1'
|
46
46
|
s.add_development_dependency "equivalent-xml"
|
47
|
-
s.add_development_dependency "coveralls"
|
48
47
|
s.add_development_dependency "simplecov"
|
49
48
|
s.add_development_dependency "rubocop", '~> 0.47.0' # pending release of 0.48.1
|
50
49
|
s.add_development_dependency "rubocop-rspec", '~> 1.8.0'
|
@@ -157,6 +157,7 @@ es:
|
|
157
157
|
button_label: '%{count} por página'
|
158
158
|
title: 'El número de resultados a mostrar por página'
|
159
159
|
submit: 'Actualización'
|
160
|
+
aria_label: 'Navegación de resultados'
|
160
161
|
sort:
|
161
162
|
label: 'Ordenar por %{field}'
|
162
163
|
submit: 'Resultados de ordenación'
|
data/lib/blacklight/utils.rb
CHANGED
@@ -22,7 +22,7 @@ module Blacklight
|
|
22
22
|
def to_h
|
23
23
|
@table
|
24
24
|
end
|
25
|
-
|
25
|
+
|
26
26
|
def select *args, &block
|
27
27
|
self.class.new to_h.select(*args, &block)
|
28
28
|
end
|
@@ -58,7 +58,7 @@ module Blacklight
|
|
58
58
|
end
|
59
59
|
|
60
60
|
##
|
61
|
-
# An OpenStruct refinement that converts any hash-keys into
|
61
|
+
# An OpenStruct refinement that converts any hash-keys into
|
62
62
|
# additional instances of NestedOpenStructWithHashAccess
|
63
63
|
class NestedOpenStructWithHashAccess < OpenStructWithHashAccess
|
64
64
|
attr_reader :nested_class
|
@@ -161,7 +161,11 @@ module Blacklight
|
|
161
161
|
len = args.length
|
162
162
|
|
163
163
|
if len.zero?
|
164
|
-
new_ostruct_member
|
164
|
+
if respond_to?(:new_ostruct_member!, true)
|
165
|
+
new_ostruct_member!(mid)
|
166
|
+
else
|
167
|
+
new_ostruct_member(mid)
|
168
|
+
end
|
165
169
|
@table[mid]
|
166
170
|
else
|
167
171
|
super
|
data/spec/spec_helper.rb
CHANGED
@@ -5,14 +5,9 @@
|
|
5
5
|
|
6
6
|
ENV["RAILS_ENV"] ||= 'test'
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
13
|
-
SimpleCov.start do
|
14
|
-
add_filter "/spec/"
|
15
|
-
end
|
8
|
+
require 'simplecov'
|
9
|
+
SimpleCov.start do
|
10
|
+
add_filter "/spec/"
|
16
11
|
end
|
17
12
|
|
18
13
|
require 'rsolr'
|
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.
|
4
|
+
version: 6.23.0
|
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: 2020-
|
20
|
+
date: 2020-03-13 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rails
|
@@ -289,20 +289,6 @@ dependencies:
|
|
289
289
|
- - ">="
|
290
290
|
- !ruby/object:Gem::Version
|
291
291
|
version: '0'
|
292
|
-
- !ruby/object:Gem::Dependency
|
293
|
-
name: coveralls
|
294
|
-
requirement: !ruby/object:Gem::Requirement
|
295
|
-
requirements:
|
296
|
-
- - ">="
|
297
|
-
- !ruby/object:Gem::Version
|
298
|
-
version: '0'
|
299
|
-
type: :development
|
300
|
-
prerelease: false
|
301
|
-
version_requirements: !ruby/object:Gem::Requirement
|
302
|
-
requirements:
|
303
|
-
- - ">="
|
304
|
-
- !ruby/object:Gem::Version
|
305
|
-
version: '0'
|
306
292
|
- !ruby/object:Gem::Dependency
|
307
293
|
name: simplecov
|
308
294
|
requirement: !ruby/object:Gem::Requirement
|