current copy location column for hold lists
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 25 Aug 2008 16:08:41 +0000 (16:08 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 25 Aug 2008 16:08:41 +0000 (16:08 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10438 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/util.js
Open-ILS/xul/staff_client/server/locale/en-US/common.properties

index 42b283c..1fc236c 100644 (file)
@@ -1486,6 +1486,17 @@ circ.util.hold_columns = function(modify,params) {
                },
                {
                        'persist' : 'hidden width ordinal',
+                       'id' : 'current_copy_location', 
+                       'label' : document.getElementById('commonStrings').getString('staff.ahr_current_copy_location_label'),
+            'flex' : 1,
+                       'primary' : false, 
+            'hidden' : true, 
+            'render' : function(my) { 
+                if (!my.acp) { return ""; } else { if (Number(my.acp.location())>=0) return data.lookup("acpl", my.acp.location() ).name(); else return my.acp.location().name(); } 
+            }
+               },
+               {
+                       'persist' : 'hidden width ordinal',
                        'id' : 'email_notify',
                        'label' : document.getElementById('commonStrings').getString('staff.ahr_email_notify_label'),
                        'flex' : 1,
index b8bb2fb..d7e1891 100644 (file)
@@ -40,6 +40,7 @@ staff.acp_label_location=Location
 staff.acp_label_price=Price
 staff.acp_label_status=Status
 staff.ahr_current_copy_label=Current Copy
+staff.ahr_current_copy_location_label=Current Copy Location
 staff.ahr_email_notify_label=Email Notify
 staff.ahr_expire_time_label=Expire Time
 staff.ahr_fulfillment_time_label=Fulfillment Time