Skip to content

Commit

Permalink
wow, that worked. uh, so here's the site portion of this
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina committed Oct 8, 2023
1 parent 47689d1 commit 73b5321
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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()) {
Expand Down

0 comments on commit 73b5321

Please sign in to comment.