Lines 420-426
sub build_patron_status {
Link Here
|
420 |
|
420 |
|
421 |
$resp .= patron_status_string($patron); |
421 |
$resp .= patron_status_string($patron); |
422 |
$resp .= $lang . timestamp(); |
422 |
$resp .= $lang . timestamp(); |
423 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name ); |
423 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name( $server->{account}->{ae_field_template} ) ); |
424 |
|
424 |
|
425 |
# while the patron ID we got from the SC is valid, let's |
425 |
# while the patron ID we got from the SC is valid, let's |
426 |
# use the one returned from the ILS, just in case... |
426 |
# use the one returned from the ILS, just in case... |
Lines 948-954
sub handle_patron_info {
Link Here
|
948 |
# while the patron ID we got from the SC is valid, let's |
948 |
# while the patron ID we got from the SC is valid, let's |
949 |
# use the one returned from the ILS, just in case... |
949 |
# use the one returned from the ILS, just in case... |
950 |
$resp .= add_field( FID_PATRON_ID, $patron->id ); |
950 |
$resp .= add_field( FID_PATRON_ID, $patron->id ); |
951 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name ); |
951 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name( $server->{account}->{ae_field_template} ) ); |
952 |
|
952 |
|
953 |
# TODO: add code for the fields |
953 |
# TODO: add code for the fields |
954 |
# hold items limit |
954 |
# hold items limit |
Lines 1243-1249
sub handle_patron_enable {
Link Here
|
1243 |
$resp .= $patron->language . timestamp(); |
1243 |
$resp .= $patron->language . timestamp(); |
1244 |
|
1244 |
|
1245 |
$resp .= add_field( FID_PATRON_ID, $patron->id ); |
1245 |
$resp .= add_field( FID_PATRON_ID, $patron->id ); |
1246 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name ); |
1246 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name( $server->{account}->{ae_field_template} ) ); |
1247 |
if ( defined($patron_pwd) ) { |
1247 |
if ( defined($patron_pwd) ) { |
1248 |
$resp .= add_field( FID_VALID_PATRON_PWD, sipbool( $patron->check_password($patron_pwd) ) ); |
1248 |
$resp .= add_field( FID_VALID_PATRON_PWD, sipbool( $patron->check_password($patron_pwd) ) ); |
1249 |
} |
1249 |
} |