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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc (-1 / +1 lines)
Lines 13-19 Link Here
13
    <li><a class="print-large" href="#">Print</a></li>
13
    <li><a class="print-large" href="#">Print</a></li>
14
14
15
    [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
15
    [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
16
        [% IF Koha.Preference('ArticleRequests') %]
16
        [% IF artreqpossible %]
17
            <li><a class="article_request" href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% biblio.biblionumber %]">Request article</a></li>
17
            <li><a class="article_request" href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% biblio.biblionumber %]">Request article</a></li>
18
        [% END %]
18
        [% END %]
19
    [% END %]
19
    [% END %]
(-)a/opac/opac-ISBDdetail.pl (+7 lines)
Lines 217-220 if (my $search_for_title = C4::Context->preference('OPACSearchForTitleIn')){ Link Here
217
    $template->param('OPACSearchForTitleIn' => $search_for_title);
217
    $template->param('OPACSearchForTitleIn' => $search_for_title);
218
}
218
}
219
219
220
if( C4::Context->preference('ArticleRequests') ) {
221
    my $artreqpossible = $patron
222
        ? $biblio->can_article_request( $patron )
223
        : $biblio->may_article_request;
224
    $template->param( artreqpossible => $artreqpossible );
225
}
226
220
output_html_with_http_headers $query, $cookie, $template->output;
227
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/opac/opac-MARCdetail.pl (+7 lines)
Lines 349-354 if (my $search_for_title = C4::Context->preference('OPACSearchForTitleIn')){ Link Here
349
    $template->param('OPACSearchForTitleIn' => $search_for_title);
349
    $template->param('OPACSearchForTitleIn' => $search_for_title);
350
}
350
}
351
351
352
if( C4::Context->preference('ArticleRequests') ) {
353
    my $artreqpossible = $patron
354
        ? $biblio->can_article_request( $patron )
355
        : $biblio->may_article_request;
356
    $template->param( artreqpossible => $artreqpossible );
357
}
358
352
$template->param(
359
$template->param(
353
    item_loop           => \@item_loop,
360
    item_loop           => \@item_loop,
354
    item_header_loop    => \@item_header_loop,
361
    item_header_loop    => \@item_header_loop,
(-)a/opac/opac-detail.pl (-1 / +8 lines)
Lines 756-761 if (!C4::Context->preference("OPACXSLTDetailsDisplay") ) { Link Here
756
my $marcnotesarray   = GetMarcNotes   ($record,$marcflavour);
756
my $marcnotesarray   = GetMarcNotes   ($record,$marcflavour);
757
my $subtitle         = GetRecordValue('subtitle', $record, GetFrameworkCode($biblionumber));
757
my $subtitle         = GetRecordValue('subtitle', $record, GetFrameworkCode($biblionumber));
758
758
759
if( C4::Context->preference('ArticleRequests') ) {
760
    my $patron = $borrowernumber ? Koha::Patrons->find($borrowernumber) : undef;
761
    my $artreqpossible = $patron
762
        ? $biblio->can_article_request( $patron )
763
        : $biblio->may_article_request;
764
    $template->param( artreqpossible => $artreqpossible );
765
}
766
759
    $template->param(
767
    $template->param(
760
                     MARCNOTES               => $marcnotesarray,
768
                     MARCNOTES               => $marcnotesarray,
761
                     norequests              => $norequests,
769
                     norequests              => $norequests,
762
- 

Return to bug 17530