fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
images width in html
[librarian.git]
/
librarian
/
dcparser.py
diff --git
a/librarian/dcparser.py
b/librarian/dcparser.py
index
f64317a
..
50811e7
100644
(file)
--- a/
librarian/dcparser.py
+++ b/
librarian/dcparser.py
@@
-152,7
+152,7
@@
class WorkInfo(object):
__metaclass__ = DCInfo
FIELDS = (
__metaclass__ = DCInfo
FIELDS = (
- Field( DCNS('creator'), 'authors', as_person, salias='author', multiple=True),
+ Field( DCNS('creator'), 'authors', as_person, salias='author', multiple=True
, required=False
),
Field( DCNS('title'), 'title'),
Field( DCNS('type'), 'type', required=False, multiple=True),
Field( DCNS('title'), 'title'),
Field( DCNS('type'), 'type', required=False, multiple=True),
@@
-248,7
+248,7
@@
class WorkInfo(object):
if not field.multiple:
raise "OUCH!! for field %s" % name
if not field.multiple:
raise "OUCH!! for field %s" % name
- return value[0]
+ return value[0]
if value else None
except (KeyError, AttributeError):
return object.__getattribute__(self, name)
except (KeyError, AttributeError):
return object.__getattribute__(self, name)