diff --git a/web-services-app/src/main/java/edu/unc/lib/boxc/web/services/processing/ImageServerProxyService.java b/web-services-app/src/main/java/edu/unc/lib/boxc/web/services/processing/ImageServerProxyService.java index c9b48cd53d..0789c031a9 100644 --- a/web-services-app/src/main/java/edu/unc/lib/boxc/web/services/processing/ImageServerProxyService.java +++ b/web-services-app/src/main/java/edu/unc/lib/boxc/web/services/processing/ImageServerProxyService.java @@ -40,6 +40,7 @@ public class ImageServerProxyService { private static final Logger LOG = LoggerFactory.getLogger(ImageServerProxyService.class); private CloseableHttpClient httpClient; private String imageServerProxyBasePath; + private String baseIiifv3Path; public void setHttpClientConnectionManager(HttpClientConnectionManager manager) { @@ -78,7 +79,7 @@ public void getMetadata(String id, OutputStream outStream, ImageService3 respData = iiifReader.readValue(httpResp.getEntity().getContent()); var iiifWriter = new ObjectMapper().writerFor(ImageService3.class); - respData.setID(new URI(URIUtil.join(imageServerProxyBasePath, id))); + respData.setID(new URI(URIUtil.join(baseIiifv3Path, id, "info.json"))); HttpEntity updatedRespData = EntityBuilder.create() .setText(iiifWriter.writeValueAsString(respData)) @@ -148,4 +149,8 @@ public void setImageServerProxyBasePath(String fullPath) { public String getImageServerProxyBasePath() { return imageServerProxyBasePath; } + + public void setBaseIiifv3Path(String baseIiifv3Path) { + this.baseIiifv3Path = baseIiifv3Path; + } } diff --git a/web-services-app/src/main/webapp/WEB-INF/service-context.xml b/web-services-app/src/main/webapp/WEB-INF/service-context.xml index 2845253e24..3aaf6496de 100644 --- a/web-services-app/src/main/webapp/WEB-INF/service-context.xml +++ b/web-services-app/src/main/webapp/WEB-INF/service-context.xml @@ -447,6 +447,7 @@ +