Skip to content

Commit

Permalink
Merge pull request #3217 from keeps/cafonso-dev-eudorFix
Browse files Browse the repository at this point in the history
Added fix to other metadata in order to work with eudor eupos
  • Loading branch information
hmiguim committed Jun 6, 2024
2 parents e30df28 + 97cce1c commit ad3bcad
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 ad3bcad

Please sign in to comment.