blacklight-spotlight 4.1.0 → 4.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9197307a89d83a9c378555c07763888e27517bd4b104d404b6dd5c9d570f6b7
4
- data.tar.gz: 82a85fa5c50cfb072c1f843213fd82c15e2a5df71c9bda4e1cc18bb2a0b772bc
3
+ metadata.gz: 264d92ef87c83424b382a6925033397b0b886f66d9ef9e5fefeeff8a0f492a9b
4
+ data.tar.gz: 00f4a1e42e0d4bacfa15cea790ec24085cdb9e46a2a005f1d47417de0b61cc21
5
5
  SHA512:
6
- metadata.gz: f5e48d34d19852384e4d92221dc5dc626211106f5b496265773da2a1f04b36c2a08d45209fef9fd033f419b610145e4bf82194535d572ada6e164aeaa32ebfa6
7
- data.tar.gz: b985d712d3308eb32b6e6eaf2f0eadff2f77aa72d5b2d04775059dbd60a8bf9f98077c3952e591f7c16592564260c546efdd44006828707068d08f1a29191b95
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 < '8.0'
7
- # Work around https://github.com/projectblacklight/blacklight/issues/3232 (fixed in Blacklight 8.0)
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(presenter: document_presenter(@document), classes: ['col-md-8'], component: :div, show: true, actions: false, partials: view_config.partials) do |component| %>
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| %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spotlight
4
- VERSION = '4.1.0'
4
+ VERSION = '4.1.2'
5
5
  end
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.0
4
+ version: 4.1.2
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: 2024-09-25 00:00:00.000000000 Z
14
+ date: 2024-09-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activejob-status