Dynamic Weighting for INDB Matchpoints
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Wishlist
|
Unassigned | ||
2.1 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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.
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.
Changed in evergreen: | |
milestone: | none → 2.1.0 |
status: | Fix Committed → Fix Released |
DCO visible by quick page search:
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
Signed-off-by: Thomas Berezansky <email address hidden>