From 88f4b828f57b7ff1defe5017f62af71075994c74 Mon Sep 17 00:00:00 2001 From: Alex Sassmannshausen Date: Wed, 12 Oct 2016 14:30:36 +0200 Subject: [PATCH] Bug 5670: [QA Followup] Display HouseboundRole info. * Koha/Patron.pm (housebound_role): New method. * koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt: Add section for HouseboundRole information * members/moremember.pl: Pass HouseboundRole info to template. Signed-off-by: Claire Gravely Signed-off-by: Kyle M Hall --- .../prog/en/modules/members/moremember.tt | 26 +++++++++++++++++++ members/moremember.pl | 2 ++ 2 files changed, 28 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index da0deca674..8e92c564a3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -348,6 +348,32 @@ function validate1(date) { [% END %] [% END %] +[% IF ( HouseboundModule ) %] +
+

Housebound roles

+
+
    +
  1. + Chooser: + [% IF ( housebound_role.housebound_chooser == 1 ) %] + Yes + [% ELSE %] + No + [% END %] +
  2. +
  3. + Deliverer: + [% IF ( housebound_role.housebound_deliverer == 1 ) %] + Yes + [% ELSE %] + No + [% END %] +
  4. +
+
+
+[% END %] + [% IF ( EnhancedMessagingPreferences ) %]

Patron messaging preferences

diff --git a/members/moremember.pl b/members/moremember.pl index 2c8bbc7d31..6c9c73c9a6 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -339,6 +339,8 @@ $template->param( is_child => ($category_type eq 'C'), samebranch => $samebranch, quickslip => $quickslip, + housebound_role => $patron->housebound_role, + HouseboundModule => C4::Context->preference('HouseboundModule'), privacy_guarantor_checkouts => $data->{'privacy_guarantor_checkouts'}, activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''), AutoResumeSuspendedHolds => C4::Context->preference('AutoResumeSuspendedHolds'), -- 2.39.5