Lines 785-798
if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) {
Link Here
|
785 |
|
785 |
|
786 |
my $marcnotesarray = $biblio->get_marc_notes({ marcflavour => $marcflavour, opac => 1 }); |
786 |
my $marcnotesarray = $biblio->get_marc_notes({ marcflavour => $marcflavour, opac => 1 }); |
787 |
|
787 |
|
788 |
if( C4::Context->preference('ArticleRequests') ) { |
788 |
if ( C4::Context->preference('ArticleRequests') ) { |
789 |
my $patron = $borrowernumber ? Koha::Patrons->find($borrowernumber) : undef; |
|
|
790 |
my $itemtype = Koha::ItemTypes->find($biblio->itemtype); |
789 |
my $itemtype = Koha::ItemTypes->find($biblio->itemtype); |
791 |
my $artreqpossible = $patron |
790 |
my $artreqpossible = $patron |
792 |
? $biblio->can_article_request( $patron ) |
791 |
? $biblio->can_article_request( $patron ) |
793 |
: $itemtype |
792 |
: $itemtype |
794 |
? $itemtype->may_article_request |
793 |
? $itemtype->may_article_request |
795 |
: q{}; |
794 |
: q{}; |
|
|
795 |
|
796 |
$artreqpossible &&= $patron->can_request_article |
797 |
if $patron; |
798 |
|
796 |
$template->param( artreqpossible => $artreqpossible ); |
799 |
$template->param( artreqpossible => $artreqpossible ); |
797 |
} |
800 |
} |
798 |
|
801 |
|
799 |
- |
|
|