Bugzilla – Attachment 6659 Details for
Bug 7334
Improve 'No address stored' and similar messages in patron account
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7334: Improve 'no address stored' and similar messages in patron account
Bug-7334-Improve-no-address-stored-and-similar-mes.patch (text/plain), 4.53 KB, created by
Katrin Fischer
on 2011-12-08 06:22:22 UTC
(
hide
)
Description:
Bug 7334: Improve 'no address stored' and similar messages in patron account
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2011-12-08 06:22:22 UTC
Size:
4.53 KB
patch
obsolete
>From c367c4328b91ebda209252b05176d937468a49c0 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Thu, 8 Dec 2011 07:19:05 +0100 >Subject: [PATCH] Bug 7334: Improve 'no address stored' and similar messages > in patron account > >- 'no address stored' is now only displayed when first and second line >of the address are empty >- added id's to all 3 possible messages so people can change or hide them > >To test: >1) Check 'no address stored' shows only up when address fields are both empty >2) Check address is still correctly displayed > >Note: make sure you check the 'checkouts' and other tabs, because there >are 2 different include files used here. >--- > .../intranet-tmpl/prog/en/includes/circ-menu.inc | 20 ++++++++++-------- > .../intranet-tmpl/prog/en/includes/circ-menu.tt | 21 +++++++++++-------- > 2 files changed, 23 insertions(+), 18 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >index 6556562..da3d018 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >@@ -12,19 +12,21 @@ > <li><img src="/intranet-tmpl/prog/img/patron-blank.png" alt="[% firstname %] [% surname %] ([% cardnumber %])" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li> > [% END %] > [% END %] >- <li>[% IF ( address ) %] >- [% address %] >+ [% IF ( address or address2 ) %] >+ [% IF ( address ) %] >+ <li>[% address %]</li> >+ [% END %] >+ [% IF ( address2 ) %] >+ <li>[% address2 %]</li> >+ [% END %] > [% ELSE %] >- <span class="empty">No address stored.</span> >- [% END %]</li> >- [% IF ( address2 ) %] >- <li>[% address2 %]</li> >- [% END %]<li> >+ <li><span class="empty" id="noadressstored">No address stored.</span></li> >+ [% END %] > [% IF ( city ) %] > [% city %][% IF ( state ) %], [% state %][% END %] > [% zipcode %][% IF ( country ) %], [% country %][% END %] > [% ELSE %] >- <span class="empty">No city stored.</span> >+ <span class="empty" id="nocitystored">No city stored.</span> > [% END %]</li> > <li>[% IF ( phone ) %] > [% phone %] >@@ -35,7 +37,7 @@ > [% IF ( phonepro ) %] > [% phonepro %] > [% ELSE %] >- <span class="empty">No phone stored.</span> >+ <span class="empty" id="nophonestored">No phone stored.</span> > [% END %] > [% END %] > [% END %]</li> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.tt b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.tt >index fe04b63..451cd98 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.tt >@@ -14,19 +14,22 @@ in the global namespace %] > <li><img src="/intranet-tmpl/prog/img/patron-blank.png" alt="[% borrower.firstname %] [% borrower.surname %] ([% borrower.cardnumber %])" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li> > [% END %] > [% END %] >- <li>[% IF borrower.address %] >- [% borrower.address %] >+ [% IF ( borrower.address or borrower.address2 ) %] >+ [% IF ( borrower.address ) %] >+ <li>[% borrower.address %]</li> >+ [% END %] >+ [% IF ( borrower.address2 ) %] >+ <li>[% borrower.address2 %]</li> >+ [% END %] > [% ELSE %] >- <span class="empty">No address stored.</span> >- [% END %]</li> >- [% IF borrower.address2 %] >- <li>[% borrower.address2 %]</li> >- [% END %]<li> >+ <li><span class="empty" id="noaddressstored">No address stored.</span></li> >+ [% END %] >+ <li> > [% IF borrower.city %] > [% borrower.city %][% IF borrower.state %], [% borrower.state %][% END %] > [% borrower.zipcode %][% IF ( borrower.country ) %], [% borrower.country %][% END %] > [% ELSE %] >- <span class="empty">No city stored.</span> >+ <span class="empty" id="nocitystored">No city stored.</span> > [% END %]</li> > <li>[% IF borrower.phone %] > [% borrower.phone %] >@@ -37,7 +40,7 @@ in the global namespace %] > [% IF borrower.phonepro %] > [% borrower.phonepro %] > [% ELSE %] >- <span class="empty">No phone stored.</span> >+ <span class="empty" id="nophonestored">No phone stored.</span> > [% END %] > [% END %] > [% END %]</li> >-- >1.7.5.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7334
:
6658
|
6659
|
6662