mirror of
https://github.com/qurator-spk/modstool.git
synced 2025-08-05 07:39:54 +02:00
🧹 Fix recordIdentifier attribute 'type' 'zdb' to the correct 'source'
This commit is contained in:
parent
b12973adb1
commit
814bc57401
1 changed files with 8 additions and 0 deletions
|
@ -269,6 +269,14 @@ class TagGroup:
|
||||||
counts = {f"{xpath_expr}-count": len(values)}
|
counts = {f"{xpath_expr}-count": len(values)}
|
||||||
return counts
|
return counts
|
||||||
|
|
||||||
|
def fix_recordIdentifier_source_zdb(self) -> TagGroup:
|
||||||
|
for e in self.group:
|
||||||
|
if e.get("type") == "zdb":
|
||||||
|
e.attrib["source"] = "zdb"
|
||||||
|
del e.attrib["type"]
|
||||||
|
warnings.warn("Fixed recordIdentifier type 'zdb' to source")
|
||||||
|
return self
|
||||||
|
|
||||||
|
|
||||||
def sorted_groupby(iterable, key=None):
|
def sorted_groupby(iterable, key=None):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue