use new column rfid_sid for card serial numbers
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 27 Mar 2009 16:52:05 +0000 (16:52 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 27 Mar 2009 16:52:05 +0000 (16:52 +0000)
(as opposed to cardnumber which is data *ON* card)

lib/LDAP/Koha.pm

index b88475d..98c37dd 100644 (file)
@@ -22,7 +22,7 @@ our $database = 'koha';
 our $user     = 'unconfigured-user';
 our $passwd   = 'unconfigured-password';
 
-our $max_results = 3; # 100; # FIXME
+our $max_results = 10; # 100; # FIXME
 
 require 'config.pl' if -e 'config.pl';
 
@@ -40,7 +40,7 @@ my $sql_select = q{
 
                -- SAFEQ specific mappings from UMgr-LDAP.conf
                surname                                         as displayName,
-               cardnumber                                      as pager,
+               rfid_sid                                        as pager,
                email                                           as mail,
                categorycode                                    as organizationalUnit,
                borrowernumber                                  as objectGUID,
@@ -54,7 +54,7 @@ my $ldap_sql_mapping = {
        'objectGUID'    => 'borrowernumber',
        'displayName'   => 'surname',
        'sn'            => 'surname',
-       'pager'         => 'cardnumber',
+       'pager'         => 'rfid_sid',
 };
 
 # attributes which are same for whole set, but somehow