[OPEN-ILS-DEV] Dynamic INDB Circ/Holds weighting patch on Launchpad
Thomas Berezansky
tsbere at mvlc.org
Thu Nov 18 11:36:32 EST 2010
Launchpad URL: http://bugs.launchpad.net/evergreen/+bug/677074
From the description there:
Currently INDB circ and holds use a pre-defined weighting set for rule
ordering. This can be changed via replacing the relevant "find"
functions in the database, but this is not easily done for most people.
The attached patch is my first attempt at making INDB circ and holds
use dynamic weighting in trunk.
The weight set for circ matchpoints is obtained based on the context
ou of the circ (aka, where the circ is happening).
The weight set for hold matchpoints is obtained based on the item's
circ library (aka, where the item lives).
Optionally, add an enabled circ.holds.weight_owner_not_circ internal
flag to have the weight set for hold matchpoints be obtained based on
the item's owning library (owner of the call number).
Warnings about this patch:
1 - I did not (yet) figure out how to add a permission (or set
thereof) for editing, even though I added GUIs for doing so and links
to them from the staff client.
2 - It is "lightly" tested, as in things still seemed to work and
basic checks for the new functionality taking effect worked as
expected, but that is about all I did.
I may write dokuwiki formatted documentation on how the weights end up
working if it looks like this will be or is accepted.
(again, url is https://bugs.launchpad.net/evergreen/+bug/677074 if you
want to take a look at the patch and other discussion there)
Thomas Berezansky
Merrimack Valley Library Consortium
More information about the Open-ils-dev
mailing list