Bug 28375: (follow-up) Use C4::Context->interface

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2022-10-07 12:00:21 +00:00 committed by Tomas Cohen Arazi
parent 1dc979af7c
commit de4255e928
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
7 changed files with 1 additions and 7 deletions

View File

@ -2018,7 +2018,6 @@ sub searchResults {
fix_amps => 1,
hidden_items => \@hiddenitems,
xslt_variables => $xslt_variables,
interface => $search_context->{'interface'}
}
);
}

View File

@ -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};

View File

@ -261,7 +261,6 @@ if ( $showcomp eq 'both' || $showcomp eq 'staff' ) {
record => $part,
xsl_syspref => "XSLTResultsDisplay",
fix_amps => 1,
interface => 'intranet'
}
);
}

View File

@ -612,7 +612,6 @@ if ( $showcomp eq 'both' || $showcomp eq 'opac' ) {
record => $part,
xsl_syspref => 'OPACXSLTResultsDisplay',
fix_amps => 1,
interface => 'opac'
}
);
}

View File

@ -416,7 +416,6 @@ if ( $op eq 'view' ) {
fix_amps => 1,
xslt_variables => $variables,
items_rs => $items->reset,
interface => 'opac'
}
);

View File

@ -293,7 +293,6 @@ if ($loggedinuser) {
fix_amps => 1,
hidden_items => \@hidden_items,
xslt_variables => $variables,
interface => 'opac'
}
);

View File

@ -293,7 +293,6 @@ if ( $op eq 'view' ) {
record => $record,
xsl_syspref => 'XSLTListsDisplay',
fix_amps => 1,
interface => 'intranet'
}
);