Lines 422-428
sub build_patron_status {
Link Here
|
422 |
|
422 |
|
423 |
$resp .= patron_status_string($patron); |
423 |
$resp .= patron_status_string($patron); |
424 |
$resp .= $lang . timestamp(); |
424 |
$resp .= $lang . timestamp(); |
425 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name( $server->{account}->{ae_field_template} ) ); |
425 |
if ( defined $server->{account}->{ae_field_template} ) { |
|
|
426 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->format( $server->{account}->{ae_field_template} ) ); |
427 |
} else { |
428 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name ); |
429 |
} |
430 |
|
426 |
|
431 |
|
427 |
# while the patron ID we got from the SC is valid, let's |
432 |
# while the patron ID we got from the SC is valid, let's |
428 |
# use the one returned from the ILS, just in case... |
433 |
# use the one returned from the ILS, just in case... |
Lines 445-450
sub build_patron_status {
Link Here
|
445 |
if ( $server->{account}->{send_patron_home_library_in_af} ); |
450 |
if ( $server->{account}->{send_patron_home_library_in_af} ); |
446 |
$resp .= maybe_add( FID_PRINT_LINE, $patron->print_line ); |
451 |
$resp .= maybe_add( FID_PRINT_LINE, $patron->print_line ); |
447 |
|
452 |
|
|
|
453 |
$resp .= $patron->build_custom_field_string( $server ); |
448 |
$resp .= $patron->build_patron_attributes_string( $server ); |
454 |
$resp .= $patron->build_patron_attributes_string( $server ); |
449 |
|
455 |
|
450 |
} else { |
456 |
} else { |
Lines 957-963
sub handle_patron_info {
Link Here
|
957 |
# while the patron ID we got from the SC is valid, let's |
963 |
# while the patron ID we got from the SC is valid, let's |
958 |
# use the one returned from the ILS, just in case... |
964 |
# use the one returned from the ILS, just in case... |
959 |
$resp .= add_field( FID_PATRON_ID, $patron->id ); |
965 |
$resp .= add_field( FID_PATRON_ID, $patron->id ); |
960 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name( $server->{account}->{ae_field_template} ) ); |
966 |
if ( defined $server->{account}->{ae_field_template} ) { |
|
|
967 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->format( $server->{account}->{ae_field_template} ) ); |
968 |
} else { |
969 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name ); |
970 |
} |
961 |
|
971 |
|
962 |
# TODO: add code for the fields |
972 |
# TODO: add code for the fields |
963 |
# hold items limit |
973 |
# hold items limit |
Lines 1012-1017
sub handle_patron_info {
Link Here
|
1012 |
} |
1022 |
} |
1013 |
$resp .= maybe_add( FID_PRINT_LINE, $patron->print_line ); |
1023 |
$resp .= maybe_add( FID_PRINT_LINE, $patron->print_line ); |
1014 |
|
1024 |
|
|
|
1025 |
$resp .= $patron->build_custom_field_string( $server ); |
1015 |
$resp .= $patron->build_patron_attributes_string( $server ); |
1026 |
$resp .= $patron->build_patron_attributes_string( $server ); |
1016 |
} else { |
1027 |
} else { |
1017 |
|
1028 |
|
Lines 1260-1266
sub handle_patron_enable {
Link Here
|
1260 |
$resp .= $patron->language . timestamp(); |
1271 |
$resp .= $patron->language . timestamp(); |
1261 |
|
1272 |
|
1262 |
$resp .= add_field( FID_PATRON_ID, $patron->id ); |
1273 |
$resp .= add_field( FID_PATRON_ID, $patron->id ); |
1263 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name( $server->{account}->{ae_field_template} ) ); |
1274 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->format( $server->{account}->{ae_field_template} ) ); |
1264 |
if ( defined($patron_pwd) ) { |
1275 |
if ( defined($patron_pwd) ) { |
1265 |
$resp .= add_field( FID_VALID_PATRON_PWD, sipbool( $patron->check_password($patron_pwd) ) ); |
1276 |
$resp .= add_field( FID_VALID_PATRON_PWD, sipbool( $patron->check_password($patron_pwd) ) ); |
1266 |
} |
1277 |
} |