We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9190a3 commit 0928caaCopy full SHA for 0928caa
src/mods4pandas/lib.py
@@ -201,9 +201,10 @@ def fix_language_term(self) -> TagGroup:
201
202
def add_missing_type_text(self) -> TagGroup:
203
for e in self.group:
204
- if not e.attrib.get("type") == "text":
+ # Default to type=text
205
+ if not "type" in e.attrib:
206
e.attrib["type"] = "text"
- warnings.warn("Added type='text'")
207
+ warnings.warn("Added placeTerm type='text'")
208
return self
209
210
def remove_attributes(self, attribs) -> TagGroup:
0 commit comments