blacklight-gallery 4.5.1 → 4.5.3

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: 489c0dc3753e54b640a5e7c45247f1cc35a5761fe40f3d210c3d916b745d02aa
4
- data.tar.gz: 687bc2a13226ddbbb6086c0273c74d06fd31f45b07f74933e550112c6f3e143a
3
+ metadata.gz: 7c46cbfaa0f65a99bd5d524cfa3ffdee22fc2201131cb1471659c3579042f3ba
4
+ data.tar.gz: de111c6400454a933d1e9dc205510946c8ad3f3e9e2cb8abe3b809fd8d137b8c
5
5
  SHA512:
6
- metadata.gz: 0b6b951139a002872a5f4b4c1831f9b43ae21b9f95821c260f25dcac0949905a7fa3cf04b66df2f3cdde566536583c428893712c7be10e48d1371eb8f5c1955e
7
- data.tar.gz: 77a7c845ce3c8a191b225d63f81700347cf9e21dd23334b6ca54c602006719e3b9831f89d9c386c4452b6f8183ebda91d8ae9218cc0835904767cc421dc7cab8
6
+ metadata.gz: 5678793a021fa604cec2d77c1f528f87c7bd31ed92db99569b925355de63e4f2d91ae6051e5e5c003fc84a81051223ae689a0ebcfc2f5b6aa328ab7b2d55704d
7
+ data.tar.gz: 8117ae1608137d5f52037e1d8d758ac0b85c6cf5de831cc82b9b15e8a3febbaf959aa6e57e6ef68aa8debb785e0ecfafdf2c27c2f113d9359c1bfb5bed933580
data/.solr_wrapper.yml CHANGED
@@ -3,3 +3,4 @@
3
3
  collection:
4
4
  dir: solr/conf/
5
5
  name: blacklight-core
6
+ version: '9.6.1'
@@ -21,12 +21,12 @@
21
21
  clear: left;
22
22
  }
23
23
 
24
- .document-metadata {
25
- .document-title-heading {
26
- padding-left: 0;
27
- padding-right: 0;
28
- }
24
+ .document-title-heading {
25
+ padding-left: 0;
26
+ padding-right: 0;
27
+ }
29
28
 
29
+ .document-metadata {
30
30
  dt, dd {
31
31
  flex: 0 0 100%;
32
32
  max-width: 100%;
@@ -1,5 +1,6 @@
1
1
  <%
2
- image = document.to_openseadragon(blacklight_config.view_config(:show))
2
+ view_config = local_assigns[:view_config] || blacklight_config&.view_config(document_index_view_type)
3
+ image = document.to_openseadragon(view_config)
3
4
  id_prefix = osd_html_id_prefix
4
5
  %>
5
6
  <%
@@ -1,5 +1,5 @@
1
1
  module Blacklight
2
2
  module Gallery
3
- VERSION = "4.5.1"
3
+ VERSION = "4.5.3"
4
4
  end
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blacklight-gallery",
3
- "version": "4.5.0",
3
+ "version": "4.5.3",
4
4
  "description": "Gallery views for Blacklight search results",
5
5
  "main": "app/assets/javascripts/blacklight_gallery/default.js",
6
6
  "files": [
@@ -4,10 +4,18 @@ describe "catalog/openseadragon_default" do
4
4
  let(:document) { SolrDocument.new }
5
5
  let(:blacklight_config) { Blacklight::Configuration.new }
6
6
  let(:p) { "catalog/openseadragon_default" }
7
+ let(:view_config) do
8
+ Blacklight::Configuration::ViewConfig.new(document_component: Blacklight::Gallery::OpenseadragonSolrDocument)
9
+ end
7
10
 
8
11
  before do
9
- allow(view).to receive_messages(blacklight_config: blacklight_config, openseadragon_picture_tag: "<img />")
10
12
  allow(document).to receive_messages(to_openseadragon: [])
13
+ allow(view).to receive_messages(
14
+ blacklight_config: blacklight_config,
15
+ documents: [document],
16
+ document_index_view_type: 'embed',
17
+ openseadragon_picture_tag: '<img />'
18
+ )
11
19
  end
12
20
 
13
21
  it "should render the openseadragon container" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.1
4
+ version: 4.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-14 00:00:00.000000000 Z
11
+ date: 2024-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -319,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
319
  - !ruby/object:Gem::Version
320
320
  version: '0'
321
321
  requirements: []
322
- rubygems_version: 3.5.15
322
+ rubygems_version: 3.5.10
323
323
  signing_key:
324
324
  specification_version: 4
325
325
  summary: Gallery display for Blacklight