mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Merge pull request #2595 from TAMULib/develop
Add UI nameSpace context path to Mirador viewer path
This commit is contained in:
@@ -70,7 +70,8 @@ export class MiradorViewerComponent implements OnInit {
|
||||
const manifestApiEndpoint = encodeURIComponent(environment.rest.baseUrl + '/iiif/'
|
||||
+ this.object.id + '/manifest');
|
||||
// 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) {
|
||||
// Tell the viewer add search to menu.
|
||||
viewerPath += '&searchable=' + this.searchable;
|
||||
|
Reference in New Issue
Block a user