Notes display in the 'Account Summary' box on the first page of
my-account.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
my $limit = $self->cgi->param('limit') || 0;
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({
+ usr => $self->ctx->{user}->id,
+ pub => 't'
+ })
+ );
return $self->prepare_fines($limit, $offset) || Apache2::Const::OK;
}
</tr>
</table>
</div>
+
+ [% IF ctx.user.notes.0 %]
+ <div class="acct_sum_row">
+ <table>
+ [% FOR note IN ctx.user.notes %]
+ <tr><td class='public-note-title'>[% l('* [_1]: ', note.title) | html %]</td><td>[% note.value | html %]</td></tr>
+ [% END %]
+ </table>
+ </div>
+ [% END %]
</div>
</div>
<div class="clear-both"></div>