LP#1746300: Fix circulation counts in Item Status Details user/jeffdavis/lp1746300_fix_circ_counts_item_status_details_signoff
authorChris Sharp <csharp@georgialibraries.org>
Tue, 10 Apr 2018 15:40:35 +0000 (11:40 -0400)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 27 Apr 2018 18:29:10 +0000 (11:29 -0700)
commit88662784269282aac26cd5483d8c763ba60a7599
treec727d4bb626c729ae63666cecab730daa1b14018
parentcebafdee44ad18eb1ada3675e177e0c49b33b545
LP#1746300: Fix circulation counts in Item Status Details

Currently, the "Total Circs -Current Year" and "Total Circs -
Prev Year" numbers are seemingly randomly incorrect.  This is
caused by pulling the numbers from the "circbyyr" fieldmapper
object, which results in an array of 2 rows (one for renewals
and one for new circs).  The current JS only displays the count
for the first item in the array, ignoring the other.

This branch totals the two, resulting in the right result for each
year's circulations.

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Open-ILS/web/js/ui/default/staff/cat/item/app.js