[open-ils-commits] r13454 - in trunk/Open-ILS/xul/staff_client/server: circ locale/en-US patron (lmcfarland)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jun 24 09:54:19 EDT 2009
Author: lmcfarland
Date: 2009-06-24 09:54:18 -0400 (Wed, 24 Jun 2009)
New Revision: 13454
Modified:
trunk/Open-ILS/xul/staff_client/server/circ/util.js
trunk/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties
trunk/Open-ILS/xul/staff_client/server/patron/holds.js
Log:
Added functionality to holds menus to include columns for Total Holds Available, Queue Position, Potential Copies, and Estimated Wait
Modified: trunk/Open-ILS/xul/staff_client/server/circ/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/util.js 2009-06-23 19:45:32 UTC (rev 13453)
+++ trunk/Open-ILS/xul/staff_client/server/circ/util.js 2009-06-24 13:54:18 UTC (rev 13454)
@@ -1813,6 +1813,42 @@
'hidden' : true,
'render' : function(my) { return my.acn.label(); }
},
+ {
+ 'persist' : 'hidden width ordinal',
+ 'id' : 'total_holds',
+ 'label' : document.getElementById('circStrings').getString('staff.circ.utils.total_holds'),
+ 'flex' : 1,
+ 'primary' : false,
+ 'hidden' : true,
+ 'render' : function(my) { return my.total_holds; }
+ },
+ {
+ 'persist' : 'hidden width ordinal',
+ 'id' : 'queue_position',
+ 'label' : document.getElementById('circStrings').getString('staff.circ.utils.queue_position'),
+ 'flex' : 1,
+ 'primary' : false,
+ 'hidden' : true,
+ 'render' : function(my) { return my.queue_position; }
+ },
+ {
+ 'persist' : 'hidden width ordinal',
+ 'id' : 'potential_copies',
+ 'label' : document.getElementById('circStrings').getString('staff.circ.utils.potential_copies'),
+ 'flex' : 1,
+ 'primary' : false,
+ 'hidden' : true,
+ 'render' : function(my) { return my.potential_copies; }
+ },
+ {
+ 'persist' : 'hidden width ordinal',
+ 'id' : 'estimated_wait',
+ 'label' : document.getElementById('circStrings').getString('staff.circ.utils.estimated_wait'),
+ 'flex' : 1,
+ 'primary' : false,
+ 'hidden' : true,
+ 'render' : function(my) { return my.estimated_wait; }
+ }
];
for (var i = 0; i < c.length; i++) {
if (modify[ c[i].id ]) {
Modified: trunk/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties 2009-06-23 19:45:32 UTC (rev 13453)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties 2009-06-24 13:54:18 UTC (rev 13454)
@@ -314,6 +314,10 @@
staff.circ.utils.route_to.no_address.error=Unable to retrieve mailing address.
staff.circ.utils.payload.author=Author: %1$s
staff.circ.utils.payload.in_transit=%1$s is in transit.
+staff.circ.utils.estimated_wait=Estimated Wait Time
+staff.circ.utils.potential_copies=Potential Copies Available
+staff.circ.utils.queue_position=Queue Position
+staff.circ.utils.total_holds=Total Number of Holds
staff.circ.checkin.hold_capture=Hold Capture
staff.circ.checkin.check_in.tab=Item Check In
staff.circ.checkin.error=Check In Failed (in circ.util.checkin) (%1$s):
Modified: trunk/Open-ILS/xul/staff_client/server/patron/holds.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/holds.js 2009-06-23 19:45:32 UTC (rev 13453)
+++ trunk/Open-ILS/xul/staff_client/server/patron/holds.js 2009-06-24 13:54:18 UTC (rev 13454)
@@ -69,13 +69,17 @@
if (typeof blob.ilsevent != 'undefined') throw(blob);
row.my.ahr = blob.hold;
row.my.status = blob.status;
- row.my.ahr.status( blob.status );
+ row.my.ahr.status( blob.status );
row.my.acp = blob.copy;
row.my.acn = blob.volume;
row.my.mvr = blob.mvr;
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.total_holds = blob.total_holds;
+ row.my.queue_position = blob.queue_position;
+ row.my.potential_copies = blob.potential_copies;
+ row.my.estimated_wait = blob.estimated_wait;
var copy_id = row.my.ahr.current_copy();
if (typeof copy_id == 'object') {
@@ -92,7 +96,7 @@
params.row_node.setAttribute('retrieve_id',
js2JSON({
'copy_id':copy_id,
- 'barcode':row.my.acp ? row.my.acp.barcode() : null,
+ 'barcode':row.my.acp ? row.my.acp.barcode() : null,
'id':row.my.ahr.id(),
'type':row.my.ahr.hold_type(),
'target':row.my.ahr.target(),
More information about the open-ils-commits
mailing list