Skip to content

Commit

Permalink
Use service.getManagementClient().getDatastream instead of relying on…
Browse files Browse the repository at this point in the history
… possibly out-of-date FOXML.
  • Loading branch information
daines committed Jul 31, 2015
1 parent dc8e447 commit 4012aab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ public Element call() throws EnhancementException {
FOXMLJDOMUtil.getRelsExt(foxml));
{
String dsname = ContentModelHelper.Datastream.THUMB_SMALL.getName();
boolean exists = FOXMLJDOMUtil.getDatastream(foxml, dsname) != null;
boolean exists = service.getManagementClient().getDatastream(pid, dsname) != null;
createStoreThumb(dsIrodsPath, 64, 64, dsname, exists, thumbRels);
}

{
String dsname = ContentModelHelper.Datastream.THUMB_LARGE.getName();
boolean exists = FOXMLJDOMUtil.getDatastream(foxml, dsname) != null;
boolean exists = service.getManagementClient().getDatastream(pid, dsname) != null;
createStoreThumb(dsIrodsPath, 128, 128, dsname, exists, thumbRels);
}
}
Expand Down

0 comments on commit 4012aab

Please sign in to comment.