Lines 435-441
sub build_patron_status {
Link Here
|
435 |
|
435 |
|
436 |
$resp .= patron_status_string($patron); |
436 |
$resp .= patron_status_string($patron); |
437 |
$resp .= $lang . timestamp(); |
437 |
$resp .= $lang . timestamp(); |
438 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name( $server->{account}->{ae_field_template} ), $server ); |
438 |
if ( defined $server->{account}->{ae_field_template} ) { |
|
|
439 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->format( $server->{account}->{ae_field_template}, $server ) ); |
440 |
} else { |
441 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name, $server ); |
442 |
} |
443 |
|
439 |
|
444 |
|
440 |
# while the patron ID we got from the SC is valid, let's |
445 |
# while the patron ID we got from the SC is valid, let's |
441 |
# use the one returned from the ILS, just in case... |
446 |
# use the one returned from the ILS, just in case... |
Lines 458-463
sub build_patron_status {
Link Here
|
458 |
if ( $server->{account}->{send_patron_home_library_in_af} ); |
463 |
if ( $server->{account}->{send_patron_home_library_in_af} ); |
459 |
$resp .= maybe_add( FID_PRINT_LINE, $patron->print_line, $server ); |
464 |
$resp .= maybe_add( FID_PRINT_LINE, $patron->print_line, $server ); |
460 |
|
465 |
|
|
|
466 |
$resp .= $patron->build_custom_field_string( $server ); |
461 |
$resp .= $patron->build_patron_attributes_string( $server ); |
467 |
$resp .= $patron->build_patron_attributes_string( $server ); |
462 |
|
468 |
|
463 |
} else { |
469 |
} else { |
Lines 971-977
sub handle_patron_info {
Link Here
|
971 |
# while the patron ID we got from the SC is valid, let's |
977 |
# while the patron ID we got from the SC is valid, let's |
972 |
# use the one returned from the ILS, just in case... |
978 |
# use the one returned from the ILS, just in case... |
973 |
$resp .= add_field( FID_PATRON_ID, $patron->id, $server ); |
979 |
$resp .= add_field( FID_PATRON_ID, $patron->id, $server ); |
974 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name( $server->{account}->{ae_field_template} ), $server ); |
980 |
if ( defined $server->{account}->{ae_field_template} ) { |
|
|
981 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->format( $server->{account}->{ae_field_template} ), $server ); |
982 |
} else { |
983 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name, $server ); |
984 |
} |
975 |
|
985 |
|
976 |
# TODO: add code for the fields |
986 |
# TODO: add code for the fields |
977 |
# hold items limit |
987 |
# hold items limit |
Lines 1026-1031
sub handle_patron_info {
Link Here
|
1026 |
} |
1036 |
} |
1027 |
$resp .= maybe_add( FID_PRINT_LINE, $patron->print_line, $server ); |
1037 |
$resp .= maybe_add( FID_PRINT_LINE, $patron->print_line, $server ); |
1028 |
|
1038 |
|
|
|
1039 |
$resp .= $patron->build_custom_field_string( $server ); |
1029 |
$resp .= $patron->build_patron_attributes_string( $server ); |
1040 |
$resp .= $patron->build_patron_attributes_string( $server ); |
1030 |
} else { |
1041 |
} else { |
1031 |
|
1042 |
|
Lines 1274-1280
sub handle_patron_enable {
Link Here
|
1274 |
$resp .= $patron->language . timestamp(); |
1285 |
$resp .= $patron->language . timestamp(); |
1275 |
|
1286 |
|
1276 |
$resp .= add_field( FID_PATRON_ID, $patron->id, $server ); |
1287 |
$resp .= add_field( FID_PATRON_ID, $patron->id, $server ); |
1277 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name( $server->{account}->{ae_field_template} ), $server ); |
1288 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->format( $server->{account}->{ae_field_template} ), $server ); |
1278 |
if ( defined($patron_pwd) ) { |
1289 |
if ( defined($patron_pwd) ) { |
1279 |
$resp .= add_field( FID_VALID_PATRON_PWD, sipbool( $patron->check_password($patron_pwd) ), $server ); |
1290 |
$resp .= add_field( FID_VALID_PATRON_PWD, sipbool( $patron->check_password($patron_pwd) ), $server ); |
1280 |
} |
1291 |
} |