blacklight-spotlight 4.6.0 → 4.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +37 -7
- data/app/assets/javascripts/spotlight/spotlight.esm.js +1 -1
- data/app/assets/javascripts/spotlight/spotlight.esm.js.map +1 -1
- data/app/assets/javascripts/spotlight/spotlight.js +1 -1
- data/app/assets/javascripts/spotlight/spotlight.js.map +1 -1
- data/app/assets/stylesheets/spotlight/_browse.scss +27 -16
- data/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +11 -2
- data/app/assets/stylesheets/spotlight/_header.scss +5 -24
- data/app/assets/stylesheets/spotlight/browse_group_categories_block.scss +0 -12
- data/app/javascript/spotlight/admin/pages.js +1 -1
- data/app/jobs/concerns/spotlight/job_tracking.rb +1 -1
- data/app/views/shared/_masthead.html.erb +1 -1
- data/lib/generators/spotlight/install_generator.rb +25 -0
- data/lib/generators/spotlight/templates/solr/conf/solrconfig.xml +1 -1
- data/lib/spotlight/version.rb +1 -1
- metadata +3 -3
@@ -42,7 +42,7 @@ $image-overlay-max-height: 300px;
|
|
42
42
|
margin-bottom: $spacer;
|
43
43
|
|
44
44
|
.nav-link {
|
45
|
-
margin-bottom: $spacer * .75;
|
45
|
+
margin-bottom: $spacer * 0.75;
|
46
46
|
}
|
47
47
|
}
|
48
48
|
|
@@ -61,7 +61,7 @@ $image-overlay-max-height: 300px;
|
|
61
61
|
overflow: hidden;
|
62
62
|
position: relative;
|
63
63
|
|
64
|
-
img {
|
64
|
+
.img-responsive {
|
65
65
|
width: 100%;
|
66
66
|
}
|
67
67
|
}
|
@@ -70,17 +70,22 @@ $image-overlay-max-height: 300px;
|
|
70
70
|
position: absolute;
|
71
71
|
bottom: 0;
|
72
72
|
left: 0;
|
73
|
+
height: 100%;
|
73
74
|
width: 100%;
|
74
|
-
background: linear-gradient(0deg, rgba(46, 45, 41, 0.7)
|
75
|
+
background: linear-gradient(0deg, rgba(46, 45, 41, 0.7) 45%, rgba(46, 45, 41, 0) 100%);
|
75
76
|
color: $white;
|
76
|
-
padding:
|
77
|
-
|
77
|
+
padding: 5%;
|
78
|
+
display: flex;
|
79
|
+
flex-direction: column;
|
80
|
+
justify-content: flex-end;
|
78
81
|
|
79
|
-
|
80
|
-
|
82
|
+
&:hover {
|
83
|
+
background: linear-gradient(rgba(46, 45, 41, 0.7), 0%, rgba(46, 45, 41, 0.7) 100%);
|
84
|
+
}
|
81
85
|
|
82
86
|
.browse-category-title {
|
83
87
|
font-size: $h3-font-size;
|
88
|
+
text-align: center;
|
84
89
|
|
85
90
|
.category-subtitle {
|
86
91
|
display: block;
|
@@ -93,10 +98,6 @@ $image-overlay-max-height: 300px;
|
|
93
98
|
text-transform: uppercase;
|
94
99
|
}
|
95
100
|
}
|
96
|
-
|
97
|
-
&:hover {
|
98
|
-
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
|
99
|
-
}
|
100
101
|
}
|
101
102
|
|
102
103
|
@media screen and (max-width: breakpoint-max("sm")) {
|
@@ -106,19 +107,29 @@ $image-overlay-max-height: 300px;
|
|
106
107
|
max-height: $image-overlay-max-height;
|
107
108
|
max-width: 350px;
|
108
109
|
}
|
109
|
-
.text-overlay .browse-category-title {
|
110
|
+
.text-overlay .browse-category-title {
|
111
|
+
font-size: $h3-font-size;
|
112
|
+
}
|
110
113
|
}
|
111
114
|
@media screen and (min-width: breakpoint-min("sm")) and (max-width: breakpoint-max("md")) {
|
112
115
|
$image-overlay-max-height: 240px;
|
113
|
-
.image-overlay {
|
116
|
+
.image-overlay {
|
117
|
+
max-height: $image-overlay-max-height;
|
118
|
+
}
|
114
119
|
}
|
115
120
|
@media screen and (min-width: breakpoint-min("md")) and (max-width: breakpoint-max("lg")) {
|
116
121
|
$image-overlay-max-height: 250px;
|
117
|
-
.text-overlay .browse-category-title {
|
118
|
-
|
122
|
+
.text-overlay .browse-category-title {
|
123
|
+
font-size: $h4-font-size;
|
124
|
+
}
|
125
|
+
.image-overlay {
|
126
|
+
max-height: $image-overlay-max-height;
|
127
|
+
}
|
119
128
|
}
|
120
129
|
@media screen and (min-width: breakpoint-min("lg")) {
|
121
|
-
.image-overlay {
|
130
|
+
.image-overlay {
|
131
|
+
max-height: $image-overlay-max-height;
|
132
|
+
}
|
122
133
|
}
|
123
134
|
}
|
124
135
|
|
@@ -65,15 +65,24 @@ $xl-sidebar-five-tile-width: ($container-xl-sidebar * 0.2) - $tile-margin;
|
|
65
65
|
color: $featured-browse-category-caption-color;
|
66
66
|
position: absolute;
|
67
67
|
text-align: center;
|
68
|
+
height: 100%;
|
68
69
|
width: 100%;
|
69
|
-
padding:
|
70
|
-
background: linear-gradient(0deg, rgba(46, 45, 41, 0.7)
|
70
|
+
padding: 5%;
|
71
|
+
background: linear-gradient(0deg, rgba(46, 45, 41, 0.7) 45%, rgba(46, 45, 41, 0) 100%);
|
71
72
|
border-radius: $border-radius-lg;
|
73
|
+
display: flex;
|
74
|
+
flex-direction: column;
|
75
|
+
justify-content: flex-end;
|
76
|
+
|
77
|
+
&:hover {
|
78
|
+
background: linear-gradient(rgba(46, 45, 41, 0.7), 0%, rgba(46, 45, 41, 0.7) 100%);
|
79
|
+
}
|
72
80
|
}
|
73
81
|
|
74
82
|
.category-title {
|
75
83
|
font-size: $h4-font-size;
|
76
84
|
line-height: 1.2;
|
85
|
+
text-align: center;
|
77
86
|
margin: 0;
|
78
87
|
padding: $spacer * 0.25;
|
79
88
|
|
@@ -18,7 +18,6 @@
|
|
18
18
|
padding: 0;
|
19
19
|
position: relative;
|
20
20
|
|
21
|
-
|
22
21
|
.site-title {
|
23
22
|
margin-bottom: 0;
|
24
23
|
}
|
@@ -30,14 +29,6 @@
|
|
30
29
|
white-space: nowrap;
|
31
30
|
}
|
32
31
|
|
33
|
-
small {
|
34
|
-
@extend .d-none;
|
35
|
-
@extend .d-md-block;
|
36
|
-
@extend .py-2;
|
37
|
-
|
38
|
-
font-size: $h4-font-size;
|
39
|
-
}
|
40
|
-
|
41
32
|
.navbar {
|
42
33
|
&:last-child {
|
43
34
|
margin-bottom: 0;
|
@@ -128,12 +119,11 @@
|
|
128
119
|
// especially on light background images.
|
129
120
|
.background-container-gradient {
|
130
121
|
@include masthead-background-containers();
|
131
|
-
background:
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
);
|
122
|
+
background: linear-gradient(
|
123
|
+
rgba(0, 0, 0, 0),
|
124
|
+
rgba(0, 0, 0, 0.4),
|
125
|
+
rgba(0, 0, 0, 0.5)
|
126
|
+
);
|
137
127
|
|
138
128
|
height: 100%;
|
139
129
|
}
|
@@ -153,12 +143,3 @@
|
|
153
143
|
width: 1px;
|
154
144
|
}
|
155
145
|
}
|
156
|
-
|
157
|
-
#skip-link {
|
158
|
-
margin-left: 1rem;
|
159
|
-
padding-top: 0.5rem;
|
160
|
-
position: absolute;
|
161
|
-
top: 0;
|
162
|
-
z-index: 1000;
|
163
|
-
width: auto;
|
164
|
-
}
|
@@ -8,18 +8,6 @@
|
|
8
8
|
.category-caption {
|
9
9
|
z-index: 100;
|
10
10
|
}
|
11
|
-
|
12
|
-
.hover-overlay {
|
13
|
-
height: 100%;
|
14
|
-
position: absolute;
|
15
|
-
width: 100%;
|
16
|
-
}
|
17
|
-
|
18
|
-
&:hover {
|
19
|
-
.hover-overlay {
|
20
|
-
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
|
21
|
-
}
|
22
|
-
}
|
23
11
|
}
|
24
12
|
|
25
13
|
.spotlight-flexbox.browse-categories .box {
|
@@ -5,7 +5,7 @@ import Core from 'spotlight/core'
|
|
5
5
|
export default class {
|
6
6
|
connect(){
|
7
7
|
SirTrevor.setDefaults({
|
8
|
-
iconUrl: Spotlight.sirTrevorIcon,
|
8
|
+
iconUrl: Spotlight.sirTrevorIcon || window.sirTrevorIcon,
|
9
9
|
uploadUrl: $('[data-attachment-endpoint]').data('attachment-endpoint'),
|
10
10
|
ajaxOptions: {
|
11
11
|
headers: {
|
@@ -44,7 +44,7 @@ module Spotlight
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def finalize_job_tracker!
|
47
|
-
return unless
|
47
|
+
return unless %w[in_progress enqueued].include?(job_tracker.status)
|
48
48
|
|
49
49
|
job_tracker.update(
|
50
50
|
status: @failed ? 'failed' : 'completed',
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<%= masthead_heading_content %>
|
34
34
|
</h1>
|
35
35
|
<% if masthead_subheading_content %>
|
36
|
-
<small><%= masthead_subheading_content %></small>
|
36
|
+
<small class="d-none d-md-block py-2 fs-4"><%= masthead_subheading_content %></small>
|
37
37
|
<% end %>
|
38
38
|
<% end %>
|
39
39
|
</div>
|
@@ -122,6 +122,25 @@ module Spotlight
|
|
122
122
|
generate 'blacklight_gallery:install'
|
123
123
|
end
|
124
124
|
|
125
|
+
def configure_osd_for_sprockets
|
126
|
+
return unless defined?(Sprockets)
|
127
|
+
|
128
|
+
append_to_file 'app/assets/javascripts/application.js', "\n//= require openseadragon\n//= require openseadragon-rails/openseadragon-rails\n"
|
129
|
+
|
130
|
+
append_to_file 'config/initializers/assets.rb' do
|
131
|
+
<<~CONTENT
|
132
|
+
Rails.application.config.assets.paths << Rails.root.join('node_modules/openseadragon/build/openseadragon/images')
|
133
|
+
Rails.application.config.assets.paths << Rails.root.join('node_modules/openseadragon/build/openseadragon')
|
134
|
+
CONTENT
|
135
|
+
end
|
136
|
+
|
137
|
+
append_to_file 'app/assets/config/manifest.js', "//= link_tree ../../../node_modules/openseadragon/build/openseadragon/images\n"
|
138
|
+
|
139
|
+
inject_into_file 'app/controllers/application_controller.rb', after: 'class ApplicationController < ActionController::Base' do
|
140
|
+
"\n helper Openseadragon::OpenseadragonHelper\n"
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
125
144
|
def add_oembed
|
126
145
|
unless Bundler.locked_gems.dependencies.key? 'blacklight-oembed'
|
127
146
|
gem 'blacklight-oembed', '~> 1.0'
|
@@ -129,6 +148,12 @@ module Spotlight
|
|
129
148
|
end
|
130
149
|
generate 'blacklight_oembed:install'
|
131
150
|
copy_file 'config/initializers/oembed.rb'
|
151
|
+
|
152
|
+
return unless defined?(Sprockets)
|
153
|
+
|
154
|
+
# Use the rolled up assets from blacklight-oembed for sprockets
|
155
|
+
gsub_file 'app/assets/javascripts/blacklight_oembed.js', "import oembed from 'blacklight_oembed/oembed'",
|
156
|
+
'//= require blacklight_oembed/oembed'
|
132
157
|
end
|
133
158
|
|
134
159
|
def add_mailer_defaults
|
@@ -16,7 +16,7 @@
|
|
16
16
|
</updateLog>
|
17
17
|
</updateHandler>
|
18
18
|
|
19
|
-
<!-- solr lib dirs -->
|
19
|
+
<!-- solr lib dirs: needed for Solr 8 compatibility but ignored in solr 9.8 and above -->
|
20
20
|
<lib dir="${solr.install.dir:../../../..}/modules/analysis-extras/lib" />
|
21
21
|
<lib dir="${solr.install.dir:../../../..}/contrib/analysis-extras/lib" />
|
22
22
|
<lib dir="${solr.install.dir:../../../..}/contrib/analysis-extras/lucene-libs" />
|
data/lib/spotlight/version.rb
CHANGED
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: 4.
|
4
|
+
version: 4.7.0
|
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:
|
14
|
+
date: 2025-01-24 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activejob-status
|
@@ -1597,7 +1597,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1597
1597
|
- !ruby/object:Gem::Version
|
1598
1598
|
version: '0'
|
1599
1599
|
requirements: []
|
1600
|
-
rubygems_version: 3.
|
1600
|
+
rubygems_version: 3.5.9
|
1601
1601
|
signing_key:
|
1602
1602
|
specification_version: 4
|
1603
1603
|
summary: Enable librarians, curators, and others who are responsible for digital collections
|