Trivial one liner. Add biblionumber too when calling the after_item_action plugin.
Created attachment 139118 [details] [review] Bug 31360: Add biblio_id to after_item_action hook No test plan. Just adding an parameter that may or may not be useful for the attached plugin. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Why? Cannot you access it with $item->biblionumber?
See commit 7d35052a14df66e9c5fe5d70378d36a6b1edb94d Bug 23463: Move plugin hook We kept item_id for backward compatibility, but now you can access all item's attributes using 'item'.
(In reply to Jonathan Druart from comment #2) > Why? Cannot you access it with $item->biblionumber? It would need plugin changes that already assume presence of biblio_id just as the biblio hooks offer. (In reply to Jonathan Druart from comment #3) > See commit 7d35052a14df66e9c5fe5d70378d36a6b1edb94d > Bug 23463: Move plugin hook > > We kept item_id for backward compatibility, but now you can access all > item's attributes using 'item'. If we allow item_id for backward compatiblity, this could be done for biblio_id too. No big deal?
(In reply to Marcel de Rooy from comment #4) > (In reply to Jonathan Druart from comment #2) > > Why? Cannot you access it with $item->biblionumber? > > It would need plugin changes that already assume presence of biblio_id just > as the biblio hooks offer. Are you expecting Koha core to fix plugin's code that has always been broken? :D > (In reply to Jonathan Druart from comment #3) > > See commit 7d35052a14df66e9c5fe5d70378d36a6b1edb94d > > Bug 23463: Move plugin hook > > > > We kept item_id for backward compatibility, but now you can access all > > item's attributes using 'item'. > > If we allow item_id for backward compatiblity, this could be done for > biblio_id too. No big deal? but biblio_id never existed there...
Okay the battle is lost :) I'll look at the plugin. See you next time.