From db47b6fbe9298dfcec59c8a978c7c2ab70577de2 Mon Sep 17 00:00:00 2001 From: Michael Glass Date: Thu, 19 Mar 2015 17:02:22 -0400 Subject: [PATCH] KMAIN-1510 Added regex to remove dashes from browse results display. Regex was used vs. refactor of code causing dash due to time constraints on modifing existing database functions modified: KCLS/openils/var/templates_kcls/opac/browse_results.tt2 Signed-off-by: Michael Glass --- KCLS/openils/var/templates_kcls/opac/browse_results.tt2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KCLS/openils/var/templates_kcls/opac/browse_results.tt2 b/KCLS/openils/var/templates_kcls/opac/browse_results.tt2 index 650d10abf1..3fbaaa8b36 100644 --- a/KCLS/openils/var/templates_kcls/opac/browse_results.tt2 +++ b/KCLS/openils/var/templates_kcls/opac/browse_results.tt2 @@ -167,14 +167,14 @@ }) %]" onclick = "new_tab( this )" > - [% result.value %] + [% result.value.replace(',\s--\s(\d+)', ', $1') %] [% ELSE %] - [% result.value %] + [% result.value.replace(',\s--\s(\d+)', ', $1') %] [% END %] -- 2.11.0