The availability of a hold can now be determined by
hold.current_shelf_lib == hold.pickup_lib.
This change updates the staff client code to only display the "available
on" value (i.e. shelf_time) in the holds list when the current_shelf_lib
== pickup_lib and not just that it's captured and on a shelf.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
'primary' : false,
'hidden' : false,
'editable' : false, 'render' : function(my) {
- if (my.ahr.transit() && my.ahr.transit().dest_recv_time()) {
- return util.date.formatted_date( my.ahr.transit().dest_recv_time(), '%{localized}' );
- }
- if (!my.ahr.transit() && my.ahr.capture_time()) {
- return util.date.formatted_date( my.ahr.capture_time(), '%{localized}' );
+ if (my.ahr.current_shelf_lib() == my.ahr.pickup_lib()) {
+ return util.date.formatted_date( my.ahr.shelf_time(), '%{localized}' );
}
return "";
}