https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14876
Jonathan Druart <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected], | |[email protected], | |martin.renvoize@ptfs-europe | |.com, [email protected] --- Comment #9 from Jonathan Druart <[email protected]> --- CCing Katrin, Tomas, Marcel and Martin. It's not clear to me when we need a TT plugin. Sometimes it's obvious (get branch names, get patron category description, filter (json, date, price), pref values, etc.) But sometimes it's not: Borrowers.IsDebarred, Borrowers.HasOverdues. Holds.count is part of this second group. I don't think plugins should be a lazy solution for developers. We need to define when we can use a plugin, otherwise any methods from Koha modules could have their plugin wrapper. And we will have to maintain: Koha::Holds->count({biblionumber => $biblionumber }); Koha::Template::Plugin::Holds->count($biblionumber); and Koha::REST::V1::Hold->count($biblionumber); # does not exist (yet) (I don't switch to in discussion otherwise you will hate me) -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://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/
