From: Dobrica Pavlinusic Date: Fri, 27 Mar 2009 16:52:05 +0000 (+0000) Subject: use new column rfid_sid for card serial numbers X-Git-Url: http://git.rot13.org/?p=virtual-ldap;a=commitdiff_plain;h=a5c8a247231e4532acffa23cc3d794af653dafa4;ds=sidebyside use new column rfid_sid for card serial numbers (as opposed to cardnumber which is data *ON* card) --- diff --git a/lib/LDAP/Koha.pm b/lib/LDAP/Koha.pm index b88475d..98c37dd 100644 --- a/lib/LDAP/Koha.pm +++ b/lib/LDAP/Koha.pm @@ -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