Skip to content

Commit bb9da62

Browse files
author
Paul Frederiks
committed
Rename system to System
1 parent ef8dad2 commit bb9da62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

moai/yoda.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def update(self, path):
2525

2626
self.root = doc.getroot()
2727

28-
id = xpath.string("/metadata/system/Persistent_Identifier_Datapackage[Identifier_Scheme='DOI']/Identifier")
28+
id = xpath.string("/metadata/System/Persistent_Identifier_Datapackage[Identifier_Scheme='DOI']/Identifier")
2929
if not id:
3030
log.warning("Missing Persistent Identifier (DOI) of Datapackage in %s".format(path))
3131
return
@@ -81,7 +81,7 @@ def update(self, path):
8181
self.metadata['date'] = dates
8282

8383
rightsinxml = [xpath.string('//License'),
84-
xpath.string('//system/License_URL')]
84+
xpath.string('//System/License_URL')]
8585

8686
rights = [r for r in rightsinxml if r]
8787
if rights:

0 commit comments

Comments
 (0)