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 538-543 if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->pref Link Here
538
my $holds = $biblio->holds;
539
my $holds = $biblio->holds;
539
$template->param( holdcount => $holds->count );
540
$template->param( holdcount => $holds->count );
540
541
542
# Check if there are any ILL requests connected to the biblio
543
my $illrequests = Koha::Illrequests->search({ biblio_id => $biblionumber });
544
$template->param( illrequests => $illrequests );
545
541
my $StaffDetailItemSelection = C4::Context->preference('StaffDetailItemSelection');
546
my $StaffDetailItemSelection = C4::Context->preference('StaffDetailItemSelection');
542
if ($StaffDetailItemSelection) {
547
if ($StaffDetailItemSelection) {
543
    # Only enable item selection if user can execute at least one action
548
    # 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 128-133 Link Here
128
            </span>
128
            </span>
129
        [% END %]
129
        [% END %]
130
130
131
        [% IF ( illrequests ) %]
132
            <span class="results_summary">
133
                <span class="label">ILL requests:</span>
134
                [% IF CAN_user_ill %]
135
                    [% FOREACH ill IN illrequests %]
136
                        <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 %]
137
                    [% END %]
138
                [% ELSE %]
139
                    [% FOREACH ill IN illrequests %]
140
                        <span>Request [% ill.illrequest_id | html %]</span>[% IF ! loop.last %], [% END %]
141
                    [% END %]
142
                [% END %]
143
            </span>
144
        [% END %]
145
131
        [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
146
        [% IF ( article_requests_count = Biblio.ArticleRequestsActiveCount( biblionumber ) ) %]
132
            <span class="results_summary">
147
            <span class="results_summary">
133
                <span class="label">Article requests:</span>
148
                <span class="label">Article requests:</span>
134
- 

Return to bug 20799