blacklight-gallery 4.5.2 → 4.5.4

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: c71ee2cf22c62356da80b25dc1935c2a64532937556a655d62d6da4267cc411a
4
- data.tar.gz: eb59f7062053c51b3b0bd5f5e513592c5bab1b866331e1e6d15ab9f0022803fe
3
+ metadata.gz: e3be75dee9c5f78414f77d47940c36dc5ddf47725dd09547ea4e03cd8d5b803d
4
+ data.tar.gz: 4dfb92722fcaf7233321db99aa46316accd61972da2160da2b7dfebc5548046e
5
5
  SHA512:
6
- metadata.gz: 47c62a7c6b351c88e3a648537a4582a50ec9dc7e833fe5619c76421ef995c710d3defe3d53f09e9bd72e9ee0c058bbd6cb31986e6c756db288c2b83834247212
7
- data.tar.gz: 703a23c64b909db73c0ceb93575058da2d24240b6bf54dec4ae5443095709c9abfa586824328819635707064d7827aa08b6c009fce55935ff1733b85580c0b4c
6
+ metadata.gz: dc5997b7fea7e04c1d3d5cf2124daa02aec25a784411df4ea8904fc6db82550bcbcb670d7d46f2ecba63a51575a67363dfdd8780162b8b8e1c6ecf502d4d3a0e
7
+ data.tar.gz: 957e12b77b748b861e9e55de8390a4339ae7fa95837eed47c2ad71d1185e74587bea54ff282e08773e7c989df04789b2fb64a446747e3ba6dbe29dc015402cbb
@@ -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(:show)
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.2"
3
+ VERSION = "4.5.4"
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.2",
3
+ "version": "4.5.4",
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.2
4
+ version: 4.5.4
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-09-11 00:00:00.000000000 Z
11
+ date: 2024-09-18 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.4.19
322
+ rubygems_version: 3.5.10
323
323
  signing_key:
324
324
  specification_version: 4
325
325
  summary: Gallery display for Blacklight