@@ -, +, @@ - fixes quoting in database update - fixes appearance/disappearance of groups with no fields to be shown - Enter database field names separated by | into systempreference BorrowerUnwantedField - Check if group/ box and heading are not displayed when all fields from that group are hidden using the system preference --- installer/data/mysql/updatedatabase.pl | 2 +- .../prog/en/modules/members/memberentrygen.tt | 28 +++++++++++++++----- 2 files changed, 22 insertions(+), 8 deletions(-) --- a/installer/data/mysql/updatedatabase.pl +++ a/installer/data/mysql/updatedatabase.pl @@ -4372,7 +4372,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $DBversion = "3.05.00.XXX"; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { - $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerUnwantedField','','Name the fields you don\'t need to store for a patron\'s account',NULL,'free')"); + $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerUnwantedField','','Name the fields you don''t need to store for a patron''s account',NULL,'free')"); print "Upgrade to $DBversion done (BorrowerUnwantedField syspref)\n"; SetVersion ($DBversion); } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -176,6 +176,7 @@ [% END %] [% IF ( step_1 ) %] +[%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %]
[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity
    @@ -304,6 +305,7 @@ [% END %]
+ [% END # hide fieldset %] [% IF ( showguarantor ) %]
@@ -386,7 +388,8 @@
[% END %] -[% UNLESS noaddress && nocity && nostate %] + +[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
Main address
    [% UNLESS nostreetnumber %] @@ -503,7 +506,9 @@ [% END %]
-[% END # nostreet && nocity etc group%] +[% END # hide fieldset %] + +[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
Contact
    [% UNLESS nophone %] @@ -582,13 +587,13 @@ [% END %]
- +[%END # hide fieldset %] [% END %] [% IF ( step_6 ) %] - [% UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %] + [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %]
Alternate address
    [% UNLESS noB_address %] @@ -700,10 +705,10 @@ [% END %]
- [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %] + [% END # hide fieldset %] [% END %] [% IF ( step_2 ) %] - [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactphone %] + [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %]
Alternate Contact
    [% UNLESS noaltcontactsurname %] @@ -816,7 +821,7 @@ [% END %]
- [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %] + [% END # hide fieldset %] [% IF ( I ) %] @@ -924,6 +929,8 @@ [% END %] + + [% UNLESS nodateenrolled && nodateexpiry && noopacnote && noborrowernotes %]
Library set-up
    [% UNLESS nodateenrolled %] @@ -1002,6 +1009,9 @@ [% END %]
+ [% END # hide fieldset %] + + [% UNLESS nouserid && nopassword %]
OPAC/Staff Login
    [% UNLESS nouserid %] @@ -1021,6 +1031,8 @@ [% IF ( mandatoryuserid ) %]Required[% END %] + [%END %] + [%UNLESS nopassword %]
  1. [% IF ( mandatorypassword ) %]
+ [%END # hide fieldset %] + [% UNLESS ( opadd ) %]
--