blacklight 7.4.2 → 7.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/assets/images/blacklight/list.svg +1 -1
- data/app/assets/images/blacklight/search.svg +1 -1
- data/app/assets/stylesheets/blacklight/_facets.scss +7 -2
- data/app/assets/stylesheets/blacklight/_icons.scss +9 -23
- data/app/views/catalog/_facet_group.html.erb +1 -1
- data/app/views/catalog/_facet_pagination.html.erb +2 -2
- data/app/views/catalog/_sort_and_per_page.html.erb +2 -2
- data/app/views/catalog/_view_type_group.html.erb +1 -1
- data/app/views/catalog/facet.html.erb +2 -3
- data/package.json +1 -1
- data/spec/features/facets_spec.rb +1 -1
- data/spec/features/search_filters_spec.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9494eb9f9c98dc35a06a369d93d30095cb05718427599f49c2179c3ab0d44456
|
4
|
+
data.tar.gz: fafdd89b5d4bf169f303e2673a7369b32b14894dfb983405cb37f556dcab1a3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5011b8be264ee25f7b701e77e0e099add0f382d7f95e85123e53a6f2b215fe867b4bc5fdbb0ff02845c125fe0d89674f83750bb044650acdad103d6eb4fcb1ac
|
7
|
+
data.tar.gz: c772cdf8efef43a8c86c81b7ff445f5a7a6a7ab6ebdb8d6d2bac4654a558528522e6e76eec8e330996288f2e0d991fb531fb7852ded86c4bd8f0f69f0db53563
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.
|
1
|
+
7.5.0
|
@@ -1 +1 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
|
@@ -1 +1 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>
|
@@ -36,6 +36,13 @@
|
|
36
36
|
}
|
37
37
|
}
|
38
38
|
|
39
|
+
.facets-header {
|
40
|
+
display: flex;
|
41
|
+
justify-content: space-between;
|
42
|
+
padding-bottom: 0.5rem;
|
43
|
+
padding-top: 0.5rem;
|
44
|
+
}
|
45
|
+
|
39
46
|
.facets-heading {
|
40
47
|
@extend .h4;
|
41
48
|
line-height: inherit;
|
@@ -132,8 +139,6 @@
|
|
132
139
|
-------------------------------------------------- */
|
133
140
|
|
134
141
|
.facet-pagination {
|
135
|
-
@extend .clearfix;
|
136
|
-
|
137
142
|
&.top {
|
138
143
|
padding: $modal-inner-padding;
|
139
144
|
}
|
@@ -1,35 +1,21 @@
|
|
1
|
-
.blacklight-icons {
|
2
|
-
display: inline-flex;
|
3
|
-
height: $font-size-base;
|
4
|
-
width: $font-size-base;
|
5
|
-
}
|
6
|
-
|
7
|
-
.blacklight-icons svg {
|
8
|
-
height: 1rem;
|
9
|
-
width: 1rem;
|
10
|
-
top: .125rem;
|
11
|
-
position: relative;
|
12
|
-
}
|
13
|
-
|
14
1
|
@each $color, $value in $theme-colors {
|
15
2
|
.btn-#{$color} {
|
16
3
|
.blacklight-icons svg {
|
17
|
-
|
4
|
+
fill: currentColor;
|
18
5
|
}
|
19
6
|
}
|
20
7
|
|
21
8
|
.btn-outline-#{$color} {
|
22
9
|
.blacklight-icons svg {
|
23
|
-
fill:
|
10
|
+
fill: currentColor;
|
24
11
|
}
|
12
|
+
}
|
13
|
+
}
|
25
14
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
@include fill-yiq(theme-color($color));
|
32
|
-
}
|
33
|
-
}
|
15
|
+
.btn.btn-icon {
|
16
|
+
padding: $btn-padding-y;
|
17
|
+
|
18
|
+
&.btn-sm {
|
19
|
+
padding: $btn-padding-y-sm;
|
34
20
|
}
|
35
21
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<% if has_facet_values? facet_field_names(groupname), @response %>
|
3
3
|
<div id="facets<%= "-#{groupname}" unless groupname.nil? %>" class="facets sidenav facets-toggleable-md">
|
4
4
|
|
5
|
-
<div class="
|
5
|
+
<div class="facets-header">
|
6
6
|
<h2 class="facets-heading">
|
7
7
|
<%= groupname.blank? ? t('blacklight.search.facets.title') : t("blacklight.search.facets-#{groupname}.title") %>
|
8
8
|
</h2>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="prev_next_links btn-group
|
1
|
+
<div class="prev_next_links btn-group">
|
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: { blacklight_modal: "preserve" } do %>
|
3
3
|
<span class="disabled btn btn-disabled"><%= raw(t('views.pagination.previous')) %></span>
|
4
4
|
<% end %>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<% end %>
|
9
9
|
</div>
|
10
10
|
|
11
|
-
<div class="sort-options btn-group
|
11
|
+
<div class="sort-options btn-group">
|
12
12
|
<% if @pagination.sort == 'index' -%>
|
13
13
|
<span class="active az btn btn-outline-secondary"><%= t('blacklight.search.facets.sort.index') %></span>
|
14
14
|
<%= link_to(t('blacklight.search.facets.sort.count'), @pagination.params_for_resort_url('count', search_state.to_h), class: "sort_change numeric btn btn-outline-secondary", data: { blacklight_modal: "preserve" }) %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div id="sortAndPerPage" class="sort-pagination
|
1
|
+
<div id="sortAndPerPage" class="sort-pagination d-md-flex justify-content-between">
|
2
2
|
<%= render partial: "paginate_compact", object: @response if show_pagination? %>
|
3
|
-
<%= render_results_collection_tools wrapping_class: "search-widgets
|
3
|
+
<%= render_results_collection_tools wrapping_class: "search-widgets" %>
|
4
4
|
</div>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<span class="sr-only"><%= t('blacklight.search.view_title') %></span>
|
4
4
|
<div class="view-type-group btn-group">
|
5
5
|
<% document_index_view_controls.each do |view, config| %>
|
6
|
-
<%= link_to url_for(search_state.to_h.merge(view: view)), title: view_label(view), class: "btn btn-outline-secondary view-type-#{ view.to_s.parameterize } #{"active" if document_index_view_type == view}" do %>
|
6
|
+
<%= link_to url_for(search_state.to_h.merge(view: view)), title: view_label(view), class: "btn btn-outline-secondary btn-icon view-type-#{ view.to_s.parameterize } #{"active" if document_index_view_type == view}" do %>
|
7
7
|
<%= render_view_type_group_icon view %>
|
8
8
|
<span class="caption"><%= view_label(view) %></span>
|
9
9
|
<% end %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="facet-pagination top">
|
1
|
+
<div class="facet-pagination top row justify-content-between">
|
2
2
|
<%= render :partial=>'facet_pagination' %>
|
3
3
|
</div>
|
4
4
|
|
@@ -18,8 +18,7 @@
|
|
18
18
|
</div>
|
19
19
|
|
20
20
|
<div class="modal-footer">
|
21
|
-
|
22
|
-
<div class="facet-pagination bottom">
|
21
|
+
<div class="facet-pagination bottom row justify-content-between">
|
23
22
|
<%= render :partial=>'facet_pagination' %>
|
24
23
|
</div>
|
25
24
|
</div>
|
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "blacklight-frontend",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.5.0",
|
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": {
|
@@ -170,7 +170,7 @@ RSpec.describe "Facets" do
|
|
170
170
|
skip("Test passes locally but not on Travis.") if ENV['TRAVIS']
|
171
171
|
visit root_path
|
172
172
|
|
173
|
-
within('#facets .
|
173
|
+
within('#facets .facets-header') do
|
174
174
|
page.find('button.navbar-toggler').click
|
175
175
|
end
|
176
176
|
|
@@ -182,7 +182,7 @@ RSpec.describe "Facets" do
|
|
182
182
|
skip("Test passes locally but not on Travis.") if ENV['TRAVIS']
|
183
183
|
visit root_path
|
184
184
|
|
185
|
-
within('#facets .
|
185
|
+
within('#facets .facets-header') do
|
186
186
|
page.find('button.navbar-toggler').click
|
187
187
|
end
|
188
188
|
|
@@ -196,7 +196,7 @@ RSpec.describe "Facets" do
|
|
196
196
|
skip("Test passes locally but not on Travis.") if ENV['TRAVIS']
|
197
197
|
visit root_path
|
198
198
|
|
199
|
-
within('#facets .
|
199
|
+
within('#facets .facets-header') do
|
200
200
|
page.find('button.navbar-toggler').click
|
201
201
|
end
|
202
202
|
|
@@ -210,7 +210,7 @@ RSpec.describe "Facets" do
|
|
210
210
|
skip("Test passes locally but not on Travis.") if ENV['TRAVIS']
|
211
211
|
visit root_path
|
212
212
|
|
213
|
-
within('#facets .
|
213
|
+
within('#facets .facets-header') do
|
214
214
|
page.find('button.navbar-toggler').click
|
215
215
|
end
|
216
216
|
|
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.
|
4
|
+
version: 7.5.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: 2019-12-
|
20
|
+
date: 2019-12-18 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rails
|
@@ -737,7 +737,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
737
737
|
- !ruby/object:Gem::Version
|
738
738
|
version: '0'
|
739
739
|
requirements: []
|
740
|
-
rubygems_version: 3.
|
740
|
+
rubygems_version: 3.1.1
|
741
741
|
signing_key:
|
742
742
|
specification_version: 4
|
743
743
|
summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
|