Skip to content

Commit

Permalink
Merge pull request #934 from IIIF/653-multilingual-labels
Browse files Browse the repository at this point in the history
use JsonLd.getTextValue on manifest, canvas, and range labels so mult…
  • Loading branch information
rsinghal committed May 19, 2016
2 parents ae060e8 + e86db6c commit 360948b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/src/viewer/manifestListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
manifest = _this.manifest.jsonLd;

this.tplData = {
label: manifest.label,
label: $.JsonLd.getTextValue(manifest.label),
repository: location,
canvasCount: manifest.sequences[0].canvases.length,
images: []
Expand Down
2 changes: 1 addition & 1 deletion js/src/widgets/thumbnailsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

return {
thumbUrl: thumbnailUrl,
title: canvas.label,
title: $.JsonLd.getTextValue(canvas.label),
id: canvas['@id'],
width: width,
highlight: _this.currentImgIndex === index ? 'highlight' : ''
Expand Down
1 change: 1 addition & 0 deletions js/src/widgets/toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
}

children.forEach(function(child) {
child.label = $.JsonLd.getTextValue(child.label);
out = out + previousTemplate(child);
});

Expand Down

0 comments on commit 360948b

Please sign in to comment.