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

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

index 41fa873..2ceb9f7 100644 (file)
@@ -782,6 +782,11 @@ circ.util.hold_columns = function(modify,params) {
                        'primary' : false, 'hidden' : true,  'render' : function(my) { return my.acp ? my.acp.barcode() : "No Copy"; },
                },
                {
+                       'id' : 'current_copy_location', 'label' : 'Current Copy Location', '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',
+               },
+               {
                        'persist' : 'hidden width ordinal', 'id' : 'email_notify', 'label' : getString('staff.ahr_email_notify_label'), 'flex' : 1,
                        'primary' : false, 'hidden' : true,  'render' : function(my) { return get_bool(my.ahr.email_notify()) ? "Yes" : "No"; },
                },