]> git.koha-community.org Git - koha.git/commit
Bug 14659: Allow patrons to enter card number and patron category on OPAC registratio...
authorJesse Weaver <pianohacker@gmail.com>
Mon, 31 Aug 2015 23:45:16 +0000 (17:45 -0600)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 2 Mar 2016 04:29:38 +0000 (04:29 +0000)
commitcdbb63f856b2f8dafe3fbc73e1de3bac86a7fc64
tree9f414824cb42061956545cf23fd423a6c13a1c8d
parentef2decc48988aa9b622893a7350b9b6b05df79e9
Bug 14659: Allow patrons to enter card number and patron category on OPAC registration page

Test plan:
  1. Open OPAC self-registration page while logged out.
  2. Note that cardnumber and categorycode are not shown.
  3. Remove cardnumber and categorycode from
     PatronSelfRegistrationBorrowerUnwantedField.
  4. Enable autoMemberNum.
  5. Reload self-registration page, note that categorycode now shows.
  6. Disable autoMemberNum.
  7. Reload self-registration page, note that cardnumber now shows.
  8. Try saving a patron with an existing cardnumber; this should fail
     and explain why.
  9. Set CardnumberLength, and verify that those length restrictions are
     enforced.
 10. Verify that patron can be created with custom categorycode and
     cardnumber.

Signed-off-by: Michael Sauers <msauers@dospace.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
C4/Members.pm
Koha/Template/Plugin/Categories.pm
installer/data/mysql/atomicupdate/bug_14659-add_cardnumber_categorycode_PatronSelfRegistrationBorrowerUnwantedField_syspref.sql [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt
opac/opac-memberentry.pl