blacklight-hierarchy 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -9
- data/Gemfile +0 -9
- data/app/helpers/blacklight/hierarchy_helper.rb +3 -2
- data/lib/blacklight/hierarchy/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd2ecdea1a7d576038b77e6152422f684f335921
|
4
|
+
data.tar.gz: a38a687a84d1020d00fbffe1072a4ecfc3d3389c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9255a2509312db54dedfd34f3ebfc495b8fe534ab3caba77d8340667d7a1a5433b3a88567d6df5391030614c9d0d58cb3618bf916d14a7f65ca32cb691c83198
|
7
|
+
data.tar.gz: cefb114607e207e8291caaaf86c34c68020122f38fa27a69938875a55add0cc5cee7c76a3c7125d4f24bd9c3b573a218c569c6e32b10a3d59a596740ef85cbb1
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -31,15 +31,6 @@ else
|
|
31
31
|
gem 'rails', ENV['RAILS_VERSION']
|
32
32
|
end
|
33
33
|
end
|
34
|
-
|
35
|
-
case ENV['RAILS_VERSION']
|
36
|
-
when /^4.2/
|
37
|
-
gem 'responders', '~> 2.0'
|
38
|
-
gem 'sass-rails', '>= 5.0'
|
39
|
-
gem 'coffee-rails', '~> 4.1.0'
|
40
|
-
when /^4.[01]/
|
41
|
-
gem 'sass-rails', '< 5.0'
|
42
|
-
end
|
43
34
|
end
|
44
35
|
# END ENGINE_CART BLOCK
|
45
36
|
eval_gemfile File.expand_path("spec/test_app_templates/Gemfile.extra", File.dirname(__FILE__))
|
@@ -41,15 +41,16 @@ module Blacklight::HierarchyHelper
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def render_qfacet_value(facet_solr_field, item, options = {})
|
44
|
-
(link_to_unless(options[:suppress_link], item.value,
|
44
|
+
(link_to_unless(options[:suppress_link], item.value, path_for_facet(facet_solr_field, item.qvalue), class: 'facet_select') + ' ' + render_facet_count(item.hits)).html_safe
|
45
45
|
end
|
46
46
|
|
47
47
|
# Standard display of a SELECTED facet value, no link, special span with class, and 'remove' button.
|
48
48
|
def render_selected_qfacet_value(facet_solr_field, item)
|
49
|
+
remove_href = search_action_path(search_state.remove_facet_params(facet_solr_field, item.qvalue))
|
49
50
|
content_tag(:span, render_qfacet_value(facet_solr_field, item, suppress_link: true), class: 'selected') + ' ' +
|
50
51
|
link_to(content_tag(:span, '', class: 'glyphicon glyphicon-remove') +
|
51
52
|
content_tag(:span, '[remove]', class: 'sr-only'),
|
52
|
-
|
53
|
+
remove_href,
|
53
54
|
class: 'remove'
|
54
55
|
)
|
55
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight-hierarchy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael B. Klein
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
202
|
version: '0'
|
203
203
|
requirements: []
|
204
204
|
rubyforge_project:
|
205
|
-
rubygems_version: 2.
|
205
|
+
rubygems_version: 2.6.11
|
206
206
|
signing_key:
|
207
207
|
specification_version: 4
|
208
208
|
summary: Hierarchical Facets for Blacklight
|