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

(-)a/catalogue/detail.pl (+5 lines)
Lines 43-48 use C4::CourseReserves qw(GetItemCourseReservesInfo); Link Here
43
use C4::Acquisition qw(GetOrdersByBiblionumber);
43
use C4::Acquisition qw(GetOrdersByBiblionumber);
44
use Koha::AuthorisedValues;
44
use Koha::AuthorisedValues;
45
use Koha::Biblios;
45
use Koha::Biblios;
46
use Koha::Illrequests;
46
use Koha::Items;
47
use Koha::Items;
47
use Koha::ItemTypes;
48
use Koha::ItemTypes;
48
use Koha::Patrons;
49
use Koha::Patrons;
Lines 523-528 if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->pref Link Here
523
my $holds = $biblio->holds;
524
my $holds = $biblio->holds;
524
$template->param( holdcount => $holds->count );
525
$template->param( holdcount => $holds->count );
525
526
527
# Check if there are any ILL requests connected to the biblio
528
my $illrequests = Koha::Illrequests->search({ biblio_id => $biblionumber });
529
$template->param( illrequests => $illrequests );
530
526
my $StaffDetailItemSelection = C4::Context->preference('StaffDetailItemSelection');
531
my $StaffDetailItemSelection = C4::Context->preference('StaffDetailItemSelection');
527
if ($StaffDetailItemSelection) {
532
if ($StaffDetailItemSelection) {
528
    # Only enable item selection if user can execute at least one action
533
    # Only enable item selection if user can execute at least one action
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +15 lines)
Lines 126-131 Link Here
126
            </span>
126
            </span>
127
        [% END %]
127
        [% END %]
128
128
129
        [% IF ( illrequests ) %]
130
            <span class="results_summary">
131
                <span class="label">ILL requests:</span>
132
                [% IF CAN_user_ill %]
133
                    [% FOREACH ill IN illrequests %]
134
                        <a href="/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=[% ill.illrequest_id | uri %]">Request [% ill.illrequest_id | html %]</a>[% IF ! loop.last %], [% END %]
135
                    [% END %]
136
                [% ELSE %]
137
                    [% FOREACH ill IN illrequests %]
138
                        <span>Request [% ill.illrequest_id | html %]</span>[% IF ! loop.last %], [% END %]
139
                    [% END %]
140
                [% END %]
141
            </span>
142
        [% END %]
143
129
        [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
144
        [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
130
            <span class="results_summary">
145
            <span class="results_summary">
131
                <span class="label">Article requests:</span>
146
                <span class="label">Article requests:</span>
132
- 

Return to bug 20799