From 82b743d9dd404cd4d96912781cb2e543eee519af Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Tue, 12 Aug 2014 17:33:16 -0400 Subject: [PATCH] LP1309131 - Fix series link Clicking on a series link with a hyphen failed because the hyphen was stripped and the two words are joined together. This branch changes series.tts to replace special characters with a space, which is similar to the links we build for authors. Signed-off-by: Kathy Lussier Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/parts/record/series.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/record/series.tt2 b/Open-ILS/src/templates/opac/parts/record/series.tt2 index 951823215d..0ddc378680 100644 --- a/Open-ILS/src/templates/opac/parts/record/series.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/series.tt2 @@ -20,7 +20,7 @@ BLOCK render_series; NEXT UNLESS code.match('[a-z]'); # 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('[#"^$\+\-,\.:;&|\[\]()]', ' ')); total_term = all_terms.join(" ").replace('\s+$', ''); url = mkurl(ctx.opac_root _ '/results', -- 2.43.2