LP#1669522: Remove regex that caused duplication in author query
authorKathy Lussier <klussier@masslnc.org>
Thu, 2 Mar 2017 21:55:15 +0000 (16:55 -0500)
committerBen Shum <ben@evergreener.net>
Sat, 4 Mar 2017 23:20:57 +0000 (18:20 -0500)
In LP#1308090, a regex replacement was added to the normzalize_qterm block
that didn't work as intended. Instead of replacing the already-normalized qterm,
it added a new string to the qterm, causing the author and date terms to
duplicate in the resulting query when the link is clicked. Since the the
problem the regex was trying to solve appears to be an aesthetic one rather
than a functional one, this commit removes that regex.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Ben Shum <ben@evergreener.net>
Open-ILS/src/templates/opac/parts/record/authors.tt2

index 2208cf0..3f0dd2f 100644 (file)
@@ -25,7 +25,6 @@ authors = [
 
 BLOCK normalize_qterm;
     subfield.textContent.replace('[#"^$\+\-,\.:;&|\[\]()]', ' ');
-    subfield.textContent.replace('\s{2,}', ' ');
 END;
 
 BLOCK normalize_authors;