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:58 +0000 (11:23 -0400)
commitee38cd98876fab584fb843ba597d9866dbe4986c
tree7848d79574df74b2e0625dd48712f396cb61eee2
parent75e703faff9f6003db91221b70a18dd903521151
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