$resp = build_patron_status($patron, $lang, $fields, $server);
- $self->write_msg($resp);
+ $self->write_msg($resp, undef, $account->{encoding});
return (PATRON_STATUS_REQ);
}
}
}
- $self->write_msg($resp);
+ $self->write_msg($resp, undef, $account->{encoding});
return(CHECKOUT);
}
$resp .= maybe_add(FID_SCREEN_MSG, $status->screen_msg);
$resp .= maybe_add(FID_PRINT_LINE, $status->print_line);
- $self->write_msg($resp);
+ $self->write_msg($resp, undef, $account->{encoding});
return(CHECKIN);
}
$resp = build_patron_status($patron, $language, $fields, $server);
- $self->write_msg($resp);
+ $self->write_msg($resp, undef, $account->{encoding});
return(BLOCK_PATRON);
}
sub handle_patron_info {
my ($self, $server) = @_;
my $ils = $server->{ils};
+ my $account = $server->{account};
my ($lang, $trans_date, $summary) = @{$self->{fixed_fields}};
my $fields = $self->{fields};
my ($inst_id, $patron_id, $terminal_pwd, $patron_pwd, $start, $end);
}
}
- $self->write_msg($resp);
+ $self->write_msg($resp, undef, $account->{encoding});
return(PATRON_INFO);
}
sub handle_end_patron_session {
my ($self, $server) = @_;
my $ils = $server->{ils};
+ my $account = $server->{account};
my $trans_date;
my $fields = $self->{fields};
my $resp = END_SESSION_RESP;
$resp .= maybe_add(FID_SCREEN_MSG, $screen_msg);
$resp .= maybe_add(FID_PRINT_LINE, $print_line);
- $self->write_msg($resp);
+ $self->write_msg($resp, undef, $account->{encoding});
return(END_PATRON_SESSION);
}
sub handle_fee_paid {
my ($self, $server) = @_;
my $ils = $server->{ils};
+ my $account = $server->{account};
my ($trans_date, $fee_type, $pay_type, $currency) = @{$self->{fixed_fields}};
my $fields = $self->{fields};
my ($fee_amt, $inst_id, $patron_id, $terminal_pwd, $patron_pwd);
$resp .= maybe_add(FID_SCREEN_MSG, $status->screen_msg);
$resp .= maybe_add(FID_PRINT_LINE, $status->print_line);
- $self->write_msg($resp);
+ $self->write_msg($resp, undef, $account->{encoding});
return(FEE_PAID);
}
sub handle_item_information {
my ($self, $server) = @_;
my $ils = $server->{ils};
+ my $account = $server->{account};
my $trans_date;
my $fields = $self->{fields};
my $resp = ITEM_INFO_RESP;
}
}
- $self->write_msg($resp);
+ $self->write_msg($resp, undef, $account->{encoding});
return(ITEM_INFORMATION);
}
sub handle_item_status_update {
my ($self, $server) = @_;
my $ils = $server->{ils};
+ my $account = $server->{account};
my ($trans_date, $item_id, $terminal_pwd, $item_props);
my $fields = $self->{fields};
my $status;
$resp .= maybe_add(FID_SCREEN_MSG, $status->screen_msg);
$resp .= maybe_add(FID_PRINT_LINE, $status->print_line);
- $self->write_msg($resp);
+ $self->write_msg($resp, undef, $account->{encoding});
return(ITEM_STATUS_UPDATE);
}
sub handle_patron_enable {
my ($self, $server) = @_;
my $ils = $server->{ils};
+ my $account = $server->{account};
my $fields = $self->{fields};
my ($trans_date, $patron_id, $terminal_pwd, $patron_pwd);
my ($status, $patron);
$resp .= add_field(FID_INST_ID, $ils->institution);
- $self->write_msg($resp);
+ $self->write_msg($resp, undef, $account->{encoding});
return(PATRON_ENABLE);
}
sub handle_hold {
my ($self, $server) = @_;
my $ils = $server->{ils};
+ my $account = $server->{account};
my ($hold_mode, $trans_date);
my ($expiry_date, $pickup_locn, $hold_type, $patron_id, $patron_pwd);
my ($item_id, $title_id, $fee_ack);
$resp .= maybe_add(FID_SCREEN_MSG, $status->screen_msg);
$resp .= maybe_add(FID_PRINT_LINE, $status->print_line);
- $self->write_msg($resp);
+ $self->write_msg($resp, undef, $account->{encoding});
return(HOLD);
}
sub handle_renew {
my ($self, $server) = @_;
my $ils = $server->{ils};
+ my $account = $server->{account};
my ($third_party, $no_block, $trans_date, $nb_due_date);
my ($patron_id, $patron_pwd, $item_id, $title_id, $item_props, $fee_ack);
my $fields = $self->{fields};
$resp .= maybe_add(FID_SCREEN_MSG, $status->screen_msg);
$resp .= maybe_add(FID_PRINT_LINE, $status->print_line);
- $self->write_msg($resp);
+ $self->write_msg($resp, undef, $account->{encoding});
return(RENEW);
}
sub handle_renew_all {
my ($self, $server) = @_;
my $ils = $server->{ils};
+ my $account = $server->{account};
my ($trans_date, $patron_id, $patron_pwd, $terminal_pwd, $fee_ack);
my $fields = $self->{fields};
my $resp = RENEW_ALL_RESP;
$resp .= maybe_add(FID_SCREEN_MSG, $status->screen_msg);
$resp .= maybe_add(FID_PRINT_LINE, $status->print_line);
- $self->write_msg($resp);
+ $self->write_msg($resp, undef, $account->{encoding});
return(RENEW_ALL);
}
# Do we want to tell the terminal its location?
- $self->write_msg($msg);
+ $self->write_msg($msg, undef, $account->{encoding});
return 1;
}