blacklight-spotlight 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/spotlight/sir-trevor/locales.js +1 -1
- data/app/assets/stylesheets/spotlight/_pages.scss +6 -0
- data/app/controllers/spotlight/browse_controller.rb +1 -1
- data/app/models/spotlight/blacklight_configuration.rb +1 -1
- data/app/views/spotlight/browse/_search.html.erb +1 -1
- data/app/views/spotlight/searches/_search.html.erb +1 -1
- data/lib/spotlight/version.rb +1 -1
- data/spec/examples.txt +1168 -1170
- data/spec/features/javascript/feature_page_admin_spec.rb +0 -2
- data/spec/models/spotlight/blacklight_configuration_spec.rb +2 -0
- metadata +16 -2
@@ -53,7 +53,6 @@ feature 'Feature Pages Adminstration', js: true do
|
|
53
53
|
end
|
54
54
|
|
55
55
|
it 'stays in curation mode if a user has unsaved data' do
|
56
|
-
pending('Spec does not work with chromedriver')
|
57
56
|
visit spotlight.edit_exhibit_feature_page_path(page1.exhibit, page1)
|
58
57
|
|
59
58
|
# Hack to bypass alert about unsaved changes
|
@@ -68,7 +67,6 @@ feature 'Feature Pages Adminstration', js: true do
|
|
68
67
|
end
|
69
68
|
|
70
69
|
it 'stays in curation mode if a user has unsaved contenteditable data' do
|
71
|
-
pending('Spec does not work with chromedriver')
|
72
70
|
visit spotlight.edit_exhibit_feature_page_path(page1.exhibit, page1)
|
73
71
|
|
74
72
|
# Hack to bypass alert about unsaved changes
|
@@ -99,11 +99,13 @@ describe Spotlight::BlacklightConfiguration, type: :model do
|
|
99
99
|
block.call(field)
|
100
100
|
end
|
101
101
|
allow(subject.exhibit).to receive(:custom_fields).and_return(custom_fields)
|
102
|
+
subject.facet_fields = { 'a' => { enabled: '1', label: 'Label' } }
|
102
103
|
expect(subject.blacklight_config.facet_fields).to include('a')
|
103
104
|
expect(subject.blacklight_config.facet_fields['a'].show).to be_falsey
|
104
105
|
expect(subject.blacklight_config.facet_fields['a'].if).to eq :field_enabled?
|
105
106
|
expect(subject.blacklight_config.facet_fields['a'].enabled).to eq false
|
106
107
|
expect(subject.blacklight_config.facet_fields['a'].limit).to eq true
|
108
|
+
expect(subject.blacklight_config.facet_fields['a'].original).to be_blank
|
107
109
|
end
|
108
110
|
end
|
109
111
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight-spotlight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2018-
|
14
|
+
date: 2018-03-05 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -461,6 +461,20 @@ dependencies:
|
|
461
461
|
- - "~>"
|
462
462
|
- !ruby/object:Gem::Version
|
463
463
|
version: '1.0'
|
464
|
+
- !ruby/object:Gem::Dependency
|
465
|
+
name: iiif-presentation
|
466
|
+
requirement: !ruby/object:Gem::Requirement
|
467
|
+
requirements:
|
468
|
+
- - ">="
|
469
|
+
- !ruby/object:Gem::Version
|
470
|
+
version: '0'
|
471
|
+
type: :runtime
|
472
|
+
prerelease: false
|
473
|
+
version_requirements: !ruby/object:Gem::Requirement
|
474
|
+
requirements:
|
475
|
+
- - ">="
|
476
|
+
- !ruby/object:Gem::Version
|
477
|
+
version: '0'
|
464
478
|
- !ruby/object:Gem::Dependency
|
465
479
|
name: iiif_manifest
|
466
480
|
requirement: !ruby/object:Gem::Requirement
|