From 73b53217743c2fbe9ed3fcf139fb09142d2d8c69 Mon Sep 17 00:00:00 2001 From: Luke Sikina Date: Sun, 8 Oct 2023 09:34:09 -0400 Subject: [PATCH] wow, that worked. uh, so here's the site portion of this --- .../harvard/dbmi/avillach/service/PicsureQueryService.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pic-sure-api-war/src/main/java/edu/harvard/dbmi/avillach/service/PicsureQueryService.java b/pic-sure-api-war/src/main/java/edu/harvard/dbmi/avillach/service/PicsureQueryService.java index 0bc3323c..d913a520 100644 --- a/pic-sure-api-war/src/main/java/edu/harvard/dbmi/avillach/service/PicsureQueryService.java +++ b/pic-sure-api-war/src/main/java/edu/harvard/dbmi/avillach/service/PicsureQueryService.java @@ -12,6 +12,7 @@ import edu.harvard.dbmi.avillach.util.Utilities; import edu.harvard.dbmi.avillach.util.exception.ApplicationException; import edu.harvard.dbmi.avillach.util.exception.ProtocolException; +import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -319,6 +320,10 @@ private Query copyQuery(QueryRequest dataQueryRequest, Resource resource, QueryS metaData.put("commonAreaUUID", dataQueryRequest.getCommonAreaUUID()); } + if (!StringUtils.isEmpty(dataQueryRequest.getInstitutionOfOrigin())) { + metaData.put("site", dataQueryRequest.getCommonAreaUUID()); + } + queryEntity.setQuery(queryJson); if (!metaData.isEmpty()) {