From f4c7efc1b32a4a5ffd47cf5e07a1328bb4248883 Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Thu, 29 Sep 2016 13:50:40 -0400 Subject: [PATCH] LP#1623955: Keep periods in subject links The subject links in the record summary were stripping periods, changing headings that contained N.Y., for example, to NY in the subsequent search string. Since normalization at index time replaces the period with a space, clicking the subject links did not successfully retrieve all relevant results. Test plan: Click the Subject link for a record that has New York (N.Y.) in its heading and has no other instances of ny in the keyword index. This record will not be retrieved when you click the link. After loading the patch, the record will be successfully retrieved, along with other records that contain New York (N.Y.) in their subject headings. Signed-off-by: Kathy Lussier Signed-off-by: Dan Wells --- Open-ILS/src/templates/opac/parts/record/subjects.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/record/subjects.tt2 b/Open-ILS/src/templates/opac/parts/record/subjects.tt2 index 6b99b13f9d..b0702a427d 100644 --- a/Open-ILS/src/templates/opac/parts/record/subjects.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/subjects.tt2 @@ -55,7 +55,7 @@ single_term = raw_term | html; # facets should be used as-is - IF !s.facet; raw_term = raw_term.replace('\-', ' ').replace('[#"^$\+,\.:;&|\[\]()]', ''); END; + IF !s.facet; raw_term = raw_term.replace('\-', ' ').replace('[#"^$\+,:;&|\[\]()]', ''); END; all_terms.push(raw_term); -- 2.11.0