Skip to content

Commit

Permalink
Fixes UV embed url. (#882)
Browse files Browse the repository at this point in the history
Two problems here, a commit was missing in our rebase of master:

sul-dlss-deprecated/universalviewer@3698a23

And we updated the path it was being served from adding the md5 hash
  • Loading branch information
mejackreed authored and camillevilla committed Apr 28, 2018
1 parent 90c61ae commit 542c7d6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions public/uv-3-ae93b63376b4ac7abc51c04c9d5103ea
2 changes: 1 addition & 1 deletion public/uv-3/.md5
@@ -1 +1 @@
61ff8f0ca0c7ceda859d0e00861a5150
ae93b63376b4ac7abc51c04c9d5103ea
4 changes: 2 additions & 2 deletions public/uv-3/build.js.map

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions public/uv-3/uv.js
Expand Up @@ -26653,10 +26653,8 @@ define('extensions/uv-seadragon-extension/Extension',["require", "exports", "../
return infoUri;
};
Extension.prototype.getEmbedScript = function (template, width, height, zoom, rotation) {
var config = this.data.config.uri || '';
var locales = this.getSerializedLocales();
var appUri = this.getAppUri();
var iframeSrc = appUri + "#?manifest=" + this.helper.iiifResourceUri + "&c=" + this.helper.collectionIndex + "&m=" + this.helper.manifestIndex + "&s=" + this.helper.sequenceIndex + "&cv=" + this.helper.canvasIndex + "&config=" + config + "&locales=" + locales + "&xywh=" + zoom + "&r=" + rotation;
var iframeSrc = appUri.replace(/\/uv-3.*\/uv.html/, '/iframe') + "?url=" + this.helper.iiifResourceUri.replace('/iiif/manifest', '');
var script = Utils.Strings.format(template, iframeSrc, width.toString(), height.toString());
return script;
};
Expand Down

0 comments on commit 542c7d6

Please sign in to comment.