Skip to content

Commit

Permalink
updates for modified manifesto api
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Sep 7, 2015
1 parent 5611235 commit d6f74aa
Show file tree
Hide file tree
Showing 13 changed files with 313 additions and 291 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DownloadDialogue extends BaseDownloadDialogue {
// add each file src
var canvas = this.provider.getCurrentCanvas();

_.each(this.provider.getRenderings(canvas), (rendering: any) => {
_.each(canvas.getRenderings(), (rendering: any) => {
this.addEntireFileDownloadOption(rendering);
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/uv-pdf-extension/DownloadDialogue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DownloadDialogue extends BaseDownloadDialogue {
// add each file src
var canvas = this.provider.getCurrentCanvas();

_.each(this.provider.getRenderings(canvas), (rendering: any) => {
_.each(canvas.getRenderings(), (rendering: any) => {
this.addEntireFileDownloadOption(rendering);
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/extensions/uv-seadragon-extension/DownloadDialogue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ class DownloadDialogue extends BaseDownloadDialogue {
this.$downloadOptions.find('.dynamic').remove();
}

addDownloadOptionsForRenderings(resource: any, defaultLabel: string)
addDownloadOptionsForRenderings(resource: Manifesto.IManifestResource, defaultLabel: string)
{
var renderings: Manifesto.IRendering[] = this.provider.getRenderings(resource);
var renderings: Manifesto.IRendering[] = manifesto.getRenderings(resource);

for (var i = 0; i < renderings.length; i++) {
var rendering: Manifesto.IRendering = renderings[i];
Expand Down
4 changes: 2 additions & 2 deletions src/extensions/uv-seadragon-extension/Provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class Provider extends BaseProvider implements ISeadragonProvider{
}

getAutoCompleteService(): Manifesto.IService {
return this.getService(this.manifest, manifesto.ServiceProfile.autoComplete());
return this.manifest.getService(manifesto.ServiceProfile.autoComplete());
}

getAutoCompleteUri(): string{
Expand All @@ -195,7 +195,7 @@ class Provider extends BaseProvider implements ISeadragonProvider{
}

getSearchWithinService(): Manifesto.IService {
return this.getService(this.manifest, manifesto.ServiceProfile.searchWithin());
return this.manifest.getService(manifesto.ServiceProfile.searchWithin());
}

getSearchWithinServiceUri(): string {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ docReady(function() {
if (config) uri += "&config=" + config;
if (jsonp) uri += "&jsonp=" + jsonp;

// these are values that getParam can either retrieve from hash or query string
// these are values that getParam can either retrieve from the iframe querystring or parent document hash params
if (sequenceIndex) uri += "&si=" + sequenceIndex;
if (canvasIndex) uri += "&ci=" + canvasIndex;
if (zoom) uri += "&z=" + zoom;
Expand Down
Loading

0 comments on commit d6f74aa

Please sign in to comment.