Bug 41954: Display historic group hold ID in patron holds history table
Test plan:
1) Enable DisplayAddHoldGroups sys prefs
2) Go to 'Henry' and click 'Search to hold':
<staff_url>/cgi-bin/koha/members/moremember.pl?borrowernumber=19
3) Search for 'test' and click the top 'Select all' link
4) Click the downward arrow in the 'Place hold' button and pick 'Place hold for Henry'
5) Set a pickup location for each hold and tick the 'Treat as hold group' checkbox
6) Click 'Place holds'.
7) Check-out an eligible barcode e.g.: 39999000005578 to Henry
8) Visit Henry's holds history:
<staff_url>/cgi-bin/koha/members/holdshistory.pl?borrowernumber=19
9) Confirm that a new 'Hold group ID' column exists.
10) Disable DisplayAddHoldsGroups sys prefs. Confirm table looks as expected without the column.
Run all hold groups tests:
prove t/db_dependent/Koha/Patron.t
prove t/db_dependent/api/v1/patrons_hold_groups.t
prove t/db_dependent/Koha/Hold.t
prove t/db_dependent/Reserves/HoldGroup.t
Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit c084a3141a)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
parent
e4b5847952
commit
ac1a14da96
|
|
@ -126,6 +126,9 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th data-colname="title" class="anti-the">Title</th>
|
||||
[% IF Koha.Preference('DisplayAddHoldGroups') %]
|
||||
<th data-colname="hold_group_id">Hold group ID</th>
|
||||
[% END %]
|
||||
<th data-colname="author">Author</th>
|
||||
<th data-colname="barcode">Barcode</th>
|
||||
<th data-colname="itemcallnumber">Call number</th>
|
||||
|
|
@ -176,6 +179,7 @@
|
|||
};
|
||||
|
||||
const show_itemtype_column = [% Koha.Preference('AllowHoldItemTypeSelection') ? 1 : 0 | html %];
|
||||
const display_hold_group_id = [% Koha.Preference('DisplayAddHoldGroups') ? 1 : 0 | html %];
|
||||
</script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
|
@ -252,6 +256,15 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
...(display_hold_group_id
|
||||
? [
|
||||
{
|
||||
data: "hold_group_id",
|
||||
searchable: true,
|
||||
orderable: true,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
{
|
||||
data: "biblio.author",
|
||||
searchable: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue