@@ -, +, @@ detail view request from the detail page --- opac/opac-detail.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- a/opac/opac-detail.pl +++ a/opac/opac-detail.pl @@ -794,14 +794,18 @@ if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) { my $marcnotesarray = $biblio->get_marc_notes({ marcflavour => $marcflavour, opac => 1 }); -if( C4::Context->preference('ArticleRequests') ) { - my $patron = $borrowernumber ? Koha::Patrons->find($borrowernumber) : undef; +if ( C4::Context->preference('ArticleRequests') ) { + my $itemtype = Koha::ItemTypes->find($biblio->itemtype); my $artreqpossible = $patron ? $biblio->can_article_request( $patron ) : $itemtype ? $itemtype->may_article_request : q{}; + + $artreqpossible &&= $patron->can_request_article + if $patron; + $template->param( artreqpossible => $artreqpossible ); } --