Skip to content

Commit

Permalink
BXC-4712 set up test corpus datastreams correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
sharonluong committed Sep 25, 2024
1 parent 60e2e07 commit 4477e24
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public List<SolrInputDocument> populate() {
newDoc.addField("ancestorPath", makeAncestorPath(pid1));
newDoc.addField("resourceType", "Collection");
List<String> collectionDatastream = List.of(
DatastreamType.JP2_ACCESS_COPY.getId() + "|image/jp2|bunny.jp2|jp2|||1200x1200");
DatastreamType.JP2_ACCESS_COPY.getId() + "|image/jp2|bunny.jp2|jp2|||" + pid2.getId() + "|1200x1200");
newDoc.addField(SearchFieldKey.DATASTREAM.getSolrField(), collectionDatastream);
docs.add(newDoc);

Expand Down Expand Up @@ -118,8 +118,8 @@ public List<SolrInputDocument> populate() {
newDoc.addField("ancestorPath", makeAncestorPath(pid1, pid2, pid6));
newDoc.addField("resourceType", ResourceType.File.name());
List<String> imgDatastreams = Arrays.asList(
ORIGINAL_FILE.getId() + "|image/png|file.png|png|766|urn:sha1:checksum|1200x1200",
DatastreamType.JP2_ACCESS_COPY.getId() + "|image/jp2|bunny.jp2|jp2|||1200x1200");
ORIGINAL_FILE.getId() + "|image/png|file.png|png|766|urn:sha1:checksum||1200x1200",
DatastreamType.JP2_ACCESS_COPY.getId() + "|image/jp2|bunny.jp2|jp2|||" + pid6File.getId() + "|1200x1200");
newDoc.addField(SearchFieldKey.DATASTREAM.getSolrField(), imgDatastreams);
newDoc.addField(SearchFieldKey.FILE_FORMAT_CATEGORY.getSolrField(), ContentCategory.image.getDisplayName());
newDoc.addField(SearchFieldKey.FILE_FORMAT_TYPE.getSolrField(), "png");
Expand Down

0 comments on commit 4477e24

Please sign in to comment.