Skip to content

Commit

Permalink
Rename system to System
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Frederiks committed Oct 16, 2017
1 parent ef8dad2 commit bb9da62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moai/yoda.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit bb9da62

Please sign in to comment.