From c37369a425b554db90bb08ea8a49e85bef946bb5 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Sat, 29 Jul 2017 11:51:57 -0400 Subject: [PATCH] Bug 14385: Search was returning URLS for wrong interface There was one search context place wrong. Changed it to $is_opac as the logic for setting $is_opac was modified correctly. Signed-off-by: Mark Tompsett --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 3be767a..99b63d4 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1900,7 +1900,7 @@ sub searchResults { my ($bibliotag,$bibliosubf)=GetMarcFromKohaField('biblio.biblionumber',''); # set stuff for XSLT processing here once, not later again for every record we retrieved - my $interface = $search_context eq 'opac' ? 'OPAC' : ''; + my $interface = $is_opac ? 'OPAC' : ''; my $xslsyspref = $interface . "XSLTResultsDisplay"; my $xslfile = C4::Context->preference($xslsyspref); my $lang = $xslfile ? C4::Languages::getlanguage() : undef; -- 2.1.4