discovery-indexer 3.1.0 → 3.1.1

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
  SHA1:
3
- metadata.gz: 9f64eea714259a5affc67b00288a36ad0748f5b7
4
- data.tar.gz: bf28bbd7dfef5326c5b47b67a38ed8993b297d03
3
+ metadata.gz: 25a0a48ac397020000b95fb292de28584181ca40
4
+ data.tar.gz: 5ba560e9f28f17dcf4b2064665b7f8f7de8f16ed
5
5
  SHA512:
6
- metadata.gz: d0ba91632921efb45a5c0cee754d5681a48420dc7c35799b654b92ff3c3a962b68f5a422c70a89928e6ab1c4f0b0281161828dccbaba5dd91f3d788207d0c648
7
- data.tar.gz: a4f79864d64473a0409447c2c8f1d7d791eeea0edd87b9956bafa1571997248a4d0381e3d83bd8af7c8a65f7070ff1f8db15d4d30a43ce8bae09cf123618b27e
6
+ metadata.gz: 4513362016f7de023eb305e6067570a33ad97d15aa8ca86521023a5ce436eaca6ac15216b2080ee52a973ec72e5410fc6f6562dd6481f64cda9525d20bf5a98b
7
+ data.tar.gz: 4155ed95d2de09fc5843a7813cb0a8c9f3a5e50901fad5091cffe82fda0f4d85235f762a5cf6270c913a762d36b916ebaa2994982141f3954e13638a02509ce7
@@ -75,6 +75,12 @@ module DiscoveryIndexer
75
75
  # "oo000oo0001/pc0065_b08_f10_i031.jp2"
76
76
  attr_accessor :thumb
77
77
 
78
+ # @!attribute [rw] thumb
79
+ # @return [String] a thumbnail image if it exists in the PURL, encoded as necessary
80
+ # @example
81
+ # "oo000oo0001%2Fpc0065_b08_f10_i031.jp2"
82
+ attr_accessor :encoded_thumb
83
+
78
84
  # @!attribute [rw] sw_image_ids
79
85
  # @return [Array] a list of the image ids and corresponding druids with %2F
80
86
  # separator from the file and externalFile tags in the content_metadata
@@ -31,6 +31,7 @@ module DiscoveryIndexer
31
31
  purlxml_model.release_tags_hash = parse_release_tags_hash
32
32
  purlxml_model.file_ids = parse_file_ids
33
33
  purlxml_model.thumb = parse_thumb
34
+ purlxml_model.encoded_thumb = parse_encoded_thumb
34
35
  purlxml_model.image_ids = parse_image_ids
35
36
  purlxml_model.sw_image_ids = parse_sw_image_ids
36
37
  purlxml_model.catkey = parse_catkey
@@ -161,7 +162,7 @@ module DiscoveryIndexer
161
162
 
162
163
  # the thumbnail in publicXML properly URI encoded, including the slash separator
163
164
  # @return [String] thumb filename with druid prepended, e.g. oo000oo0001%2Ffilename%20withspace.jp2
164
- def encoded_thumb
165
+ def parse_encoded_thumb
165
166
  thumb=parse_thumb
166
167
  return unless thumb
167
168
  thumb_druid=thumb.split('/').first # the druid (before the first slash)
@@ -1,3 +1,3 @@
1
1
  module DiscoveryIndexer
2
- VERSION = '3.1.0'
2
+ VERSION = '3.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discovery-indexer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ahmed AlSum