Bug 33845: Display hold notes in staff client circulation paes

This patch adds the reservenotes column to svc holds, and ensures they display on
circulation and memeber details

To test:
1 - Enable system preference 'OpacHoldNotes'
2 - Place a hold for a ptron via the OPAC
3 - View the patron in the staff client
4 - Click on the 'Holds' tab
5 - Ensure you can see the hold note
6 - Click on the 'Circulation' tab on the left
7 - Click the 'Holds' tab and confirm you can view the note

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2023-05-26 10:58:33 +00:00 committed by Tomas Cohen Arazi
parent e1df591870
commit baffe97f3e
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
3 changed files with 3 additions and 0 deletions

View File

@ -150,6 +150,7 @@
<th>Pickup at</th>
<th>Expiration</th>
<th>Priority</th>
<th>Notes</th>
<th>Delete?</th>
<th>Suspend?</th>
<th>Status</th>

View File

@ -233,6 +233,7 @@ $(document).ready(function() {
}
}
},
{ "data": "reservenotes" },
{
"bSortable": false,
"mDataProp": function( oObj ) {

View File

@ -113,6 +113,7 @@ while ( my $h = $holds_rs->next() ) {
waiting_at => $h->branch()->branchname(),
waiting_here => $h->branch()->branchcode() eq $branch,
priority => $h->priority(),
reservenotes => $h->reservenotes(),
itemtype_limit => $itemtype_limit,
reservedate_formatted => $h->reservedate() ? output_pref(
{ dt => dt_from_string( $h->reservedate() ), dateonly => 1 }