Support script-based circ in nearest_hold()
authorDan Scott <dscott@laurentian.ca>
Mon, 17 Jun 2013 04:38:43 +0000 (00:38 -0400)
committerDan Scott <dscott@laurentian.ca>
Mon, 17 Jun 2013 04:42:09 +0000 (00:42 -0400)
commit45359eb1239467182f824b2e3d3d25f31c62a4dc
tree1d4254b4d5509d0e8b0a739b0d19869ca3f16881
parent1184cbff97f86bebfb66de2de66c1b0225d0e119
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