From bb9da62fea0045fd6acbcd5884bc1b62d74bb58a Mon Sep 17 00:00:00 2001 From: Paul Frederiks Date: Mon, 16 Oct 2017 12:28:59 +0200 Subject: [PATCH] Rename system to System --- moai/yoda.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moai/yoda.py b/moai/yoda.py index 0f7229e..eb42163 100644 --- a/moai/yoda.py +++ b/moai/yoda.py @@ -25,7 +25,7 @@ def update(self, path): self.root = doc.getroot() - id = xpath.string("/metadata/system/Persistent_Identifier_Datapackage[Identifier_Scheme='DOI']/Identifier") + id = xpath.string("/metadata/System/Persistent_Identifier_Datapackage[Identifier_Scheme='DOI']/Identifier") if not id: log.warning("Missing Persistent Identifier (DOI) of Datapackage in %s".format(path)) return @@ -81,7 +81,7 @@ def update(self, path): self.metadata['date'] = dates rightsinxml = [xpath.string('//License'), - xpath.string('//system/License_URL')] + xpath.string('//System/License_URL')] rights = [r for r in rightsinxml if r] if rights: