From d9f17f9373a907fe7b9f22d81776b722f4d9779c Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 17 Feb 2022 15:59:33 +0000 Subject: [PATCH] Bug 30121: Add relationship to borrwers.json This patch addes the realtionship field to borrowers.json and therefore the various borrower related system preferences. - BorrowerUnwantedField - BorrowerMandatoryField - PatronDuplicateMatchingAddFields - PatronQuickAddFields - PatronSelfModificationBorrowerUnwantedField - PatronSelfModificationMandatoryField - PatronSelfRegistrationBorrowerMandatoryField - PatronSelfRegistrationBorrowerUnwantedField To test: 1. Apply patch 2. Test adding and removing the relationship field from the various system preferences listed above, making sure it works correctly for each. Note: I belive for the self registration prefs that contactname, contactfirstname, and relationship should be excluded as choices. If so, I can provide a follow-up to exclude each of them. Signed-off-by: Fridolin Somers --- .../prog/en/modules/admin/preferences/borrowers.json | 1 + .../prog/en/modules/members/memberentrygen.tt | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/borrowers.json b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/borrowers.json index a15bcaacf9..b77b6ad16c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/borrowers.json +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/borrowers.json @@ -36,6 +36,7 @@ "categorycode": "categorycode", "contactname": "contactname", "contactfirstname": "contactfirstname", + "relationship": "relationship", "borrowernotes": "borrowernotes", "sex": "sex", "password": "password", diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index a8a9ad3f7e..f3edd4fc10 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -632,7 +632,11 @@ legend:hover { [% UNLESS norelationship %] [% IF possible_relationships %]
  • - + [% IF mandatoryrelationship %] + + [% ELSE %] + + [% END %] + [% IF mandatoryrelationship %] + Required + [% END %]
  • [% END #/IF possible_relationships %] [% END # /UNLESS norelationship %] -- 2.35.1