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

(-)a/opac/opac-detail.pl (-3 / +5 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;
799
    my $itemtype = Koha::ItemTypes->find($biblio->itemtype);
798
    my $itemtype = Koha::ItemTypes->find($biblio->itemtype);
800
    my $artreqpossible = $patron
799
    my $artreqpossible = $patron
801
        ? $biblio->can_article_request( $patron )
800
        ? $biblio->can_article_request( $patron )
802
        : $itemtype
801
        : $itemtype
803
        ? $itemtype->may_article_request
802
        ? $itemtype->may_article_request
804
        : q{};
803
        : q{};
804
805
    $artreqpossible &&= $patron->can_request_article
806
        if $patron;
807
805
    $template->param( artreqpossible => $artreqpossible );
808
    $template->param( artreqpossible => $artreqpossible );
806
}
809
}
807
810
808
- 

Return to bug 29168