Lines 59-67
use Koha::ItemTypes;
Link Here
|
59 |
use Koha::Acquisition::Orders; |
59 |
use Koha::Acquisition::Orders; |
60 |
use Koha::Virtualshelves; |
60 |
use Koha::Virtualshelves; |
61 |
use Koha::Patrons; |
61 |
use Koha::Patrons; |
|
|
62 |
use Koha::Plugins; |
62 |
use Koha::Ratings; |
63 |
use Koha::Ratings; |
63 |
use Koha::Reviews; |
64 |
use Koha::Reviews; |
64 |
|
65 |
|
|
|
66 |
use Try::Tiny; |
67 |
|
65 |
my $query = CGI->new(); |
68 |
my $query = CGI->new(); |
66 |
|
69 |
|
67 |
my $biblionumber = $query->param('biblionumber') || $query->param('bib') || 0; |
70 |
my $biblionumber = $query->param('biblionumber') || $query->param('bib') || 0; |
Lines 175-180
if ( $xslfile ) {
Link Here
|
175 |
anonymous_session => ($borrowernumber) ? 0 : 1 |
178 |
anonymous_session => ($borrowernumber) ? 0 : 1 |
176 |
}; |
179 |
}; |
177 |
|
180 |
|
|
|
181 |
if ( C4::Context->config("enable_plugins") ) { |
182 |
|
183 |
my @plugins = Koha::Plugins->new->GetPlugins({ |
184 |
method => 'opac_detail_xslt_variables', |
185 |
}); |
186 |
|
187 |
if (@plugins) { |
188 |
foreach my $plugin ( @plugins ) { |
189 |
try { |
190 |
my $plugin_variables = $plugin->opac_detail_xslt_variables( |
191 |
{ |
192 |
biblio_id => $biblionumber, |
193 |
lang => $lang, |
194 |
patron_id => $borrowernumber |
195 |
} |
196 |
); |
197 |
$variables = { %$variables, %$plugin_variables }; |
198 |
} |
199 |
catch { |
200 |
warn "$_"; |
201 |
}; |
202 |
} |
203 |
} |
204 |
} |
205 |
|
178 |
$template->param( |
206 |
$template->param( |
179 |
XSLTBloc => XSLTParse4Display( |
207 |
XSLTBloc => XSLTParse4Display( |
180 |
$biblionumber, $record, "OPACXSLTDetailsDisplay", 1, undef, |
208 |
$biblionumber, $record, "OPACXSLTDetailsDisplay", 1, undef, |