File tree Expand file tree Collapse file tree
app/item-page/mirador-viewer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ export class MiradorViewerComponent implements OnInit {
3232 @Input ( ) searchable : boolean ;
3333
3434 /**
35- * Is used as index of the element to show.
35+ * Is used as canvas identifier of the element to show.
3636 */
37- @Input ( ) canvasIndex : number ;
37+ @Input ( ) canvasId : string ;
3838
3939 /**
4040 * Hides embedded viewer in dev mode.
@@ -92,8 +92,8 @@ export class MiradorViewerComponent implements OnInit {
9292 if ( this . notMobile ) {
9393 viewerPath += '¬Mobile=true' ;
9494 }
95- if ( this . canvasIndex ) {
96- viewerPath += `&canvasId=${ this . canvasIndex } ` ;
95+ if ( this . canvasId ) {
96+ viewerPath += `&canvasId=${ this . canvasId } ` ;
9797 }
9898
9999 // TODO: Should the query term be trusted here?
Original file line number Diff line number Diff line change @@ -55,9 +55,9 @@ windowSettings.manifestId = manifest;
5555 }
5656 }
5757 }
58- if ( canvasId != null && canvasId !== 'null' && + canvasId >= 0 ) {
58+ if ( canvasId != null && canvasId !== 'null' ) {
5959 windowSettings . canvasId =
60- `${ ( manifest . replace ( MANIFEST_URL_PART , '' ) ) } /canvas/c ${ canvasId } ` ;
60+ `${ ( manifest . replace ( MANIFEST_URL_PART , '' ) ) } /canvas/${ canvasId } ` ;
6161 }
6262} ) ( ) ;
6363
You can’t perform that action at this time.
0 commit comments