From 021160c1e3b56e4ecfd1df374c40c98fef5b79c9 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 6 May 2009 18:18:23 +0000 Subject: [PATCH] out with the old-style grid column picker, in with the new git-svn-id: svn://svn.open-ils.org/ILS/trunk@13092 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/vandelay/inc/queue.xml | 49 ++++++++++------------------- Open-ILS/web/vandelay/vandelay.js | 34 +++++++++++--------- 2 files changed, 36 insertions(+), 47 deletions(-) diff --git a/Open-ILS/web/vandelay/inc/queue.xml b/Open-ILS/web/vandelay/inc/queue.xml index 00ae5cd5cd..f8489c6911 100644 --- a/Open-ILS/web/vandelay/inc/queue.xml +++ b/Open-ILS/web/vandelay/inc/queue.xml @@ -33,28 +33,6 @@
- -
- - - - - - - - - - - -
&vandelay.column;&vandelay.display;&vandelay.auto.width;
- -
-
-
@@ -119,24 +97,29 @@ &vandelay.next.page; » - - &vandelay.select.cols; -
-
-
+ -
- - -
+
diff --git a/Open-ILS/web/vandelay/vandelay.js b/Open-ILS/web/vandelay/vandelay.js index ea07b4780f..181be2184f 100644 --- a/Open-ILS/web/vandelay/vandelay.js +++ b/Open-ILS/web/vandelay/vandelay.js @@ -612,6 +612,18 @@ var valLastQueueType = null; function buildRecordGrid(type) { displayGlobalDiv('vl-queue-div'); + if(type == 'bib') { + openils.Util.show('vl-bib-queue-grid-wrapper'); + openils.Util.hide('vl-auth-queue-grid-wrapper'); + vlQueueGrid = vlBibQueueGrid; + vlQueueGridMenu = vlBibQueueGridMenu; + } else { + openils.Util.show('vl-auth-queue-grid-wrapper'); + openils.Util.hide('vl-bib-queue-grid-wrapper'); + vlQueueGrid = vlAuthQueueGrid; + vlQueueGridMenu = vlAuthQueueGridMenu; + } + if(valLastQueueType != type) { valLastQueueType = type; resetVlQueueGridLayout(); @@ -638,21 +650,19 @@ function buildRecordGrid(type) { var store = new dojo.data.ItemFileReadStore({data:storeData}); vlQueueGrid.setStore(store); - vlQueueGrid.attr('structure', vlQueueGridLayout); - /* if(vlQueueGridColumePicker[type]) { vlQueueGrid.update(); } else { - vlQueueGridColumePicker[type] = - new vlQueueGridMenu.init({ - grid : vlQueueGrid, - authtoken : authtoken, - persistPrefix : 'vandelay.queue.'+type - }); - vlQueueGridColumePicker[type].load(); + vlQueueGrid.attr('structure', vlQueueGridLayout); + vlQueueGridMenu.init({ + grid : vlQueueGrid, + authtoken : authtoken, + prefix : 'vandelay.queue.'+type + }); + vlQueueGridMenu.load(); + vlQueueGridColumePicker[type] = vlQueueGridMenu; } - */ } function vlQueueGridPrevPage() { @@ -801,7 +811,6 @@ function batchUpload() { currentType = dijit.byId('vl-record-type').getValue(); var handleProcessSpool = function() { - console.log('records uploaded and spooled'); if(vlUploadQueueAutoImport.checked) { vlImportRecordQueue(currentType, currentQueueId, true, function() { @@ -814,20 +823,17 @@ function batchUpload() { } var handleUploadMARC = function(key) { - console.log('marc uploaded'); dojo.style(dojo.byId('vl-upload-status-processing'), 'display', 'block'); processSpool(key, currentQueueId, currentType, handleProcessSpool); }; var handleCreateQueue = function(queue) { - console.log('queue created ' + queue.name()); currentQueueId = queue.id(); uploadMARC(handleUploadMARC); }; if(vlUploadQueueSelector.getValue() && !queueName) { currentQueueId = vlUploadQueueSelector.getValue(); - console.log('adding records to existing queue ' + currentQueueId); uploadMARC(handleUploadMARC); } else { createQueue(queueName, currentType, handleCreateQueue); -- 2.43.2