From 797161f4511da49a3104c7d4ebafc9b5ae1a11df Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Thu, 2 Mar 2017 16:55:15 -0500 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/parts/record/authors.tt2 | 1 - 1 file changed, 1 deletion(-) 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; -- 2.43.2