From 2e011399a7e18a80931a443dce8b7bf7c970756f Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Mon, 25 Feb 2013 15:20:43 -0500 Subject: [PATCH] more tweaks based on feedback from CW/MARS Thanks! This restores the original address scheme to the patron display summary, where the mailing address is displayed under the patron name, if set and valid, otherwise the billing address is displayed, if set and valid. No address is displayed if there is no valid address set for mailing or billing. This also adds a potential 'Account has EXPIRED' message to the alerts column. Signed-off-by: Jason Etheridge --- Open-ILS/src/templates/opac/PatronSummary.tt2 | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/opac/PatronSummary.tt2 b/Open-ILS/src/templates/opac/PatronSummary.tt2 index 9832bdd25b..ccae83fc56 100644 --- a/Open-ILS/src/templates/opac/PatronSummary.tt2 +++ b/Open-ILS/src/templates/opac/PatronSummary.tt2 @@ -17,11 +17,29 @@ ctx.user.suffix ) | html %]
+ [% IF ctx.addr %] + + [% ctx.addr.street1 | html %]
+ [% ctx.addr.street2 | html %]
+ [% ctx.addr.city | html %], + [% ctx.addr.state | html %] + [% ctx.addr.post_code | html %] +

+ [% END %] + +
+
[% IF ctx.barred %] [% l('Patron is BARRED') | html %]
[% END %] + [% expire_date = ctx.parse_datetime(ctx.user.expire_date); %] + [% IF (date.format(expire_date, '%s') < date.now) %] + + [% l('Account has EXPIRED') | html %] +
+ [% END %] [% IF ctx.holds_count.ready > 0 %] [% IF ctx.holds_count.ready == 1 %] @@ -36,14 +54,15 @@ [% ctx.user.alert_message | html %]
[% END %] + [% IF ctx.user.notes.size > 0 %] + [% IF ctx.user.notes.size == 1 %] [% l('1 note') | html %] [% ELSIF ctx.user.notes.size > 1 %] [% l('[_1] notes', ctx.user.notes.size) | html %] [% END %] -
-
-
+
+ [% END %] [% FOREACH p IN ctx.user.standing_penalties %] [% p.standing_penalty.label | html %] -- 2.11.0