This commit is contained in:
j 2014-05-23 14:52:36 +02:00
parent d787cec8e2
commit 6169c36b62

View file

@ -60,7 +60,8 @@ def lookup(id):
publisher = [e.text for e in origin[0].findall(ns + 'publisher')] publisher = [e.text for e in origin[0].findall(ns + 'publisher')]
if publisher: if publisher:
info['publisher'] = publisher[0] info['publisher'] = publisher[0]
info['date'] = ''.join([e.text for e in origin[0].findall(ns + 'dateIssued')]) info['date'] = ''.join([e.text
for e in origin[0].findall(ns + 'dateIssued') if e.attrib.get('encoding') == 'marc'])
for i in mods.findall(ns + 'identifier'): for i in mods.findall(ns + 'identifier'):
key = i.attrib['type'] key = i.attrib['type']
value = i.text value = i.text