add url to loaded ids

pull/1/head
eric 2015-07-31 16:34:47 -04:00
parent 7932e047d7
commit c9ae756743
1 changed files with 4 additions and 1 deletions

View File

@ -794,7 +794,10 @@ def load_from_yaml(yaml_url):
metadata = Pandata(yaml_url)
#find an work to associate
work = edition = None
new_ids = []
if metadata.url:
new_ids = [('http','http', metadata.url)]
else:
new_ids = []
for (identifier, id_code) in IDTABLE:
value = metadata.identifiers.get(identifier,None)
if value: