From: Bill Erickson Date: Mon, 18 Feb 2013 15:41:01 +0000 (-0500) Subject: Z3950 Batch : initial xul dialog for finding matches X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=48683af9aead8b4e9982bace417c5eebc6d62876;p=evergreen%2Fequinox.git Z3950 Batch : initial xul dialog for finding matches Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/xul/staff_client/server/cat/bucketz39_dialog.js b/Open-ILS/xul/staff_client/server/cat/bucketz39_dialog.js new file mode 100644 index 0000000000..d619e6f68d --- /dev/null +++ b/Open-ILS/xul/staff_client/server/cat/bucketz39_dialog.js @@ -0,0 +1,40 @@ +var dialog; +var user_id; +var authtoken; +var bucket_id; + +function Bucketz39Dialog() { + + this.load = function() { + var self = this; + var loadCount = 2; + var pcrud = new OpenSRF.ClientSession('open-ils.pcrud'); + + // vandelay queues + pcrud.request({ + async : true, + method : 'open-ils.pcrud.search.vbq.atomic', + params : [authtoken, {owner : user_id}], + oncomplete : function(r) { + var resp = r.recv(); + if (!resp) return; + self.queue_list = resp.content(); + if (--loadCount == 0) + self.drawDialog(); + } + }).send(); + + loadCount--; // TODO + } + + this.drawDialog = function() { + } +} + +function my_init() { + user_id = window.arguments[0]; + authtoken = window.arguments[1]; + bucket_id = window.arguments[2]; + dialog = new Bucketz39Dialog(); + dialog.load(); +} diff --git a/Open-ILS/xul/staff_client/server/cat/bucketz39_dialog.xul b/Open-ILS/xul/staff_client/server/cat/bucketz39_dialog.xul new file mode 100644 index 0000000000..3d1411aa6e --- /dev/null +++ b/Open-ILS/xul/staff_client/server/cat/bucketz39_dialog.xul @@ -0,0 +1,34 @@ + + + + + + +]> + + + + + + + + + + +