Merge pull request #2595 from TAMULib/develop

Add UI nameSpace context path to Mirador viewer path
This commit is contained in:
Tim Donohue
2023-11-09 11:45:02 -06:00
committed by GitHub

View File

@@ -70,7 +70,8 @@ export class MiradorViewerComponent implements OnInit {
const manifestApiEndpoint = encodeURIComponent(environment.rest.baseUrl + '/iiif/' const manifestApiEndpoint = encodeURIComponent(environment.rest.baseUrl + '/iiif/'
+ this.object.id + '/manifest'); + this.object.id + '/manifest');
// The Express path to Mirador viewer. // The Express path to Mirador viewer.
let viewerPath = '/iiif/mirador/index.html?manifest=' + manifestApiEndpoint; let viewerPath = `${environment.ui.nameSpace}${environment.ui.nameSpace.length > 1 ? '/' : ''}`
+ `iiif/mirador/index.html?manifest=${manifestApiEndpoint}`;
if (this.searchable) { if (this.searchable) {
// Tell the viewer add search to menu. // Tell the viewer add search to menu.
viewerPath += '&searchable=' + this.searchable; viewerPath += '&searchable=' + this.searchable;