Skip to content

Commit

Permalink
ark support see: #250
Browse files Browse the repository at this point in the history
  • Loading branch information
huberrob committed Feb 16, 2022
1 parent 99f1fd0 commit deb20d2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fuji_server/helper/identifier_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@ def __init__(self, idstring):
if len(self.identifier) > 4 and not self.identifier.isnumeric():
#workaround to resolve lsids:
#idutils.LANDING_URLS['lsid'] ='http://www.lsid.info/resolver/?lsid={pid}'
#workaround to recognize https purls
if 'https://purl.' in self.identifier:
#workaround to recognize https purls and arks
if 'https://purl.' in self.identifier or '/ark:' in self.identifier:
self.identifier = self.identifier.replace('https:', 'http:')
#workaround to identify arks properly:
self.identifier = self.identifier.replace('/ark:' , '/ark:/' )
self.identifier = self.identifier.replace('/ark://', '/ark:/')
generic_identifiers_org_pattern = '^([a-z0-9\._]+):(.+)'
# idutils check
self.identifier_schemes = idutils.detect_identifier_schemes(self.identifier)
Expand Down

0 comments on commit deb20d2

Please sign in to comment.