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

(-)a/opac/opac-ISBDdetail.pl (-1 / +4 lines)
Lines 226-234 if (my $search_for_title = C4::Context->preference('OPACSearchForTitleIn')){ Link Here
226
}
226
}
227
227
228
if( C4::Context->preference('ArticleRequests') ) {
228
if( C4::Context->preference('ArticleRequests') ) {
229
    my $itemtype = Koha::ItemTypes->find($biblio->itemtype);
229
    my $artreqpossible = $patron
230
    my $artreqpossible = $patron
230
        ? $biblio->can_article_request( $patron )
231
        ? $biblio->can_article_request( $patron )
231
        : Koha::ItemTypes->find($biblio->itemtype)->may_article_request;
232
        : $itemtype
233
        ? $itemtype->may_article_request
234
        : q{};
232
    $template->param( artreqpossible => $artreqpossible );
235
    $template->param( artreqpossible => $artreqpossible );
233
}
236
}
234
237
(-)a/opac/opac-MARCdetail.pl (-2 / +4 lines)
Lines 351-359 if (my $search_for_title = C4::Context->preference('OPACSearchForTitleIn')){ Link Here
351
}
351
}
352
352
353
if( C4::Context->preference('ArticleRequests') ) {
353
if( C4::Context->preference('ArticleRequests') ) {
354
    my $itemtype = Koha::ItemTypes->find($biblio->itemtype);
354
    my $artreqpossible = $patron
355
    my $artreqpossible = $patron
355
        ? $biblio->can_article_request( $patron )
356
        ? $biblio->can_article_request( $patron )
356
        : Koha::ItemTypes->find($biblio->itemtype)->may_article_request;
357
        : $itemtype
358
        ? $itemtype->may_article_request
359
        : q{};
357
    $template->param( artreqpossible => $artreqpossible );
360
    $template->param( artreqpossible => $artreqpossible );
358
}
361
}
359
362
360
- 

Return to bug 22735