Skip to content

Commit

Permalink
Merge pull request #108 from TAMULib/dpsace-iiif-generator-regression
Browse files Browse the repository at this point in the history
fix dspace exclude regression
  • Loading branch information
wwelling authored Jul 6, 2021
2 parents 6372a6f + e2e59f1 commit 816a036
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ protected CanvasWithInfo generateCanvas(ManifestRequest request, RdfResource rdf
RdfCanvas rdfCanvas = getDSpaceRdfCanvas(request, rdfResource, page);
Canvas canvas = new CanvasImpl(getDSpaceIiifCanvasUri(getHandlePath(parameterizedUri)), label, rdfCanvas.getHeight(), rdfCanvas.getWidth());
canvas.setImages(rdfCanvas.getImages());
if (rdfCanvas.getImagesInfo().isEmpty()) {
return CanvasWithInfo.of(canvas, Optional.empty());
}
return CanvasWithInfo.of(canvas, rdfCanvas.getImagesInfo().get(0));
}

Expand Down

0 comments on commit 816a036

Please sign in to comment.