fine_items => ['Computer Time'],
recall_items => [],
unavail_holds => [],
+ inet => 1,
},
miker => {
name => "Mike Rylander",
fine_items => [],
recall_items => [],
unavail_holds => [],
+ inet => 0,
},
);
return $self;
}
+
+sub inet_privileges {
+ my $self = shift;
+
+ return $self->{inet} ? 'Y' : 'N';
+}
+
#
# Messages
#
FID_SECURITY_INHIBIT FID_RECALL_DATE
FID_MEDIA_TYPE FID_SORT_BIN FID_HOLD_PICKUP_DATE
FID_LOGIN_UID FID_LOGIN_PWD FID_LOCATION_CODE
- FID_VALID_PATRON_PWD FID_PATRON_BIRTHDATE FID_PATRON_CLASS
+ FID_VALID_PATRON_PWD
+
+ FID_PATRON_BIRTHDATE FID_PATRON_CLASS FID_INET_PROFILE
+
SC_STATUS_OK SC_STATUS_PAPER SC_STATUS_SHUTDOWN
SIP_DATETIME);
FID_LOGIN_UID FID_LOGIN_PWD
FID_LOCATION_CODE
FID_VALID_PATRON_PWD
+
FID_PATRON_BIRTHDATE
- FID_PATRON_CLASS)],
+ FID_PATRON_CLASS
+ FID_INET_PROFILE)],
SC_status => [qw(SC_STATUS_OK SC_STATUS_PAPER
SC_STATUS_SHUTDOWN)],
FID_LOGIN_UID FID_LOGIN_PWD
FID_LOCATION_CODE FID_VALID_PATRON_PWD
FID_PATRON_BIRTHDATE FID_PATRON_CLASS
+ FID_INET_PROFILE
SC_STATUS_OK SC_STATUS_PAPER SC_STATUS_SHUTDOWN
SIP_DATETIME
)]);
# SIP Extensions used by Envisionware Terminals
FID_PATRON_BIRTHDATE => 'PB',
FID_PATRON_CLASS => 'PC',
+
+ # SIP Extension for reporting patron internet privileges
+ FID_INET_PROFILE => 'PI',
};
#
$resp .= maybe_add(FID_CURRENCY, $patron->currency);
$resp .= maybe_add(FID_FEE_AMT, $patron->fee_amount);
}
+
$resp .= maybe_add(FID_SCREEN_MSG, $patron->screen_msg);
$resp .= maybe_add(FID_PRINT_LINE, $patron->print_line);
} else {
$resp .= maybe_add(FID_PATRON_BIRTHDATE, $patron->sip_birthdate);
$resp .= maybe_add(FID_PATRON_CLASS, $patron->ptype);
+ # Custom protocol extension to report patron internet privileges
+ $resp .= maybe_add(FID_INET_PROFILE, $patron->inet_privileges);
} else {
# Invalid patron ID
# He has no privileges, no items associated with him,
use SIPtest qw($datepat $textpat $instid $currency $user_barcode $user_pin
$user_fullname $user_homeaddr $user_email $user_phone
- $user_birthday $user_ptype);
+ $user_birthday $user_ptype $user_inet);
# This is a template test case for the Patron Information
# message handling. Because of the large number of fields,
{ field => FID_PATRON_CLASS,
pat => qr/^$user_ptype$/o,
required => 1, },
- ], };
+ { field => FID_INET_PROFILE,
+ pat => qr/^$user_inet$/,
+ required => 1, },
+ ], };
my @tests = (
$SIPtest::login_test,
$instid $currency $server $username $password
$user_barcode $user_pin $user_fullname $user_homeaddr
$user_email $user_phone $user_birthday $user_ptype
+ $user_inet
$item_barcode $item_title $item_owner
$item2_barcode $item2_title $item2_owner);
#use Data::Dumper;
our $user_phone = '\(519\) 555 1234';
our $user_birthday= '19640925';
our $user_ptype = 'A';
+our $user_inet = 'Y';
# Valid item barcode and corresponding title
our $item_barcode = '1565921879';