Last active
July 25, 2016 13:00
-
-
Save dmj/04c03a59bc42a8692877944402426045 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default outfile = "stdout"; | |
infile| | |
open-file| | |
as-records| | |
decode-pica| | |
morph(FLUX_DIR + "schlagworte.morph")| | |
encode-literals| | |
write(outfile); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<metamorph xmlns="http://www.culturegraph.org/metamorph" entityMarker="$" version="1"> | |
<macros/> | |
<rules> | |
<data name="@ppn" source="_id"/> | |
<data name="@schlagwort" source="044K"/> | |
<data name="@erschjahr" source="011@$a"/> | |
<data name="@zugangsnr" source="209C/*$a"/> | |
<combine name="@selektor" value="${selektor}"> | |
<any name="selektor"> | |
<data source="@zugangsnr"> | |
<regexp match="^(6[56])/"/> | |
</data> | |
<all> | |
<data source="@zugangsnr"> | |
<regexp match="^F/"/> | |
</data> | |
<data source="@erschjahr"> | |
<regexp match="^201[0-9]"/> | |
</data> | |
</all> | |
</any> | |
</combine> | |
<combine value="${ppn} ${zugangsnr} ${erschjahr}" name=""> | |
<if> | |
<all> | |
<data source="@selektor"/> | |
<none> | |
<data source="@schlagwort"/> | |
</none> | |
</all> | |
</if> | |
<data source="@ppn" name="ppn"/> | |
<data source="@zugangsnr" name="zugangsnr"/> | |
<data source="@erschjahr" name="erschjahr"/> | |
</combine> | |
</rules> | |
</metamorph> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment