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 956-962
sub handle_patron_info {
Link Here
|
956 |
# while the patron ID we got from the SC is valid, let's |
956 |
# while the patron ID we got from the SC is valid, let's |
957 |
# use the one returned from the ILS, just in case... |
957 |
# use the one returned from the ILS, just in case... |
958 |
$resp .= add_field( FID_PATRON_ID, $patron->id ); |
958 |
$resp .= add_field( FID_PATRON_ID, $patron->id ); |
959 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name ); |
959 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name( $server->{account}->{ae_field_template} ) ); |
960 |
|
960 |
|
961 |
# TODO: add code for the fields |
961 |
# TODO: add code for the fields |
962 |
# hold items limit |
962 |
# hold items limit |
Lines 1248-1254
sub handle_patron_enable {
Link Here
|
1248 |
$resp .= $patron->language . timestamp(); |
1248 |
$resp .= $patron->language . timestamp(); |
1249 |
|
1249 |
|
1250 |
$resp .= add_field( FID_PATRON_ID, $patron->id ); |
1250 |
$resp .= add_field( FID_PATRON_ID, $patron->id ); |
1251 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name ); |
1251 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name( $server->{account}->{ae_field_template} ) ); |
1252 |
if ( defined($patron_pwd) ) { |
1252 |
if ( defined($patron_pwd) ) { |
1253 |
$resp .= add_field( FID_VALID_PATRON_PWD, sipbool( $patron->check_password($patron_pwd) ) ); |
1253 |
$resp .= add_field( FID_VALID_PATRON_PWD, sipbool( $patron->check_password($patron_pwd) ) ); |
1254 |
} |
1254 |
} |