Request Library columns for hold lists
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 15 Jun 2007 10:12:38 +0000 (10:12 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 15 Jun 2007 10:12:38 +0000 (10:12 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@7431 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/util.js

index f8e8047..d4a689f 100644 (file)
@@ -727,6 +727,17 @@ circ.util.hold_columns = function(modify,params) {
 
        var c = [
                {
+                       'persist' : 'hidden width ordinal', 'id' : 'request_lib', 'label' : 'Request Lib (Full Name)', 'flex' : 1,
+                       'primary' : false, 'hidden' : true,  
+                       'render' : function(my) { if (Number(my.ahr.request_lib())>=0) return data.hash.aou[ my.ahr.request_lib() ].name(); else return my.ahr.request_lib().name(); },
+               },
+               {
+                       'persist' : 'hidden width ordinal', 'id' : 'request_lib_shortname', 'label' : 'Request Lib', 'flex' : 0,
+                       'primary' : false, 'hidden' : true,  
+                       'render' : function(my) { if (Number(my.ahr.request_lib())>=0) return data.hash.aou[ my.ahr.request_lib() ].shortname(); else return my.ahr.request_lib().shortname(); },
+               },
+
+               {
                        'persist' : 'hidden width ordinal', 'id' : 'request_timestamp', 'label' : 'Request Timestamp', 'flex' : 0,
                        'primary' : false, 'hidden' : true,  
                        'render' : function(my) { return my.ahr.request_time().toString(); },