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>
Tue, 10 Apr 2018 15:48:13 +0000 (11:48 -0400)
commitb4eac90df0ce2923ce5611f66fc645f933d74a94
tree0460269b723906cb51d2e16f95904475bdee883a
parentec78dc1da8d666f3ce4b53635dfac90914c90bac
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