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()) {