Patch from Thomas Berezansky to support patron priv expiration information in SIP2
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Apr 2011 18:36:38 +0000 (18:36 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Apr 2011 18:36:38 +0000 (18:36 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@19998 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm

index c792d2a..607dce7 100644 (file)
@@ -240,6 +240,13 @@ sub sip_birthdate {
        return $dob;
 }
 
+sub sip_expire {
+    my $self = shift;
+    my $expire = OpenILS::SIP->format_date($self->{user}->expire_date);
+    syslog('LOG_DEBUG', "OILS: Patron Expire = $expire");
+    return $expire;
+}
+
 sub ptype {
     my $self = shift;