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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0eb6356397553e1c11cf63f0ffea8c801d87985c9ac0cfdb953e349f85f7df86
4
- data.tar.gz: 11c1f79ab20f53abc3616c5bb3281748fcaf6c43eedc4366021e2120ff8689f0
3
+ metadata.gz: 264d92ef87c83424b382a6925033397b0b886f66d9ef9e5fefeeff8a0f492a9b
4
+ data.tar.gz: 00f4a1e42e0d4bacfa15cea790ec24085cdb9e46a2a005f1d47417de0b61cc21
5
5
  SHA512:
6
- metadata.gz: 607ba81110242c6cc63bcf6215ccea19ca51d886e3ae7d62a5a720a546c222b599a2057ae5542686a3d39eb3e08212883da12cc59924a820e4030b7d990ea9b5
7
- data.tar.gz: 37cf56a48274beae41af42e2f13ecac08644924732eeb492c8e7aa9168559605063348c8bad53e30ba5d7bf7790b02d42702210f0a9391a1c1f59156a8ac6cbf
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.1'
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.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.4.19
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