Skip to content

Commit

Permalink
fix dspace exclude regression
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Jul 5, 2021
1 parent 6372a6f commit e2e59f1
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 e2e59f1

Please sign in to comment.