[open-ils-commits] r1138 - servres/trunk/conifer/templates/item (gfawcett)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Dec 28 16:00:44 EST 2010


Author: gfawcett
Date: 2010-12-28 16:00:39 -0500 (Tue, 28 Dec 2010)
New Revision: 1138

Modified:
   servres/trunk/conifer/templates/item/common_metadata.xhtml
Log:
workaround for legacy url objects without authors.

Modified: servres/trunk/conifer/templates/item/common_metadata.xhtml
===================================================================
--- servres/trunk/conifer/templates/item/common_metadata.xhtml	2010-12-28 20:58:37 UTC (rev 1137)
+++ servres/trunk/conifer/templates/item/common_metadata.xhtml	2010-12-28 21:00:39 UTC (rev 1138)
@@ -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:



More information about the open-ils-commits mailing list