blacklight-spotlight 5.0.0.pre.alpha3 → 5.0.0
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 +4 -4
- data/app/assets/javascripts/spotlight/spotlight.esm.js +8 -7
- data/app/assets/javascripts/spotlight/spotlight.esm.js.map +1 -1
- data/app/assets/javascripts/spotlight/spotlight.js +8 -7
- data/app/assets/javascripts/spotlight/spotlight.js.map +1 -1
- data/app/javascript/spotlight/admin/blocks/solr_documents_base_block.js +4 -4
- data/app/javascript/spotlight/admin/iiif.js +4 -3
- data/app/models/spotlight/job_tracker.rb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_heading_block.html.erb +1 -1
- data/lib/spotlight/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a26266b1d604813d250c2b425946aac71d949a2fbab512afc7df223b47e05289
|
4
|
+
data.tar.gz: d83e03919f89b14dacb40962671ceff6423293055d08195e976156e6dfa312d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 158c210f757f5f4d264e9015b6b6e274ea2a6fbc4623d681fee5705cf189aaae248936b271079ee2419ef6ee81c4e55095de0ed730614d2d75b1fdfa7f872b53
|
7
|
+
data.tar.gz: 28b4acb8124c98fc4c55a445626e89fca4d937e409a7146250ddfbb41fe52f9a9096f7a215ea6165562e04e2acd108093933caae0e4cd449e0edc668a52b8d33
|
@@ -3556,10 +3556,11 @@ class Iiif {
|
|
3556
3556
|
it[Symbol.iterator] = function*() {
|
3557
3557
|
for (let canvas of context.canvases()) {
|
3558
3558
|
for (let image of canvas.images) {
|
3559
|
-
var iiifService = image.resource.service
|
3559
|
+
var iiifService = image.resource?.service || image.resource?.default?.service;
|
3560
|
+
var iiifServiceId = iiifService['@id'];
|
3560
3561
|
yield {
|
3561
|
-
'thumb':
|
3562
|
-
'tilesource':
|
3562
|
+
'thumb': iiifServiceId + '/full/!100,100/0/default.jpg',
|
3563
|
+
'tilesource': iiifServiceId + '/info.json',
|
3563
3564
|
'manifest': context.manifestUrl,
|
3564
3565
|
'canvasId': canvas['@id'],
|
3565
3566
|
'imageId': image['@id']
|
@@ -6131,10 +6132,10 @@ SirTrevor.Blocks.SolrDocumentsBase = (function(){
|
|
6131
6132
|
var iiifFields = [
|
6132
6133
|
'<input type="hidden" name="item[' + index + '][thumbnail_image_url]" value="' + (autocomplete_data.thumbnail_image_url || autocomplete_data.thumbnail || "") + '"/>',
|
6133
6134
|
'<input type="hidden" name="item[' + index + '][full_image_url]" value="' + (autocomplete_data.full_image_url || autocomplete_data.thumbnail_image_url || autocomplete_data.thumbnail || "") + '"/>',
|
6134
|
-
'<input type="hidden" name="item[' + index + '][iiif_tilesource]" value="' + (autocomplete_data.iiif_tilesource) + '"/>',
|
6135
|
-
'<input type="hidden" name="item[' + index + '][iiif_manifest_url]" value="' + (autocomplete_data.iiif_manifest_url) + '"/>',
|
6136
|
-
'<input type="hidden" name="item[' + index + '][iiif_canvas_id]" value="' + (autocomplete_data.iiif_canvas_id) + '"/>',
|
6137
|
-
'<input type="hidden" name="item[' + index + '][iiif_image_id]" value="' + (autocomplete_data.iiif_image_id) + '"/>',
|
6135
|
+
'<input type="hidden" name="item[' + index + '][iiif_tilesource]" value="' + (autocomplete_data.iiif_tilesource || "") + '"/>',
|
6136
|
+
'<input type="hidden" name="item[' + index + '][iiif_manifest_url]" value="' + (autocomplete_data.iiif_manifest_url || "") + '"/>',
|
6137
|
+
'<input type="hidden" name="item[' + index + '][iiif_canvas_id]" value="' + (autocomplete_data.iiif_canvas_id || "") + '"/>',
|
6138
|
+
'<input type="hidden" name="item[' + index + '][iiif_image_id]" value="' + (autocomplete_data.iiif_image_id || "") + '"/>',
|
6138
6139
|
];
|
6139
6140
|
|
6140
6141
|
// The region input is required for widgets that enable image cropping but not otherwise
|