Lines 185-213
if ( $xslfile ) {
Link Here
|
185 |
anonymous_session => ($borrowernumber) ? 0 : 1 |
185 |
anonymous_session => ($borrowernumber) ? 0 : 1 |
186 |
}; |
186 |
}; |
187 |
|
187 |
|
188 |
if ( C4::Context->config("enable_plugins") ) { |
188 |
my @plugin_responses = Koha::Plugins->call( |
189 |
|
189 |
'opac_detail_xslt_variables', |
190 |
my @plugins = Koha::Plugins->new->GetPlugins({ |
190 |
{ |
191 |
method => 'opac_detail_xslt_variables', |
191 |
biblio_id => $biblionumber, |
192 |
}); |
192 |
lang => $lang, |
193 |
|
193 |
patron_id => $borrowernumber |
194 |
if (@plugins) { |
194 |
|
195 |
foreach my $plugin ( @plugins ) { |
|
|
196 |
try { |
197 |
my $plugin_variables = $plugin->opac_detail_xslt_variables( |
198 |
{ |
199 |
biblio_id => $biblionumber, |
200 |
lang => $lang, |
201 |
patron_id => $borrowernumber |
202 |
} |
203 |
); |
204 |
$variables = { %$variables, %$plugin_variables }; |
205 |
} |
206 |
catch { |
207 |
warn "$_"; |
208 |
}; |
209 |
} |
210 |
} |
195 |
} |
|
|
196 |
); |
197 |
for my $plugin_variables ( @responses ) { |
198 |
$variables = { %$variables, %$plugin_variables }; |
211 |
} |
199 |
} |
212 |
|
200 |
|
213 |
$template->param( |
201 |
$template->param( |