[OPEN-ILS-DEV] ***SPAM*** Patch: holds go home feature idea

Doug Kyle dkyle at grpl.org
Tue May 4 14:21:42 EDT 2010


I've been testing some code for the situation where an item gets "stuck"
circulating at a non-owning library.  A number of people at the recent
hackfest expressed interest in various ways to get an item to fill holds
at it's home library depending on some setting, so I thought others
might be interested, and wondered if anyone else was working on this.

The idea is to compare a library setting, which is a time interval such
as '6 weeks', to the time interval since the item was checked in at its
home library. If the library setting has been exceeded, the system will
search for holds relative to the item's home library rather than the
current check in library.  In effect, the item will go home if holds
exist there, if not the item may at least start moving toward its home
library depending on what other holds exist and the layout of the
library system.

The code adds one storage call to compare the library setting(pulled via
item circ_lib), and if the setting is exceeded, calls the existing 
nearest_hold sub
with the item circ_lib rather than check in lib.  You'll need to add an
UPDATE_ORG_UNIT_SETTING.circ.hold_go_home permission if you want to try
it out.  The diff is against svn rel_1_6_0.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: DCO-1.1.txt
Url: http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20100504/b775695f/attachment.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hold_go_home.diff
Type: text/x-patch
Size: 5569 bytes
Desc: not available
Url : http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20100504/b775695f/attachment.bin 


More information about the Open-ils-dev mailing list