@@ -, +, @@ - 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 %]
+ [% END # hide fieldset %] [% IF ( showguarantor ) %] [% END %] -[% UNLESS noaddress && nocity && nostate %] + +[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] -[% END # nostreet && nocity etc group%] +[% END # hide fieldset %] + +[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %] - +[%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 %] - [% 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 %] - [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %] + [% END # hide fieldset %] [% IF ( I ) %] @@ -924,6 +929,8 @@ [% END %] + + [% UNLESS nodateenrolled && nodateexpiry && noopacnote && noborrowernotes %] + [% END # hide fieldset %] + + [% UNLESS nouserid && nopassword %] + [%END # hide fieldset %] + [% UNLESS ( opadd ) %]