Skip to content

Commit e27c444

Browse files
committed
Update sample yaz record conversion.
Only look up bf:Topics if the source is "lcsh".
1 parent da9f061 commit e27c444

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

metaproxy/filters-available/marc2bibframe2.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
3232
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
3333
<lookup xpath="//bf:Work/bf:subject/bf:Temporal[contains(@rdf:about,'example.org')] |
34-
//bf:Work/bf:subject/bf:Topic[contains(@rdf:about,'example.org')] |
34+
//bf:Work/bf:subject/bf:Topic[contains(@rdf:about,'example.org') and bf:source/bf:Source/bf:code='lcsh'] |
3535
//bf:Work/bf:subject/bf:Place[contains(@rdf:about,'example.org')] |
3636
//bf:Work/bf:genreForm/bf:GenreForm[contains(@rdf:about,'example.org')]">
3737
<key field="rdfs:label"/>

record-conv.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<namespace prefix="rdf" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
2020
<namespace prefix="rdfs" href="http://www.w3.org/2000/01/rdf-schema#"/>
2121
<lookup xpath="//bf:Work/bf:subject/bf:Temporal[contains(@rdf:about,'example.org')] |
22-
//bf:Work/bf:subject/bf:Topic[contains(@rdf:about,'example.org')] |
22+
//bf:Work/bf:subject/bf:Topic[contains(@rdf:about,'example.org') and bf:source/bf:Source/bf:code='lcsh'] |
2323
//bf:Work/bf:subject/bf:Place[contains(@rdf:about,'example.org')] |
2424
//bf:Work/bf:genreForm/bf:GenreForm[contains(@rdf:about,'example.org')]">
2525
<key field="rdfs:label"/>

0 commit comments

Comments
 (0)