From de4255e9288db1af7def818247a98e5b7f109a66 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 7 Oct 2022 12:00:21 +0000 Subject: [PATCH] Bug 28375: (follow-up) Use C4::Context->interface Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- C4/Search.pm | 1 - C4/XSLT.pm | 2 +- catalogue/detail.pl | 1 - opac/opac-detail.pl | 1 - opac/opac-shelves.pl | 1 - opac/opac-tags.pl | 1 - virtualshelves/shelves.pl | 1 - 7 files changed, 1 insertion(+), 7 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 35b6fbfe52..72bbbcb6be 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -2018,7 +2018,6 @@ sub searchResults { fix_amps => 1, hidden_items => \@hiddenitems, xslt_variables => $xslt_variables, - interface => $search_context->{'interface'} } ); } diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 9e3d3f70e7..21d270e3df 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -178,7 +178,7 @@ sub XSLTParse4Display { my $hidden_items = $params->{hidden_items} || []; my $variables = $params->{xslt_variables}; my $items_rs = $params->{items_rs}; - my $interface = $params->{interface}; + my $interface = C4::Context->interface; die "Mandatory \$params->{xsl_syspref} was not provided, called with biblionumber $params->{biblionumber}" if not defined $params->{xsl_syspref}; diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 479e7f4895..9c93a2db58 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -261,7 +261,6 @@ if ( $showcomp eq 'both' || $showcomp eq 'staff' ) { record => $part, xsl_syspref => "XSLTResultsDisplay", fix_amps => 1, - interface => 'intranet' } ); } diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 0b427aa0a6..4dfa5ec728 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -612,7 +612,6 @@ if ( $showcomp eq 'both' || $showcomp eq 'opac' ) { record => $part, xsl_syspref => 'OPACXSLTResultsDisplay', fix_amps => 1, - interface => 'opac' } ); } diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl index b9f60f2d30..e228b3dfb0 100755 --- a/opac/opac-shelves.pl +++ b/opac/opac-shelves.pl @@ -416,7 +416,6 @@ if ( $op eq 'view' ) { fix_amps => 1, xslt_variables => $variables, items_rs => $items->reset, - interface => 'opac' } ); diff --git a/opac/opac-tags.pl b/opac/opac-tags.pl index c5adf41961..43f156d31b 100755 --- a/opac/opac-tags.pl +++ b/opac/opac-tags.pl @@ -293,7 +293,6 @@ if ($loggedinuser) { fix_amps => 1, hidden_items => \@hidden_items, xslt_variables => $variables, - interface => 'opac' } ); diff --git a/virtualshelves/shelves.pl b/virtualshelves/shelves.pl index 08b99a16be..fa92cfcd6e 100755 --- a/virtualshelves/shelves.pl +++ b/virtualshelves/shelves.pl @@ -293,7 +293,6 @@ if ( $op eq 'view' ) { record => $record, xsl_syspref => 'XSLTListsDisplay', fix_amps => 1, - interface => 'intranet' } ); -- 2.39.5