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 <mglass@catalystitservices.com>
}) %]"
onclick = "new_tab( this )"
>
- [% result.value %]
+ [% result.value.replace(',\s--\s(\d+)', ', $1') %]
</a>
[% ELSE %]
<a href="[% mkurl(
ctx.opac_root _ '/browse_items', {
'fi:has_browse_entry' => (CGI.param('qtype') _ ',' _ result.browse_entry _ ',' _ result.fields)
}) %]">
- [% result.value %]
+ [% result.value.replace(',\s--\s(\d+)', ', $1') %]
</a>
[% END %]