-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rule to make id AND rvk mandatory
hbz-Ids will be concatenated into one field delimited by a space. - shrink unnecessary test data - update test See #1058.
- Loading branch information
Showing
3 changed files
with
67 additions
and
1,747 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<metamorph xmlns="http://www.culturegraph.org/metamorph" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
version="1"> | ||
<!-- Aleph MAB2 XML to RDF - a mapping of the hbz01 catalog to lobid-resources --> | ||
<!-- beware: the sequence of the rules are semantically important! Don't change the order. --> | ||
<!-- Aleph MAB differs from MAB in that: --> | ||
<!-- an indicator2 exists --> | ||
<!-- most fields have a subfield 'a' --> | ||
<!-- => structure of alehp MAB: $field$indicator1$indicator2$subfield --> | ||
<!-- Filters all rda catalogued entries --> | ||
<!-- Filter hbz ids from culturegraph XML. Build a hbzId-rvk concordance --> | ||
<!-- structure of marc xml: $field$indicator1$indicator2$subfield --> | ||
<rules> | ||
<!-- ####################### --> | ||
<!-- ####### Get subject uri of each rda record --> | ||
<!-- ####### Get rvk and hbz id --> | ||
<!-- ####################### --> | ||
<combine name="@rvk" value="${rvk}" > | ||
<data source="084??.a" name="rvk"/> | ||
</combine> | ||
<combine name="@hbzId" value="${id}"> | ||
<data source="035??.a" name="id"> | ||
<regexp match="^\(DE-605\)(.*)" format="${1}"/> | ||
</data> | ||
</combine> | ||
<combine name="rvk" value="${rvk}" > | ||
<data source="084??.a" name="rvk"/> | ||
<data source="@hbzId"/> | ||
<data source="@rvk" name="rvk"/> | ||
</combine> | ||
<combine name="hbzId" value="${hbzId}"> | ||
<concat delimiter=", " name="hbzId" > | ||
<data source="@hbzId"/> | ||
</concat> | ||
<data source="@rvk" /> | ||
</combine> | ||
<data source="@hbzId" name="id" /> | ||
</rules> | ||
</rules> | ||
</metamorph> |
Oops, something went wrong.