1
0
Fork 0
mirror of https://github.com/qurator-spk/modstool.git synced 2025-06-09 11:49:55 +02:00
This commit is contained in:
Mike Gerber 2023-11-10 17:57:46 +01:00
commit 5238c0600b
2 changed files with 20 additions and 1 deletions

View file

@ -138,3 +138,16 @@ def test_relatedItem():
""")
assert d['relatedItem-original_recordInfo_recordIdentifier'] == 'PPN167755803'
# mods:relatedItem may also have source="dnb-ppn" recordIdentifiers:
d = dict_fromstring("""
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3">
<mods:relatedItem type="original">
<mods:recordInfo>
<mods:recordIdentifier source="dnb-ppn">1236513355</mods:recordIdentifier>
</mods:recordInfo>
</mods:relatedItem>
</mods:mods>
""")
assert d['relatedItem-original_recordInfo_recordIdentifier-dnb-ppn'] == '1236513355'