Bug 7324: Show alternate email as mailto: / hide labels when field is empty
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Tue, 6 Dec 2011 17:45:33 +0000 (18:45 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 2 Jan 2012 22:46:14 +0000 (23:46 +0100)
commit6bc53f2dc927af0dabc9565102be2d17d6f4269e
tree8424d92b481fe9b8afe4eb12c30780fa9040499f
parent8529c5253fab59d2d11ba1ea883c450b75676e5c
Bug 7324: Show alternate email as mailto: / hide labels when field is empty

UPDATE 2011-12-15
Fixed wrong div that broke the patron account display.
Thank you Paul for catching this!

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

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Verified tests 1-3, looks good to me.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt