From a0e9b9c9dc7056004c73f99b681a80f0be7b036e Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 11 Feb 2025 21:27:14 +0000 Subject: [PATCH] Bug 38939: Add reservenote column to members/holdshistory.pl To test: 1. APPLY PATCH, restart_all 2. Make some holds for patrons in both the staff client and the OPAC. ( For OPAC turn on OpacHoldNotes ) 3. Make sure you add some notes to each of these holds. 4. Go to the patron account and click on the 'Holds history' tab. 5. Make sure the hold note is there and looks correct. 6. Ensure you can hide the coluimn properly via Table settings. --- admin/columns_settings.yml | 2 ++ .../prog/en/modules/members/holdshistory.tt | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 2a632acc25b..8b1a3d2b8fb 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -1412,6 +1412,8 @@ modules: columnname: itemtype - columnname: status + - + columnname: notes checkouthistory: checkouthistory-table: diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt index f4da8b21105..6c5003f75ce 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt @@ -97,6 +97,7 @@ Requested item type [% END %] Status + Notes @@ -141,6 +142,7 @@ Requested item type [% END %] Status + Notes @@ -324,6 +326,14 @@ return _("Pending"); } }, + { + data: "notes", + searchable: true, + orderable: true, + render: function (data, type, row, meta) { + return row.notes; + } + }, ], }, table_settings, true, additional_filters); } -- 2.39.5