workaround for legacy url objects without authors.
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 28 Dec 2010 21:00:39 +0000 (21:00 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 28 Dec 2010 21:00:39 +0000 (21:00 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1138 6d9bc8c9-1ec2-4278-b937-99fde70a366f

conifer/templates/item/common_metadata.xhtml

index 819ffde..6c6c2b2 100644 (file)
@@ -4,7 +4,7 @@
       py:strip="True">
 <?python
 if bool(item.id):
-   authors = [a.strip() for a in item.author.split(';')]
+   authors = [a.strip() for a in (item.author or '').split(';')]
 else:
    authors = []
 if len(authors) < 2: