Changes the failure reason for the autorenewal to include only the desc,
Removes the textcode of the event, which shouldn't be included in a patron notice.
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>
my %user_data = (
copy => $_->target_copy(),
is_renewed => $is_renewed,
- reason => !$is_renewed ? sprintf("%s : %s", $evt->{textcode}, substr($evt->{desc}, 0, 140)) : '',
+ reason => !$is_renewed ? $evt->{desc} : '',
new_due_date => $is_renewed ? $evt->{payload}->{circ}->due_date : '',
old_due_date => !$is_renewed ? $_->due_date() : '',
);