From: berick Date: Fri, 20 May 2011 21:13:13 +0000 (-0400) Subject: Add items-imported to VL queue summary X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3b250d8c958b209e0739eda15bb58b1456e2ff5a;p=evergreen%2Fjoelewis.git Add items-imported to VL queue summary Added total_items_imported value to queue summary API call. Displaying value in vandelay queue summary area. --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm index 0647c88a59..d88e3a4d3c 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm @@ -1400,6 +1400,9 @@ sub retrieve_queue_summary { $summary->{total_items} = $e->json_query($query)->[0]->{count}; $query->{where}->{import_error} = {'!=' => undef}; $summary->{item_import_errors} = $e->json_query($query)->[0]->{count}; + delete $query->{where}->{import_error}; + $query->{where}->{import_time} = {'!=' => undef}; + $summary->{total_items_imported} = $e->json_query($query)->[0]->{count}; } return $summary; diff --git a/Open-ILS/web/js/ui/default/vandelay/vandelay.js b/Open-ILS/web/js/ui/default/vandelay/vandelay.js index 1c0348688e..d9a26a1ec2 100644 --- a/Open-ILS/web/js/ui/default/vandelay/vandelay.js +++ b/Open-ILS/web/js/ui/default/vandelay/vandelay.js @@ -1010,6 +1010,7 @@ var handleRetrieveRecords = function() { dojo.byId('vl-queue-summary-total-count').innerHTML = summary.total +''; dojo.byId('vl-queue-summary-import-count').innerHTML = summary.imported + ''; dojo.byId('vl-queue-summary-import-item-count').innerHTML = summary.total_items + ''; + dojo.byId('vl-queue-summary-import-item-imported-count').innerHTML = summary.total_items_imported + ''; dojo.byId('vl-queue-summary-rec-error-count').innerHTML = summary.rec_import_errors + ''; dojo.byId('vl-queue-summary-item-error-count').innerHTML = summary.item_import_errors + ''; } diff --git a/Open-ILS/web/templates/default/vandelay/inc/queue.tt2 b/Open-ILS/web/templates/default/vandelay/inc/queue.tt2 index c34c57fa62..783ffa5606 100644 --- a/Open-ILS/web/templates/default/vandelay/inc/queue.tt2 +++ b/Open-ILS/web/templates/default/vandelay/inc/queue.tt2 @@ -28,6 +28,7 @@ &vandelay.queue.imported; Record Import Failures Items in Queue + Items Imported Item Import Failures