@@ -, +, @@ separate on patron entry form - Open an adult patron for editing. You should see no guarantor-related fields. - Open a child patron for editing. There should be two guarantor sections: "Patron guarantor" and "Non-patron guarantor." - Test that adding patron guarantors and non-patron guarantors works correctly. - Add "contactname|contactfirstname|relationship" to the BorrowerUnwantedField system preference. - Reload the child patron entry form. The non-patron guarantor section should now be hidden. --- .../prog/en/modules/members/memberentrygen.tt | 113 +++++++++++---------- 1 file changed, 60 insertions(+), 53 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -409,7 +409,7 @@ legend:hover { [% SET possible_relationships = Koha.Preference('borrowerRelationship') %]
- Guarantor information + Patron guarantor
[% FOREACH r IN relationships %] @@ -560,6 +560,65 @@ legend:hover {
+ + [% UNLESS nocontactname && nocontactfirstname && norelationship %] +
+ Non-patron guarantor +
    + [% UNLESS nocontactname %] +
  1. + [% IF ( mandatorycontactname ) %] +
  2. + [% END # /UNLESS nocontactname %] + + [% UNLESS nocontactfirstname %] +
  3. + [% IF ( mandatorycontactfirstname ) %] +
  4. + [% END # /UNLESS noaltcontactfirstname %] + + [% UNLESS norelationship %] + [% IF possible_relationships %] +
  5. + + +
  6. + [% END #/IF possible_relationships %] + [% END # /UNLESS norelationship %] +
+
+ [% END # /UNLESS nocontactname && nocontactfirstname && norelationship %] [% END # /IF show_guarantor || guarantor %] [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] @@ -570,58 +629,6 @@ legend:hover {
Contact
    - [% UNLESS nocontactname %] -
  1. - [% IF ( mandatorycontactname ) %] -
  2. - [% END # /UNLESS nocontactname %] - - [% UNLESS nocontactfirstname %] -
  3. - [% IF ( mandatorycontactfirstname ) %] -
  4. - [% END # /UNLESS noaltcontactfirstname %] - - [% UNLESS norelationship %] - [% IF possible_relationships %] -
  5. - - -
  6. - [% END #/IF possible_relationships %] - [% END # /UNLESS norelationship %] - [% UNLESS nophone %]
  7. [% IF ( mandatoryphone ) %] --