Bug 10667: Allow authentication with cardnumber for ILS-DI
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sun, 8 Sep 2013 19:42:04 +0000 (21:42 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 16 Sep 2013 19:14:10 +0000 (19:14 +0000)
commitddb67e32377185df371c85172308be882968b14f
treebd98055304aed979c46960604ffec157480e4fab
parent995f4b6ecb504e1648816b0841e90efb814f25c7
Bug 10667: Allow authentication with cardnumber for ILS-DI

Test authentication via ILS-DI:
- with userid and password
- with userid and wrong password
- with cardnumber and password
- with cardnumber and wrong password
...

Before the patch only userid will authenticate the patron.
After the patch was applied, userid and cardnumber will work.

To test:
- Run t/db_dependent/ILSDI_Services.t - all tests should pass.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
No koha-qa errors

Test:
Enable ISL-DI
access opac with /cgi-bin/koha/ilsdi.pl?service=AuthenticatePatron&username=XXX&password=YYY
With userid/cardnumber & password returns borrowernumber
With userid/cardnumber & wrong password returns PatronNotFound
Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/ILSDI/Services.pm
koha-tmpl/opac-tmpl/prog/en/modules/ilsdi.tt
t/db_dependent/ILSDI_Services.t