Skip to content

Commit

Permalink
issue #100: Introducing --fixAlma parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiraly committed Oct 5, 2021
1 parent ed59b26 commit c2720b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/de/gwdg/metadataqa/marc/MarcFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ public static MarcRecord createFromMarc4j(Record marc4jRecord,
var marcRecord = new MarcRecord();

if (marc4jRecord.getLeader() != null) {
marcRecord.setLeader(new Leader(marc4jRecord.getLeader().marshal(), defaultType));
String data = marc4jRecord.getLeader().marshal();
if (replecementInControlFields != null)
data = data.replace(replecementInControlFields, " ");
marcRecord.setLeader(new Leader(data, defaultType));

if (marcRecord.getType() == null) {
throw new InvalidParameterException(
Expand Down

0 comments on commit c2720b9

Please sign in to comment.