[Koha-devel] [Changed topic] Action hooks

Marcel de Rooy M.de.Rooy at rijksmuseum.nl
Thu Dec 2 08:15:07 CET 2021


> I also have a use case where I want to send Koha biblio data elsewhere on create/update/delete, but Koha plugins won't be suitable. I've been thinking that it would be good to publish a message to a RabbitMQ topic on biblio create/update/delete. In fact, that could potentially replace the existing C4::Biblio::_after_biblio_action_hooks and Koha::Item::_after_item_action_hooks functions, and then the background_jobs_worker.pl or some other work could invoke the plugins.

I am running plugins to do the same for some time already. They are pushing these crud actions to a message queue. Works fine for me. Could you tell what makes plugins not suitable for that task?


 

​Ook in het Rijksmuseum:
​Document Nederland 2021: Afstand. Henk Wildschut fotografeert corona
​
​

xxx

​Please think before you print
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20211202/8fb31af1/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image794917.jpg
Type: image/jpeg
Size: 100487 bytes
Desc: image794917.jpg
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20211202/8fb31af1/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image361663.png
Type: image/png
Size: 910 bytes
Desc: image361663.png
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20211202/8fb31af1/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image467923.png
Type: image/png
Size: 737 bytes
Desc: image467923.png
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20211202/8fb31af1/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image371543.png
Type: image/png
Size: 799 bytes
Desc: image371543.png
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20211202/8fb31af1/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image182672.png
Type: image/png
Size: 804 bytes
Desc: image182672.png
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20211202/8fb31af1/attachment-0007.png>


More information about the Koha-devel mailing list