From: Kathy Lussier Date: Thu, 2 Mar 2017 21:55:15 +0000 (-0500) Subject: LP#1669522: Remove regex that caused duplication in author query X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=797161f4511da49a3104c7d4ebafc9b5ae1a11df;p=contrib%2FConifer.git LP#1669522: Remove regex that caused duplication in author query 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 Signed-off-by: Chris Sharp Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/templates/opac/parts/record/authors.tt2 b/Open-ILS/src/templates/opac/parts/record/authors.tt2 index 2208cf0687..3f0dd2fdb9 100644 --- a/Open-ILS/src/templates/opac/parts/record/authors.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/authors.tt2 @@ -25,7 +25,6 @@ authors = [ BLOCK normalize_qterm; subfield.textContent.replace('[#"^$\+\-,\.:;&|\[\]()]', ' '); - subfield.textContent.replace('\s{2,}', ' '); END; BLOCK normalize_authors;