https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26890 --- Comment #16 from David Cook <dcook@prosentient.com.au> --- (In reply to Mark Hofstetter from comment #15)
The system is very explicit now, meaning you need a lot of code in specific places to use a plugin excactly "there"
I think a plugin system needs to be more implicit eg all cgi scripts should use the same plugin hook(s) (with the name of the script as a config parameter whether the plugin should actually run)
eg: plugin parameter rewrite add a parameter to all queries, or whenever a ISBN appears do a transformation
+ maybe could be doable by simply subclassing CGI
+ or better an more generalised, derive all cgi scripts from a common base class, wrap the code in a sub run {} and everthing becomes possible, this may sound huge but should be in fact only a few lines per script
With the Plack-enabled Koha, all the CGI scripts actually are loaded and wrapped, but I'm not sure how that would make everything possible. It would let you play with input/output, but that could be a bit fragile. There are some plugin hooks that are run for all CGI scripts, but I think that we could use a few more. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.