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:
parent
1dc979af7c
commit
de4255e928
|
|
@ -2018,7 +2018,6 @@ sub searchResults {
|
|||
fix_amps => 1,
|
||||
hidden_items => \@hiddenitems,
|
||||
xslt_variables => $xslt_variables,
|
||||
interface => $search_context->{'interface'}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -261,7 +261,6 @@ if ( $showcomp eq 'both' || $showcomp eq 'staff' ) {
|
|||
record => $part,
|
||||
xsl_syspref => "XSLTResultsDisplay",
|
||||
fix_amps => 1,
|
||||
interface => 'intranet'
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -612,7 +612,6 @@ if ( $showcomp eq 'both' || $showcomp eq 'opac' ) {
|
|||
record => $part,
|
||||
xsl_syspref => 'OPACXSLTResultsDisplay',
|
||||
fix_amps => 1,
|
||||
interface => 'opac'
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -416,7 +416,6 @@ if ( $op eq 'view' ) {
|
|||
fix_amps => 1,
|
||||
xslt_variables => $variables,
|
||||
items_rs => $items->reset,
|
||||
interface => 'opac'
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -293,7 +293,6 @@ if ($loggedinuser) {
|
|||
fix_amps => 1,
|
||||
hidden_items => \@hidden_items,
|
||||
xslt_variables => $variables,
|
||||
interface => 'opac'
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -293,7 +293,6 @@ if ( $op eq 'view' ) {
|
|||
record => $record,
|
||||
xsl_syspref => 'XSLTListsDisplay',
|
||||
fix_amps => 1,
|
||||
interface => 'intranet'
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue