Commit b7f21248 authored by Andreas Tille's avatar Andreas Tille

Strip web URL from DOI

parent 0b61246e
......@@ -239,7 +239,7 @@ class upstream_reader():
rdoi['rank'] = 0
rdoi['source'] = self.source
rdoi['key'] = 'doi'
rdoi['value'] = self.fields[key]
rdoi['value'] = re.sub('https?://.*doi.org/', '', self.fields[key])
rdoi['package'] = '' ### Hack!!! we should get rid of Reference-DOI soon to enable specifying 'debian-package' relieable
self.ubibrefs.append(rdoi)
elif keyl.endswith('pmid'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment