From: Michael Glass Date: Thu, 19 Mar 2015 21:02:22 +0000 (-0400) Subject: KMAIN-1510 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=db47b6fbe9298dfcec59c8a978c7c2ab70577de2;p=working%2FEvergreen.git 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 --- 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 %]