Bug 20580: Make create_superlibrarian.pl accept parameters
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 16 Apr 2018 15:31:22 +0000 (12:31 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 20 Apr 2018 15:24:00 +0000 (12:24 -0300)
commit8291ba410e66a6f9adeeeb7e2cac3d2308cc0a3e
treea45428a81f90cdba917225646a710508bcfde20d
parentbeb6bd866779a93373ae493c784afbcbd470e4a0
Bug 20580: Make create_superlibrarian.pl accept parameters

So far this script does not accept parameters and create a koha/koha
superlibrarian
This patch makes it accept parameters to create a customized
superlibrarian patrons.

Test plan:
Use the script with valid and invalid paramters and confirm that it
works as expected.

Note: A cryptic "Invalid parameter passed" error is raised when the
categorycode is not valid. Better error handling must be provided but
Koha::Exceptions seems to be enhancement (see related bug reports).

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
misc/devel/create_superlibrarian.pl