Bug 34300: (QA follow-up) Add permission check and fix missing table cells

* Changes text from "Place a hold on order" to the more common "Place hold"
* Adds permission check on reserveforothers.
* We were missing table cells in the footer rows of the table.

I would have liked to hide the column for someone missing permissions,
but I failed to get the datatable configuration right with the export
and column configuration settings.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Katrin Fischer 2023-10-09 21:29:13 +00:00 committed by Tomas Cohen Arazi
parent 01602b59d5
commit 5db28348ea
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -482,7 +482,7 @@
[% IF Koha.Preference('EDIFACT') && ediaccount %] [% IF Koha.Preference('EDIFACT') && ediaccount %]
<th>Supplier report</th> <th>Supplier report</th>
[% END %] [% END %]
<th>Place hold</th> <th class="NoSort">Place hold</th>
[% IF ( active ) %] [% IF ( active ) %]
[% UNLESS ( closedate ) %] [% UNLESS ( closedate ) %]
<th class="NoSort">Modify</th> <th class="NoSort">Modify</th>
@ -516,6 +516,7 @@
[% IF Koha.Preference('EDIFACT') && ediaccount %] [% IF Koha.Preference('EDIFACT') && ediaccount %]
<th>&nbsp;</th> <th>&nbsp;</th>
[% END %] [% END %]
<th>&nbsp;</th>
[% IF ( active ) %] [% IF ( active ) %]
[% UNLESS ( closedate ) %] [% UNLESS ( closedate ) %]
<th>&nbsp;</th> <th>&nbsp;</th>
@ -547,6 +548,7 @@
[% IF Koha.Preference('EDIFACT') && ediaccount %] [% IF Koha.Preference('EDIFACT') && ediaccount %]
<th>&nbsp;</th> <th>&nbsp;</th>
[% END %] [% END %]
<th>&nbsp;</th>
[% IF ( active ) %] [% IF ( active ) %]
[% UNLESS ( closedate ) %] [% UNLESS ( closedate ) %]
<th>&nbsp;</th> <th>&nbsp;</th>
@ -678,9 +680,11 @@
<td>[% books_loo.suppliers_report | html %]</td> <td>[% books_loo.suppliers_report | html %]</td>
[% END %] [% END %]
<td> <td>
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% books_loo.biblionumber | uri %]"> [% IF ( CAN_user_reserveforothers_place_holds ) %]
Place a hold on the order <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% books_loo.biblionumber | uri %]">
</a> Place hold
</a>
[% END %]
</td> </td>
[% IF ( active ) %] [% IF ( active ) %]
[% UNLESS ( closedate ) %] [% UNLESS ( closedate ) %]