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)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 30 Apr 2018 15:23:45 +0000 (11:23 -0400)
commitef03a9607d240263c20e55dd063c70ab8a8f35e7
treec95de0ed4fe9e98c9eb4eb43461d33af1e057ddd
parentfd816b593636f7cd94da025f3685a7f88c167f08
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>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/cat/item/app.js