blacklight-gallery 4.5.2 → 4.5.3

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: 7c46cbfaa0f65a99bd5d524cfa3ffdee22fc2201131cb1471659c3579042f3ba
4
+ data.tar.gz: de111c6400454a933d1e9dc205510946c8ad3f3e9e2cb8abe3b809fd8d137b8c
5
5
  SHA512:
6
- metadata.gz: 47c62a7c6b351c88e3a648537a4582a50ec9dc7e833fe5619c76421ef995c710d3defe3d53f09e9bd72e9ee0c058bbd6cb31986e6c756db288c2b83834247212
7
- data.tar.gz: 703a23c64b909db73c0ceb93575058da2d24240b6bf54dec4ae5443095709c9abfa586824328819635707064d7827aa08b6c009fce55935ff1733b85580c0b4c
6
+ metadata.gz: 5678793a021fa604cec2d77c1f528f87c7bd31ed92db99569b925355de63e4f2d91ae6051e5e5c003fc84a81051223ae689a0ebcfc2f5b6aa328ab7b2d55704d
7
+ data.tar.gz: 8117ae1608137d5f52037e1d8d758ac0b85c6cf5de831cc82b9b15e8a3febbaf959aa6e57e6ef68aa8debb785e0ecfafdf2c27c2f113d9359c1bfb5bed933580
@@ -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.2"
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.2",
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.2
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-09-11 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.4.19
322
+ rubygems_version: 3.5.10
323
323
  signing_key:
324
324
  specification_version: 4
325
325
  summary: Gallery display for Blacklight