Paul Poulain asked: > On http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5636 Ian > asked a question last month no-one answered. So I ask it here: > > Style question to the community: should core pages in the staff client > > (like > > tools/cleanborrowers.pl) have both a templated page in the staff client AND > > a > > command-line presence, or should the commandline tool be a separate script > > in > > misc/? [...] > My answer is: > * right, there is no precedent > * This feature to clean borrowers from command line is highly useful : > most libraries want to define a rule, and have it applied every week, > through a cronjob. But some want to clean manually. So it's meaningful > to have a script for both cases. > * I think it's fair to have this script run from both, and it's better > than having 2 scripts for that, it's easier to maintain [...]
Would it be better to move the shared logic into a C4 module and have both the staff web script and a misc CLI script? Having scripts behave differently depending on invocation environment seems a bit risky. Hope that helps, -- MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op. Webmaster, Debian Developer, Past Koha RM, statistician, former lecturer. In My Opinion Only: see http://mjr.towers.org.uk/email.html Available for hire for various work through http://www.software.coop/ _______________________________________________ Koha-devel mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
