Lines 436-442
sub build_patron_status {
Link Here
|
436 |
|
436 |
|
437 |
$resp .= patron_status_string($patron); |
437 |
$resp .= patron_status_string($patron); |
438 |
$resp .= $lang . timestamp(); |
438 |
$resp .= $lang . timestamp(); |
439 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name( $server->{account}->{ae_field_template} ), $server ); |
439 |
if ( defined $server->{account}->{ae_field_template} ) { |
|
|
440 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->format( $server->{account}->{ae_field_template}, $server ) ); |
441 |
} else { |
442 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name, $server ); |
443 |
} |
444 |
|
440 |
|
445 |
|
441 |
# while the patron ID we got from the SC is valid, let's |
446 |
# while the patron ID we got from the SC is valid, let's |
442 |
# use the one returned from the ILS, just in case... |
447 |
# use the one returned from the ILS, just in case... |
Lines 459-464
sub build_patron_status {
Link Here
|
459 |
if ( $server->{account}->{send_patron_home_library_in_af} ); |
464 |
if ( $server->{account}->{send_patron_home_library_in_af} ); |
460 |
$resp .= maybe_add( FID_PRINT_LINE, $patron->print_line, $server ); |
465 |
$resp .= maybe_add( FID_PRINT_LINE, $patron->print_line, $server ); |
461 |
|
466 |
|
|
|
467 |
$resp .= $patron->build_custom_field_string( $server ); |
462 |
$resp .= $patron->build_patron_attributes_string( $server ); |
468 |
$resp .= $patron->build_patron_attributes_string( $server ); |
463 |
|
469 |
|
464 |
} else { |
470 |
} else { |
Lines 972-978
sub handle_patron_info {
Link Here
|
972 |
# while the patron ID we got from the SC is valid, let's |
978 |
# while the patron ID we got from the SC is valid, let's |
973 |
# use the one returned from the ILS, just in case... |
979 |
# use the one returned from the ILS, just in case... |
974 |
$resp .= add_field( FID_PATRON_ID, $patron->id, $server ); |
980 |
$resp .= add_field( FID_PATRON_ID, $patron->id, $server ); |
975 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name( $server->{account}->{ae_field_template} ), $server ); |
981 |
if ( defined $server->{account}->{ae_field_template} ) { |
|
|
982 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->format( $server->{account}->{ae_field_template} ), $server ); |
983 |
} else { |
984 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name, $server ); |
985 |
} |
976 |
|
986 |
|
977 |
# TODO: add code for the fields |
987 |
# TODO: add code for the fields |
978 |
# hold items limit |
988 |
# hold items limit |
Lines 1027-1032
sub handle_patron_info {
Link Here
|
1027 |
} |
1037 |
} |
1028 |
$resp .= maybe_add( FID_PRINT_LINE, $patron->print_line, $server ); |
1038 |
$resp .= maybe_add( FID_PRINT_LINE, $patron->print_line, $server ); |
1029 |
|
1039 |
|
|
|
1040 |
$resp .= $patron->build_custom_field_string( $server ); |
1030 |
$resp .= $patron->build_patron_attributes_string( $server ); |
1041 |
$resp .= $patron->build_patron_attributes_string( $server ); |
1031 |
} else { |
1042 |
} else { |
1032 |
|
1043 |
|
Lines 1315-1321
sub handle_patron_enable {
Link Here
|
1315 |
$resp .= $patron->language . timestamp(); |
1326 |
$resp .= $patron->language . timestamp(); |
1316 |
|
1327 |
|
1317 |
$resp .= add_field( FID_PATRON_ID, $patron->id, $server ); |
1328 |
$resp .= add_field( FID_PATRON_ID, $patron->id, $server ); |
1318 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->name( $server->{account}->{ae_field_template} ), $server ); |
1329 |
$resp .= add_field( FID_PERSONAL_NAME, $patron->format( $server->{account}->{ae_field_template} ), $server ); |
1319 |
if ( defined($patron_pwd) ) { |
1330 |
if ( defined($patron_pwd) ) { |
1320 |
$resp .= add_field( FID_VALID_PATRON_PWD, sipbool( $patron->check_password($patron_pwd) ), $server ); |
1331 |
$resp .= add_field( FID_VALID_PATRON_PWD, sipbool( $patron->check_password($patron_pwd) ), $server ); |
1321 |
} |
1332 |
} |