discovery-indexer 3.1.0 → 3.1.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25a0a48ac397020000b95fb292de28584181ca40
|
4
|
+
data.tar.gz: 5ba560e9f28f17dcf4b2064665b7f8f7de8f16ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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)
|