Koha/t/db_dependent/SIP
Kyle Hall 877f8ed898
Bug 32684: Implement SIP patron status field "too many items lost"
The SIP patron status and information responses always return false foe "too many items lost". It would be reasonable to check the count of lost items still checked out to the patron and compare that to a threshold set in the sip config file. Though not all libraries operate in this way, it seems like a good and reasonable implementation as long is it is properly documented.

This patch adds the ability to set the SIP "too many items lost" flag
for a patron based on the number of lost checkouts the patron has where
the lost flag on those items is greater than the given flag value.

For example, one could specify that the flag be set if the patron has
more than 2 items checked out where itemlost is greater than 3.

By default the feature is disabled to retain the existing functionality.
If enabled, the default itemlost minimum flag value is 1 unless
specified.

Test Plan:
1) Apply this patch
2) prove t/db_dependent/SIP/Message.t

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-03-14 08:49:29 -03:00
..
ILS.t Bug 29094: Adding hold via SIP should check if patron can hold item first 2022-07-18 10:24:58 -03:00
Message.t Bug 32684: Implement SIP patron status field "too many items lost" 2023-03-14 08:49:29 -03:00
Patron.t Bug 33055: (bug 32624 follow-up) Unit tests 2023-03-02 09:37:39 -03:00
SIPServer.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Transaction.t Bug 32408: Add unit tests to SIP checkout 2023-02-07 15:52:13 -03:00