From f5c489bf6569070d92e18a0f83a3d760494f1540 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 30 Apr 2018 14:43:02 -0400 Subject: [PATCH] LP#1752434: (follow-up) fix un/highlighting of author name This patch fixes a regression introduced by the previous patch that caused portions of an author/contributor name that matched a search to always be highlighted, regardless of whether or not the user had turned off highlighting. Signed-off-by: Galen Charlton --- Open-ILS/src/templates/opac/parts/record/authors.tt2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/authors.tt2 b/Open-ILS/src/templates/opac/parts/record/authors.tt2 index 4140e78ecb..759a929e95 100644 --- a/Open-ILS/src/templates/opac/parts/record/authors.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/authors.tt2 @@ -28,7 +28,7 @@ BLOCK find_hl_value; norm_needle = PROCESS normalize_string(unnorm_string=needle); FOREACH hl IN attrs.display_field_list; norm_value = PROCESS normalize_string(unnorm_string=hl.value); - outlist.push(hl.highlight) IF norm_value == norm_needle; + outlist.push(hl.$f) IF norm_value == norm_needle; END; outlist.0; @@ -138,7 +138,7 @@ BLOCK build_author_links; link_term = link_term.replace('^\s+', ''); match_term = link_term _ ' ' _ birthdate _ ' ' _ deathdate; - matching_author_hl = PROCESS find_hl_value needle=match_term; + matching_author_hl = PROCESS find_hl_value needle=match_term f=attrs.hl_field; authtml = ' '; IF iprop; authtml = authtml _ ''; END; -- 2.11.0