[Koha-bugs] [Bug 31894] Extend Hold hooks with more actions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 26 21:15:12 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31894

--- Comment #15 from Stefan Berndtsson <stefan.berndtsson at ub.gu.se> ---
(In reply to Marcel de Rooy from comment #13)
> Stefan: Since I imagine that you have some real life plugin to connect to
> this hook, could you let me know the results of that plugin with the
> follow-ups here?
> The test only does not prove much.

Yes. Testing plugins properly is a bit messy, but it works just fine with these
follow-ups.

The plugin in question is:
https://github.com/ub-digit/koha-plugin-stats-other-table

This essentially records customised statistics into its own table (specified in
the plugin configuration) on multiple of the "after_*_action" hooks (hence the
reason for two of the three other hook addition bug-entries).

It should be possible to use on a master as is, but be aware that it
automatically creates the table in the database (if checkbox to do this is
set).

With this plugin installed I did:

1. Place hold on next available item
2. Checkin an item on other library than pickup (found=T)
3. Checkin the item on the pickup library (found=W)
4. Checkout item to patron (found=F + issue)

Without this patch, this sequence records hold_place, hold_fill, issue.
With the patch it records hold_place, hold_transfer, hold_waiting, hold_fill,
issue as expected.

hold_processing would be included if SIP checkin was used with that processing
syspref.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list