Skip to content

Commit

Permalink
write metadata only once
Browse files Browse the repository at this point in the history
  • Loading branch information
rsehr committed Dec 12, 2024
1 parent 639ca20 commit 0f79f37
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,6 @@ private boolean replaceUrlsOrAddUrn(DocStruct logical) throws JsonSyntaxExceptio
replaceSuccessful = false;
}
}

if (replaceSuccessful) {
step.getProzess().writeMetadataFile(ff);
}

return replaceSuccessful;
}

Expand All @@ -410,6 +405,7 @@ public PluginReturnValue run() {
urls.add(replacer.replace(publicationUrl));

setUrn(ds);
step.getProzess().writeMetadataFile(ff);

} catch (ReadException | JsonException | PreferencesException | WriteException | IOException | IllegalArgumentException | InterruptedException
| SwapException | DAOException | MetadataTypeNotAllowedException | SQLException | JsonSyntaxException | UrnDatabaseException e) {
Expand Down

0 comments on commit 0f79f37

Please sign in to comment.