X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/fc2ee5e934d0da3535b9be659bbf67ebe9437b47..1e0f8d82649a23f695333d5ef4588e8b60afbe99:/librarian/dcparser.py diff --git a/librarian/dcparser.py b/librarian/dcparser.py index 00b7cda..49a33d4 100644 --- a/librarian/dcparser.py +++ b/librarian/dcparser.py @@ -38,6 +38,9 @@ class Person(object): names = [ name for name in parts[1].split() if len(name) ] # all non-whitespace tokens return cls(surname, *names) + def readable(self): + return u" ".join(self.first_names + (self.last_name,)) + def __eq__(self, right): return self.last_name == right.last_name and self.first_names == right.first_names @@ -134,6 +137,7 @@ class BookInfo(object): Field( DCNS('relation.hasPart'), 'parts', multiple=True, required=False), Field( DCNS('rights.license'), 'license', required=False), Field( DCNS('rights'), 'license_description'), + Field( DCNS('description'), 'description', required=False), ) @property