Fix Launchpad Bug 1183418.
authorJason Stephenson <jstephenson@mvlc.org>
Thu, 23 May 2013 15:44:05 +0000 (11:44 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 23 May 2013 19:12:29 +0000 (15:12 -0400)
Clicking on an author with a dash or dates in the name on the search
results page comes up with 0 results. It looks like the dash is stripped
from the date and/or name.

Clicking on such a link from the record view actually works because
the dash is replaced with a space.

This branch changes table.tt2 to replace special characters in author
output with a space in the same way that authors.tt2 does.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/parts/result/table.tt2

index f77327c..0c0b27c 100644 (file)
@@ -72,7 +72,7 @@ END;
                                                         <a title="[% l("Perform an Author Search") %]"
                                                                 class="record_author" name='item_author'
                                                                 href="[%- 
-                                                                    authorquery = attrs.author | replace('[#"^$\+\-,\.:;&|\[\]()]', '');
+                                                                    authorquery = attrs.author | replace('[#"^$\+\-,\.:;&|\[\]()]', ' ');
                                                                     mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery}, ['page'])
                                                                     -%]">[% attrs.author | html %]</a>
                                                                     [%- UNLESS CGI.param('detail_record_view')