View | Details | Raw Unified | Return to bug 29168
Collapse All | Expand All

(-)a/opac/opac-detail.pl (-3 / +6 lines)
Lines 794-807 if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) { Link Here
794
794
795
my $marcnotesarray = $biblio->get_marc_notes({ marcflavour => $marcflavour, opac => 1 });
795
my $marcnotesarray = $biblio->get_marc_notes({ marcflavour => $marcflavour, opac => 1 });
796
796
797
if( C4::Context->preference('ArticleRequests') ) {
797
if ( C4::Context->preference('ArticleRequests') ) {
798
    my $patron = $borrowernumber ? Koha::Patrons->find($borrowernumber) : undef;
798
799
    my $itemtype = Koha::ItemTypes->find($biblio->itemtype);
799
    my $itemtype = Koha::ItemTypes->find($biblio->itemtype);
800
    my $artreqpossible = $patron
800
    my $artreqpossible = $patron
801
        ? $biblio->can_article_request( $patron )
801
        ? $biblio->can_article_request( $patron )
802
        : $itemtype
802
        : $itemtype
803
        ? $itemtype->may_article_request
803
        ? $itemtype->may_article_request
804
        : q{};
804
        : q{};
805
806
    $artreqpossible &&= $patron->can_request_article
807
        if $patron;
808
805
    $template->param( artreqpossible => $artreqpossible );
809
    $template->param( artreqpossible => $artreqpossible );
806
}
810
}
807
811
808
- 

Return to bug 29168