From 0612489eb8d325b30c4fa1bf7afa961cd9c45979 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Sat, 21 May 2011 09:05:04 -0400 Subject: [PATCH] Spacing and code comments to keep future-miker from becoming confused again by the lack thereof Signed-off-by: Mike Rylander --- Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm index d88e3a4d3c..9dd923e0c5 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm @@ -1383,6 +1383,7 @@ sub retrieve_queue_summary { if($type eq 'bib') { + # count of all items attached to records in the queue in question my $query = { select => {vii => [{alias => 'count', column => 'id', transform => 'count', aggregate => 1}]}, from => 'vii', @@ -1396,10 +1397,13 @@ sub retrieve_queue_summary { } } }; - $summary->{total_items} = $e->json_query($query)->[0]->{count}; + + # count of items we attempted to import, but errored, attached to records in the queue in question $query->{where}->{import_error} = {'!=' => undef}; $summary->{item_import_errors} = $e->json_query($query)->[0]->{count}; + + # count of items we successfully imported attached to records in the queue in question delete $query->{where}->{import_error}; $query->{where}->{import_time} = {'!=' => undef}; $summary->{total_items_imported} = $e->json_query($query)->[0]->{count}; -- 2.11.0