From: senator Date: Mon, 4 Oct 2010 18:57:20 +0000 (+0000) Subject: Add "Patron Alias" as an available column in pull list, holds shelf interfaces X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b511e23a9e0fdf5ea14df131f826095e5fad8ee7;p=evergreen%2Fpines.git Add "Patron Alias" as an available column in pull list, holds shelf interfaces git-svn-id: svn://svn.open-ils.org/ILS/trunk@18158 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm index 8fb78744aa..5ff671e0ee 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm @@ -2611,6 +2611,7 @@ sub uber_hold_impl { patron_first => $user->first_given_name, patron_last => $user->family_name, patron_barcode => $card->barcode, + patron_alias => $user->alias, %$details }; } diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 3697f5a99d..7388d493c2 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -2089,6 +2089,15 @@ circ.util.hold_columns = function(modify,params) { 'editable' : false, 'render' : function(my) { return my.patron_family_name ? my.patron_family_name : ""; } }, { + "persist": "hidden width ordinal", + "id": "patron_alias", + 'label' : document.getElementById('circStrings').getString('staff.circ.utils.patron_alias'), + 'flex' : 1, + 'primary' : false, + 'hidden' : true, + 'editable' : false, 'render' : function(my) { return my.patron_alias ? my.patron_alias : ""; } + }, + { 'persist' : 'hidden width ordinal', 'id' : 'patron_first_given_name', 'label' : document.getElementById('circStrings').getString('staff.circ.utils.patron_first_given_name'), diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties index 005e06258a..c6f718d171 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties @@ -330,6 +330,7 @@ staff.circ.utils.title.none=No Title? staff.circ.utils.author.none=No Author? staff.circ.utils.notify_time=Last Notify Time staff.circ.utils.notify_count=Notices +staff.circ.utils.patron_alias=Patron Alias staff.circ.utils.patron_family_name=Patron Last Name staff.circ.utils.patron_first_given_name=Patron First Name staff.circ.utils.checkin.override=Override Checkin Failure? diff --git a/Open-ILS/xul/staff_client/server/patron/hold_details.js b/Open-ILS/xul/staff_client/server/patron/hold_details.js index 3458fb7f1f..a4a4f1be7b 100644 --- a/Open-ILS/xul/staff_client/server/patron/hold_details.js +++ b/Open-ILS/xul/staff_client/server/patron/hold_details.js @@ -143,6 +143,7 @@ function a_list_of_one() { 'patron_family_name' : g.blob.patron_last, 'patron_first_given_name' : g.blob.patron_first, 'patron_barcode' : g.blob.patron_barcode, + 'patron_alias' : g.blob.patron_alias, 'total_holds' : g.blob.total_holds, 'queue_position' : g.blob.queue_position, 'potential_copies' : g.blob.potential_copies, diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index b468fdce17..4cf392b326 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -85,6 +85,7 @@ patron.holds.prototype = { row.my.patron_family_name = blob.patron_last; row.my.patron_first_given_name = blob.patron_first; row.my.patron_barcode = blob.patron_barcode; + row.my.patron_alias = blob.patron_alias; row.my.total_holds = blob.total_holds; row.my.queue_position = blob.queue_position; row.my.potential_copies = blob.potential_copies;