Support script-based circ in nearest_hold() user/dbs/script_based_renewal_nearest_hold_2_4
authorDan Scott <dscott@laurentian.ca>
Mon, 17 Jun 2013 04:38:43 +0000 (00:38 -0400)
committerDan Scott <dscott@laurentian.ca>
Tue, 18 Jun 2013 01:56:30 +0000 (21:56 -0400)
commit84ffba6655f58200934f11050fc6f5d551f25ed8
tree3762de883afaee4da8ed4cb3cda4775b882297cb
parent5b60fe5cd2ce35bb48b616d84d9a943dcebd63a2
Support script-based circ in nearest_hold()

The nearest_hold() implementation recently changed to pull in the circ
library ID; however, if circulation runs through scripts, the circ
library on the copy object has been fleshed, and the nearest hold
routine gets very confused.

Check to see if we do, in fact, have an object instead of a plain
scalar, and assign the value to a placeholder variable accordingly.

Thanks to Jeff Godin for his great assistance on debugging this!

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm