Changeset 37061
- Timestamp:
- 2022-12-25T18:18:36+13:00 (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes/js/document_viewer.js
r37055 r37061 297 297 function createMirador3Viewer() 298 298 { 299 var doc_url = new URL(window.location); 300 var goto_page = doc_url.searchParams.get('gotoPage') || 1; 301 302 var canvas_index = goto_page -1; 299 303 300 304 var mirador3_config = { … … 304 308 } 305 309 }, 306 "window" : { "panels" : { "annotations": true, "attribution": true } }, 310 "window" : { "panels": { "annotations": true, "attribution": true }, 311 "defaultSideBarPanel": "annotations", 312 "sideBarOpenByDefault": true 313 }, 307 314 308 315 //"annotations": { … … 328 335 { 329 336 "loadedManifest": "https://intermuse.sowemustthink.space/greenstone3/sample-manifest.json", 330 "canvasIndex": 0,337 "canvasIndex": canvas_index, 331 338 "thumbnailNavigationPosition": 'far-bottom' 332 339 } … … 460 467 461 468 var assocfilepath = gs.documentMetadata['assocfilepath']; 469 470 var simple_doc_type = (gs.documentMetadata.docType == "simple"); 462 471 463 472 for (var i=0; i<iiif_doc_images.length; i++) { … … 471 480 var iiifimg_y_dim = iiif_doc_image.y_dim; 472 481 var iiifimg_label = iiif_doc_image.chosen_title; 482 483 var opt_section = (simple_doc_type) ? "" : section; 473 484 474 485 var iiif_canvas = { … … 485 496 { 486 497 //"@id": "https://iiif.harvardartmuseums.org/manifests/object/299843/list/47174896", 487 "@id": "https://intermuse.sowemustthink.space/greenstone3/library/sites/intermuse/collect/programmes/index/assoc/"+assocfilepath+"/openannotation-list .json",498 "@id": "https://intermuse.sowemustthink.space/greenstone3/library/sites/intermuse/collect/programmes/index/assoc/"+assocfilepath+"/openannotation-list"+opt_section+".json", 488 499 "@type": "sc:AnnotationList" 489 500 }
Note:
See TracChangeset
for help on using the changeset viewer.