LP#1746300: Fix circulation counts in Item Status Details user/csharp/lp1746300_fix_circ_counts_item_status_details
authorChris Sharp <csharp@georgialibraries.org>
Tue, 10 Apr 2018 15:40:35 +0000 (11:40 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 23 Apr 2018 15:01:21 +0000 (11:01 -0400)
commit9f7d393bc5285b0926caf4ef700ab17b5e98f215
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>
Open-ILS/web/js/ui/default/staff/cat/item/app.js