[Koha-devel] tools should they be command line executable as well ?

Paul Poulain paul.poulain at biblibre.com
Wed Aug 31 16:38:45 CEST 2011


Hello all,

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/?
>
> At this time, there doesn't seem to be any precedent for inclusion in the core
> script.  Before passing this patch for QA, I'd like to get some feedback, as
> this may both open doors for us, as well as create additional work to create
> consistency of implementation for existing jobs.
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
* I think a few other script could usefully have the same feature :
import_borrowers, batchMod (that does both mod and deletion of items),
and that's probably all.

So, overally, my choice is : let the need decide. If it's useful for
some, do it, but double check for security issues.

-- 
Paul POULAIN
http://www.biblibre.com
Expert en Logiciels Libres pour l'info-doc
Tel : (33) 4 91 81 35 08



More information about the Koha-devel mailing list