[open-ils-commits] [GIT] Evergreen ILS branch rel_2_4 updated. 5cb40c890f15b2d151fdbac79a1ee9d5fcd491b0

Evergreen Git git at git.evergreen-ils.org
Thu May 23 15:13:56 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_4 has been updated
       via  5cb40c890f15b2d151fdbac79a1ee9d5fcd491b0 (commit)
      from  381ea83edf349f577445d39ad3090ee501a6f9a6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5cb40c890f15b2d151fdbac79a1ee9d5fcd491b0
Author: Jason Stephenson <jstephenson at mvlc.org>
Date:   Thu May 23 11:44:05 2013 -0400

    Fix Launchpad Bug 1183418.
    
    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 at mvlc.org>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2
index f77327c..0c0b27c 100644
--- a/Open-ILS/src/templates/opac/parts/result/table.tt2
+++ b/Open-ILS/src/templates/opac/parts/result/table.tt2
@@ -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')

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/templates/opac/parts/result/table.tt2 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list