To enable users to log in using their library card number, go to My Account and click on Update general access settings >>, there you will be able to add the number pattern (regular expression) for your library.
Please note: for card number login the link to use is: http://www.whonextguide.com/account/regex_login/