https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40984
Bug ID: 40984
Summary: Synchronise before_ and after_authority_action hook
signatures with biblio action hooks
Change sponsored?: ---
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Keywords: Hackfest
Severity: minor
Priority: P5 - low
Component: Plugin architecture
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected]
Following the work on bug 36343, which standardized the signatures for
before_biblio_action and after_biblio_action hooks to include a payload
parameter, a similar inconsistency exists within the authority hooks.
To improve the consistency and predictability of the plugin hook system, we
should align the authority action hooks with the syntax established for
biblios.
This bug covers two related issues:
Update after_authority_action hook signature:
An after_authority_action hook already exists, but its signature is missing the
payload parameter. We should update this hook to include the payload, bringing
it in line with after_biblio_action. A deprecation period and warning should be
introduced for the older signature to ensure backward compatibility for
existing plugins.
Create before_authority_action hook:
There is currently no equivalent before_authority_action hook. We should create
this new hook to allow plugins to interact with authority records before an
action (like saving) is completed. This new hook should be implemented with a
signature that is consistent with before_biblio_action from the outset,
including the payload parameter.
Completing this work will provide a more coherent and powerful interface for
plugins that interact with both bibliographic and authority records.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/