From: Jeff Davis Date: Wed, 15 May 2019 18:50:24 +0000 (-0700) Subject: LP#1790231: force exact-match search on non-facet subject links when display fields... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=89a971e737b30d9063baf9bace9d0b072d9126b0;p=working%2FEvergreen.git LP#1790231: force exact-match search on non-facet subject links when display fields are not in use too Signed-off-by: Jeff Davis --- diff --git a/Open-ILS/src/templates/opac/parts/record/subjects.tt2 b/Open-ILS/src/templates/opac/parts/record/subjects.tt2 index d188ec01ec..d4d51e9a7c 100644 --- a/Open-ILS/src/templates/opac/parts/record/subjects.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/subjects.tt2 @@ -63,12 +63,14 @@ IF s.facet; total_term = s.facet _ '[' _ all_terms.join(s.joiner).replace('\s+$', '') _ ']'; + search_link_params = {qtype=>'subject', query=>total_term}; ELSE; total_term = all_terms.join(" ").replace('\s+$', ''); + search_link_params = {qtype=>'subject', query=>total_term, contains=>'exact'}; END; %][% single_term %] [%- END;