From 8929a8321b0a0945478929954ccf78e068a63a07 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 6 Dec 2011 18:45:33 +0100 Subject: [PATCH] Bug 7324: Show alternate email as mailto: / hide labels when field is empty Changes made to the patron detail tab: - alternate email shows as mailto: link - labels for following fields only show when field is filled - initials - date of birth - gender - country (alternate address) - email (alternate address) - state (alternative contact) - country (alternative contact) - phone (alternative contact) To test: 1) Add new patron with minimal data and check the labels don't show 2) Change patron to have data in changed fields and check labels show 3) Check all email addresses are shown as mailto: links now --- .../prog/en/modules/members/moremember.tt | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 454032c..68a4de9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -215,11 +215,11 @@ function validate1(date) { [% IF ( email ) %]
  • Primary email:[% email %]
  • [% END %] [% IF ( emailpro ) %]
  • Secondary email: [% emailpro %]
  • [% END %] [% END %] -
  • Initials: [% initials %]
  • -
  • Date of birth:[% dateofbirth %]
  • -
  • Gender: + [% IF ( initials ) %]
  • Initials: [% initials %]
  • [% END %] + [% IF ( dateofbirth ) %]
  • Date of birth:[% dateofbirth %]
  • [% END %] + [% IF ( sex ) %]
  • Gender: [% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %] -
  • [% END %] + [% END %][% END %] [% IF ( printethnicityline ) %]
  • Ethnicity:[% ethnicity %]
  • Ethnicity notes: [% ethnotes %]
  • @@ -369,9 +369,9 @@ function validate1(date) {
  • City: [% B_city %]
  • [% IF ( B_state ) %]
  • State: [% B_state %]
  • [% END %]
  • Zip/Postal Code: [% B_zipcode %]
  • -
  • Country: [% B_country %]
  • + [% IF ( B_country ) %]
  • Country: [% B_country %]
  • [% END %] [% IF ( B_phone ) %]
  • Phone: [% B_phone %]
  • [% END %] - [% IF ( B_email ) %]
  • Email: [% B_email %]
  • [% END %] + [% IF ( B_email ) %]
  • Email: [% email %]
  • [% END %]
    Edit
    [% END %] @@ -383,10 +383,10 @@ function validate1(date) {
  • Address: [% altcontactaddress1 %]
  • Address 2: [% altcontactaddress2 %]
  • City: [% altcontactaddress3 %]
  • - [% IF ( altcontactstate ) %]
  • State: [% altcontactstate %]
  • [% END %] + [% IF ( altcontactstate ) %]
  • State: [% altcontactstate %]
  • [% END %]
  • Zip/Postal Code: [% altcontactzipcode %]
  • -
  • Country: [% altcontactcountry %]
  • -
  • Phone: [% altcontactphone %]
  • + [% IF ( altcontactcountry ) %]
  • Country: [% altcontactcountry %]
  • [% END %] + [% IF ( altcontactphone ) %]
  • Phone: [% altcontactphone %]
  • [% END %]
    Edit
    -- 1.7.5.4