LP#1746300: Fix circulation counts in 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:14:22 +0000 (11:14 -0400)
commit2069ded369f5f0c3994768d0f89144a726bcb1ef
tree59041a3b83af3750d68d729f8fb474a2d74b577e
parentc38f9ac0fe048debb84d346e51b43ffb558080cf
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