From fc9c5688ac1dca00b7967c193ed14b3daf064eca 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/REST/V1/Illrequests.pm | 7 ++++--- admin/columns_settings.yml | 4 ++++ koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Koha/REST/V1/Illrequests.pm b/Koha/REST/V1/Illrequests.pm index 94ff8ce18f..c9c79a7f1b 100644 --- a/Koha/REST/V1/Illrequests.pm +++ b/Koha/REST/V1/Illrequests.pm @@ -125,9 +125,10 @@ sub list { foreach my $p(@{$patron_arr}) { if ($p->{borrowernumber} == $req->borrowernumber) { $to_push->{patron} = { - firstname => $p->{firstname}, - surname => $p->{surname}, - cardnumber => $p->{cardnumber} + borrowernumber => $p->{borrowernumber}, + firstname => $p->{firstname}, + surname => $p->{surname}, + cardnumber => $p->{cardnumber} }; last; } diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 36c3fd3d8b..960040b04f 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -374,6 +374,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 41529d76a8..f8408ae6fc 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 @@ -519,9 +519,10 @@ Pages Type Order ID + Patron ID + Patron barcode Biblio ID Patron - Patron barcode Branch Status   -- 2.11.0