misting get_tokens call.
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Mon, 2 Jul 2012 10:59:53 +0000 (12:59 +0200)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Mon, 2 Jul 2012 10:59:53 +0000 (12:59 +0200)
apps/opds/views.py

index f793d7d..2a1b2f8 100644 (file)
@@ -390,7 +390,7 @@ class SearchFeed(AcquisitionFeed):
 
             if author:
                 log.info( "narrow to author %s" % author)
 
             if author:
                 log.info( "narrow to author %s" % author)
-                hint.tags(srch.search_tags(author, filt=srch.term_filter(Term('tag_category', 'author'))))
+                hint.tags(srch.search_tags(srch.get_tokens(author, field='authors'), filt=srch.term_filter(Term('tag_category', 'author'))))
 
             if translator:
                 log.info( "filter by translator %s" % translator)
 
             if translator:
                 log.info( "filter by translator %s" % translator)