Koha-clms/misc/devel
Aleisha Amohia dc84e37030
Bug 38549: Provide surname for create_superlibrarian.pl
Interestingly this script already had a $surname variable, just never accepted a parameter for it.

This enhancement enables the user to supply a surname parameter when creating a superlibrarian user via the commandline create_superlibrarian.pl script. Koha patrons MUST have a name, so if no surname is provided, the userid will be used for the surname instead.

To test:

1. Apply the patch and restart services
2. Attempt to create a superlibrarian with no surname provided.
  In KTD: misc/devel/create_superlibrarian.pl --userid test --cardnumber test --password XXXX --branchcode CPL --categorycode S
3. Search for your patron in Koha. Confirm the surname was automatically set to the userid 'test'
4. Attempt to create a superlibrarian, this time provide a surname that is different from the userid so easy to tell apart.
  In KTD: misc/devel/create_superlibrarian.pl --userid test1 --cardnumber test1 --password XXXX --branchcode CPL --categorycode S --surname testsurname
5. Search for your patron in Koha. Confirm the surname was set correctly using the given surname.

Sponsored-by: Catalyst IT
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit c72fc81b76)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
2026-04-13 09:31:03 +01:00
..
add_missing_filters.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
auto_rebase.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
coverage.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
create_superlibrarian.pl Bug 38549: Provide surname for create_superlibrarian.pl 2026-04-13 09:31:03 +01:00
create_test_data.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
get_prepared_letter.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
install_plugins.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
koha_perl_deps.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
tidy.pl Bug 39876: Add context for tidy 2025-07-08 15:41:59 -06:00
update_dbix_class_files.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00