Surface the edit date for patron visible notes in the Message Center.
Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
title => $aum->title,
message => $aum->message,
create_date => $aum->create_date,
+ edit_date => $aum->edit_date,
is_read => defined($aum->read_date) ? 1 : 0,
library => $aum->sending_lib->name,
};
my $offset = $self->cgi->param('offset') || 0;
$self->ctx->{search_ou} = $self->_get_search_lib();
$self->ctx->{user}->notes(
- $self->editor->search_actor_usr_note({
+ $self->editor->search_actor_usr_message({
usr => $self->ctx->{user}->id,
pub => 't'
})
<input type="checkbox" name="message_id" value="[% message.id %]"
[% html_text_attr('title', l('Select message [_1]', message.title)) %]/>
</td>
+ [% IF message.edit_date %]
+ <td>[% date.format(ctx.parse_datetime(message.edit_date), DATE_FORMAT); %]</td>
+ [% ELSE %]
<td>[% date.format(ctx.parse_datetime(message.create_date), DATE_FORMAT); %]</td>
+ [% END %]
<td>[% message.library | html %]</td>
<td><a href="[% mkurl('messages', { single => 1, message_id => message.id } ) %]">[% message.title | html %]</a></td>
</tr>
class='color_4 light_border'>[% l("Date") %]</td>
<td class='myopac_message_date'>[% date.format(ctx.parse_datetime(ctx.patron_messages.0.create_date), DATE_FORMAT); %]</td>
</tr>
+ [% IF ctx.patron_messages.0.edit_date %]
+ <tr>
+ <td width='30%'
+ class='color_4 light_border'>[% l("Edit Date") %]</td>
+ <td class='myopac_message_date'>[% date.format(ctx.parse_datetime(ctx.patron_messages.0.edit_date), DATE_FORMAT); %]</td>
+ </tr>
+ [% END %]
<tr>
<td width='30%'
class='color_4 light_border'>[% l("Library") %]</td>