blacklight-spotlight 4.1.1 → 4.1.2
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/app/components/spotlight/icon_component.rb +3 -3
- data/app/controllers/spotlight/catalog_controller.rb +2 -0
- data/app/views/spotlight/catalog/_document_admin_table.html.erb +1 -1
- data/app/views/spotlight/catalog/edit.html.erb +1 -1
- data/lib/spotlight/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 264d92ef87c83424b382a6925033397b0b886f66d9ef9e5fefeeff8a0f492a9b
|
|
4
|
+
data.tar.gz: 00f4a1e42e0d4bacfa15cea790ec24085cdb9e46a2a005f1d47417de0b61cc21
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e7c7c123467a8001c771d28944353fae1bb24d80039ca41c7dc927e1e8a8cfff6ec916467ff5241e88c45647d393d6dc68d05a17065cea95e31fc67c3de3a8e
|
|
7
|
+
data.tar.gz: 24fbaf64f21ac53e2c0eb5c38663fd9fa3d490b5cab5854ee407237ba6c50092a5b1e72a79828d7775729531a4167006c7b9cfcf59c1d8c2265a8974aa162924
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
module Spotlight
|
|
4
4
|
# Displays the document
|
|
5
5
|
class IconComponent < Blacklight::Icons::IconComponent
|
|
6
|
-
if Blacklight.version < '
|
|
7
|
-
# Work around https://github.com/projectblacklight/blacklight/issues/3232 (fixed in Blacklight
|
|
6
|
+
if Blacklight.version < '7.39'
|
|
7
|
+
# Work around https://github.com/projectblacklight/blacklight/issues/3232 (fixed in Blacklight 7.39)
|
|
8
8
|
def classes
|
|
9
|
-
(@classes - ['blacklight-icons-'] + ["blacklight-icons-#{name}"]).uniq
|
|
9
|
+
((@classes || (super if defined?(super)) || []) - ['blacklight-icons-'] + ["blacklight-icons-#{name}"]).uniq
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
12
|
end
|
|
@@ -42,6 +42,8 @@ module Spotlight
|
|
|
42
42
|
partials: [:index_compact],
|
|
43
43
|
document_actions: [])
|
|
44
44
|
end
|
|
45
|
+
blacklight_config.view.admin_table.document_component ||= Spotlight::DocumentAdminTableComponent
|
|
46
|
+
|
|
45
47
|
if Blacklight::VERSION > '8'
|
|
46
48
|
blacklight_config.track_search_session.storage = false
|
|
47
49
|
else
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</thead>
|
|
12
12
|
|
|
13
13
|
<% if Blacklight.version < '8.0' %>
|
|
14
|
-
<%= render view_config.document_component.with_collection(documents) %>
|
|
14
|
+
<%= render (view_config.document_component || Spotlight::DocumentAdminTableComponent).with_collection(documents) %>
|
|
15
15
|
<% else %>
|
|
16
16
|
<% document_presenters = documents.map { |doc| document_presenter(doc) } -%>
|
|
17
17
|
<%= render view_config.document_component.with_collection(document_presenters) %>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div class="container">
|
|
2
2
|
<div class="row">
|
|
3
3
|
<%- view_config = blacklight_config.view_config(action_name: :edit) %>
|
|
4
|
-
<%= render (view_config.document_component || Blacklight::DocumentComponent).new(
|
|
4
|
+
<%= render (view_config.document_component || Blacklight::DocumentComponent).new((Blacklight.version > '8.0' ? :document : :presenter) => document_presenter(@document), classes: ['col-md-8'], component: :div, show: true, actions: false, partials: view_config.partials) do |component| %>
|
|
5
5
|
<% component.with_title(as: 'h1', classes: '', link_to_document: false) %>
|
|
6
6
|
<% component.with_body do %>
|
|
7
7
|
<% view_config.partials.each do |view_partial| %>
|
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.1.
|
|
4
|
+
version: 4.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Beer
|
|
@@ -1602,7 +1602,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1602
1602
|
- !ruby/object:Gem::Version
|
|
1603
1603
|
version: '0'
|
|
1604
1604
|
requirements: []
|
|
1605
|
-
rubygems_version: 3.
|
|
1605
|
+
rubygems_version: 3.5.9
|
|
1606
1606
|
signing_key:
|
|
1607
1607
|
specification_version: 4
|
|
1608
1608
|
summary: Enable librarians, curators, and others who are responsible for digital collections
|