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

(-)a/opac/opac-detail.pl (-2 / +4 lines)
Lines 758-766 my $subtitle = GetRecordValue('subtitle', $record, GetFrameworkCode($bib Link Here
758
758
759
if( C4::Context->preference('ArticleRequests') ) {
759
if( C4::Context->preference('ArticleRequests') ) {
760
    my $patron = $borrowernumber ? Koha::Patrons->find($borrowernumber) : undef;
760
    my $patron = $borrowernumber ? Koha::Patrons->find($borrowernumber) : undef;
761
    my $itemtype = Koha::ItemTypes->find($biblio->itemtype);
761
    my $artreqpossible = $patron
762
    my $artreqpossible = $patron
762
        ? $biblio->can_article_request( $patron )
763
        ? $biblio->can_article_request( $patron )
763
        : Koha::ItemTypes->find($biblio->itemtype)->may_article_request;
764
        : $itemtype
765
        ? $itemtype->may_article_request
766
        : q{};
764
    $template->param( artreqpossible => $artreqpossible );
767
    $template->param( artreqpossible => $artreqpossible );
765
}
768
}
766
769
767
- 

Return to bug 21475