Skip to content

Commit 77e15f3

Browse files
committed
Adjust fix transformation to match the morph result #589
1 parent 44d5471 commit 77e15f3

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

metafacture-runner/src/main/dist/examples/transform/pica-to-marcxml/pica-to-marcxml.fix

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
# maps PICA+ to marc21Xml -->
22
# setting the encoding scheme is mandatory. This sets it to utf8. -->
33
add_field("leader.characterCodingScheme","a")
4+
45
# directly invoke "data" creats "controlfields" -->
6+
copy_field("[email protected]","001")
57

6-
if exists("[email protected]")
7-
copy_field("[email protected]","001")
8-
else
9-
add_field("001","no_id")
10-
end
118
# entities triggers creation of "datafields" following the pattern: -->
129
# 'entity.name="$fieldname$ind1$ind2"' => '<datafield tag="$fieldname" ind1="$ind1" ind2="$ind2">' -->
1310
# and 'source.name="$subfield" => <subfield code="$subfield"/> -->

metafacture-runner/src/main/dist/examples/transform/pica-to-marcxml/pica-to-marcxml.fix.flux

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ as-lines|
99
lines-to-records|
1010
decode-pica(normalizedSerialization="false", ignoreMissingIdn="true")|
1111
fix(FLUX_DIR + "pica-to-marcxml.fix")|
12-
encode-marcxml(ensurecorrectmarc21xml="true")|
12+
encode-marc21|
13+
decode-marc21(emitLeaderAsWhole="true", ignoreMissingId="true")|
14+
encode-marcxml|
1315
write("stdout");

0 commit comments

Comments
 (0)