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:13:30 +0000 (15:13 -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 368a7f5..8525377 100644 (file)
@@ -59,7 +59,7 @@
                                                         <em><a title="[% l("Perform an Author Search") %]"
                                                                 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></em>
                                                                     [%- UNLESS CGI.param('detail_record_view')