From 3f56cb73a7e5732e7bab845a39e8b75cb6e305ac Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Thu, 18 Oct 2018 14:21:36 +0100 Subject: [PATCH] Bug 21063: (follow-up) Add user ID to column list As originally specified in bug 20883, there is a requirement for some users to be able to display the user ID (borrowernumber) in the UI. This patch adds that ability to this bug, 20883 will be marked as a duplicate of this one. --- Koha/Illrequest.pm | 7 ++++--- admin/columns_settings.yml | 4 ++++ koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 2 ++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Koha/Illrequest.pm b/Koha/Illrequest.pm index cc61a870e5..25fdb73208 100644 --- a/Koha/Illrequest.pm +++ b/Koha/Illrequest.pm @@ -1005,9 +1005,10 @@ sub TO_JSON { if ( $embed->{patron} ) { my $patron = $self->patron; $object->{patron} = { - firstname => $patron->firstname, - surname => $patron->surname, - cardnumber => $patron->cardnumber + borrowernumber => $patron->borrowernumber, + firstname => $patron->firstname, + surname => $patron->surname, + cardnumber => $patron->cardnumber }; } # Augment the request response with metadata details if appropriate diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 85e6aaf357..8f0ffc77c1 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -280,6 +280,10 @@ modules: - columnname: orderid - + columnname: patron_borrowernumber + - + columnname: patron_cardnumber + - columnname: biblio_id - columnname: borrowernumber diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index 5af0cde22c..311b632dcf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -595,6 +595,8 @@ Pages Type Order ID + Patron ID + Patron barcode Biblio ID Patron Branch -- 2.11.0