Skip to content

Commit

Permalink
Added fix to other metadata in order to work with eudor eupos
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosjepard committed Jun 5, 2024
1 parent e30df28 commit 97cce1c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,11 @@ private ReturnWithExceptions<Void, ModelObserver> indexRepresentation(final AIP
// suppose that all suffixes in othermetadata are like this
// ".metadata.<real_suffix>
String fileId = otherMetadata.get().getFileId();
suffix = fileId.substring(fileId.lastIndexOf(".")) + suffix;
fileId = fileId.substring(0, fileId.lastIndexOf("."));

if (fileId.lastIndexOf(".") != -1) {
suffix = fileId.substring(fileId.lastIndexOf(".")) + suffix;
fileId = fileId.substring(0, fileId.lastIndexOf("."));
}
OtherMetadata om = model.retrieveOtherMetadata(aip.getId(), representation.getId(), path, fileId, suffix, type);

otherMetadataCreated(om);
Expand Down

0 comments on commit 97cce1c

Please sign in to comment.