https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38549

Lucas Gass (lukeg) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #192077|0                           |1
        is obsolete|                            |

--- Comment #5 from Lucas Gass (lukeg) <[email protected]> ---
Created attachment 193113
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193113&action=edit
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 <[email protected]>
Signed-off-by: Lucas Gass <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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/

Reply via email to