[Koha-patches] [PATCH] bug_8039: Try userid if cardnumber borrower search fails in SIP
Srdjan
srdjan at catalyst.net.nz
Fri May 25 04:43:13 CEST 2012
---
C4/SIP/ILS/Patron.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/C4/SIP/ILS/Patron.pm b/C4/SIP/ILS/Patron.pm
index 99fd6e7..ccb08d8 100644
--- a/C4/SIP/ILS/Patron.pm
+++ b/C4/SIP/ILS/Patron.pm
@@ -37,7 +37,7 @@ sub new {
my ($class, $patron_id) = @_;
my $type = ref($class) || $class;
my $self;
- $kp = GetMember(cardnumber=>$patron_id);
+ $kp = GetMember(cardnumber=>$patron_id) || GetMember(userid=>$patron_id);
$debug and warn "new Patron (GetMember): " . Dumper($kp);
unless (defined $kp) {
syslog("LOG_DEBUG", "new ILS::Patron(%s): no such patron", $patron_id);
--
1.7.9.5
More information about the Koha-patches
mailing list