Spacing and code comments to keep future-miker from becoming confused again by the...
authorMike Rylander <mrylander@gmail.com>
Sat, 21 May 2011 13:05:04 +0000 (09:05 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 6 Jul 2011 18:50:53 +0000 (14:50 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm

index d88e3a4..9dd923e 100644 (file)
@@ -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};