[open-ils-commits] [GIT] Evergreen ILS branch master updated. e0749b6b80ac59cac4abc523bb876810dee9afff
Evergreen Git
git at git.evergreen-ils.org
Wed Apr 10 13:54:48 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, master has been updated
via e0749b6b80ac59cac4abc523bb876810dee9afff (commit)
from 38411f209cb0b658f08d9040f2f04fdb3e1bc3b4 (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 e0749b6b80ac59cac4abc523bb876810dee9afff
Author: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Date: Wed Apr 10 13:23:28 2013 -0400
TPAC Turn dashes into space in subject search links for better matching
Thanks to Dan Wells for finding a bug and fixing it for demonstration
purposes.
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Signed-off-by: Dan Wells <dbw2 at calvin.edu>
diff --git a/Open-ILS/src/templates/opac/parts/record/subjects.tt2 b/Open-ILS/src/templates/opac/parts/record/subjects.tt2
index 9a1cf50..3914908 100644
--- a/Open-ILS/src/templates/opac/parts/record/subjects.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/subjects.tt2
@@ -44,7 +44,7 @@
IF code.match('[vxyz]'); " > "; END;
# at this point, we actually have a partial term to use.
single_term = subfield.textContent | html;
- all_terms.push(subfield.textContent.replace('[#"^$\+\-,\.:;&|\[\]()]', ''));
+ all_terms.push(subfield.textContent.replace('\-', ' ').replace('[#"^$\+,\.:;&|\[\]()]', ''));
total_term = all_terms.join(" ").replace('\s+$', '');
%]
<a href="[% mkurl(ctx.opac_root _ '/results', {qtype=>'subject', query=>total_term}, stop_parms); %]">[% single_term %]</a>
-----------------------------------------------------------------------
Summary of changes:
.../src/templates/opac/parts/record/subjects.tt2 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list