From: berick Date: Mon, 2 May 2011 21:48:29 +0000 (-0400) Subject: added view for all failed item imports for a queue; next up is export options X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0d784d89f00fd350181e6559a9c94bca039210c8;p=evergreen%2Fequinox.git added view for all failed item imports for a queue; next up is export options --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm index 4df6c1d329..1d69eb4287 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm @@ -518,7 +518,9 @@ sub retrieve_queue_import_items { } } }, - order_by => {'vii' => ['record','id']} + order_by => {'vii' => ['record','id']}, + limit => $limit, + offset => $offset }; $query->{where} = {'+vii' => {import_error => {'!=' => undef}}} diff --git a/Open-ILS/web/js/ui/default/vandelay/vandelay.js b/Open-ILS/web/js/ui/default/vandelay/vandelay.js index cd6cd82d4e..182cf5c9f7 100644 --- a/Open-ILS/web/js/ui/default/vandelay/vandelay.js +++ b/Open-ILS/web/js/ui/default/vandelay/vandelay.js @@ -644,6 +644,43 @@ function vlLoadErrorUI(id) { } } +function vlLoadErrorUIAll() { + + displayGlobalDiv('vl-import-error-div'); + openils.Util.hide('vl-import-error-grid-some'); + openils.Util.show('vl-import-error-grid-all'); + vlAllImportErrorGrid.resetStore(); + + vlAllImportErrorGrid.dataLoader = function() { + + vlAllImportErrorGrid.showLoadProgressIndicator(); + + fieldmapper.standardRequest( + ['open-ils.vandelay', 'open-ils.vandelay.import_item.queue.retrieve'], + { + async : true, + params : [ + authtoken, currentQueueId, { + with_import_error:1, + offset : vlAllImportErrorGrid.displayOffset, + limit : vlAllImportErrorGrid.displayLimit + } + ], + onresponse : function(r) { + var item = openils.Util.readResponse(r); + if(!item) return; + vlAllImportErrorGrid.store.newItem(vii.toStoreItem(item)); + }, + oncomplete : function() { + vlAllImportErrorGrid.hideLoadProgressIndicator(); + } + } + ); + }; + + vlAllImportErrorGrid.dataLoader(); +} + function vlGetOrg(rowIdx, item) { if(!item) return ''; var value = this.grid.store.getValue(item, this.field); diff --git a/Open-ILS/web/templates/default/vandelay/inc/queue.tt2 b/Open-ILS/web/templates/default/vandelay/inc/queue.tt2 index 25e22a228c..50f74b4876 100644 --- a/Open-ILS/web/templates/default/vandelay/inc/queue.tt2 +++ b/Open-ILS/web/templates/default/vandelay/inc/queue.tt2 @@ -11,7 +11,7 @@ &vandelay.import.selected; &vandelay.import.all; - View Item Import Failures + View Item Import Failures - - - - -
- - -