strip the special collection name

This commit is contained in:
Charles Haley 2010-12-22 23:00:03 +00:00
parent f72286d44a
commit ff2b08f21e

View File

@ -139,9 +139,9 @@ class CollectionsBookList(BookList):
ca = [] ca = []
for c in collection_attributes: for c in collection_attributes:
if c.startswith('aba:') and c[4:]: if c.startswith('aba:') and c[4:]:
all_by_author = c[4:] all_by_author = c[4:].strip()
elif c.startswith('abt:') and c[4:]: elif c.startswith('abt:') and c[4:]:
all_by_title = c[4:] all_by_title = c[4:].strip()
else: else:
ca.append(c.lower()) ca.append(c.lower())
collection_attributes = ca collection_attributes = ca