Addresses the issue with checkout workstation, by
attaching as a object property to the flatCopy hash.
Also makes sure the pcrud call uses combcirc.
Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
<eg-grid-field label="[% l('Checkin Scan Date') %]" path="_circ_summary.last_checkin_scan_time" datatype="timestamp" hidden></eg-grid-field>
<eg-grid-field label="[% l('Checkin Workstation') %]" path="_circ_summary.last_checkin_workstation" hidden></eg-grid-field>
<eg-grid-field label="[% l('Checkout Date') %]" path="_circ_summary.start_time" datatype="timestamp" hidden></eg-grid-field>
- <eg-grid-field label="[% l('Checkout Workstation') %]" path="_circ.workstation.name" hidden></eg-grid-field>
+ <eg-grid-field label="[% l('Checkout Workstation') %]" path="_checkout_ws" hidden></eg-grid-field>
<eg-grid-field label="[% l('Checkout/Renewal Library') %]" path="_circ_lib.shortname" hidden></eg-grid-field>
<eg-grid-field label="[% l('Circulation ID') %]" path="_circ.id" hidden></eg-grid-field>
<eg-grid-field label="[% l('Circ or Renewal Workstation') %]" path="_circ_summary.last_renewal_workstation" hidden></eg-grid-field>
}
service.getCirc = function(id) {
- return egCore.pcrud.search('aacs', { target_copy : id },
+ return egCore.pcrud.search('combcirc', { target_copy : id },
service.circFlesh).then(function(circ) {return circ});
}
flatCopy._circ_summary = egCore.idl.toHash(copyData.circ_summary, true);
flatCopy._circ_lib = copyData.circ.circ_lib();
flatCopy._duration = copyData.circ.duration();
+ flatCopy._checkout_ws = copyData.circ.workstation().name();
}
flatCopy.index = service.index++;
flatCopy.copy_alert_count = copyData.copy.copy_alerts().filter(function(aca) {