Bug 5670: [QA Followup] Display HouseboundRole info.
authorAlex Sassmannshausen <alex.sassmannshausen@ptfs-europe.com>
Wed, 12 Oct 2016 12:30:36 +0000 (14:30 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Oct 2016 18:18:06 +0000 (18:18 +0000)
* 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 <claire_gravely@hotmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
members/moremember.pl

index da0deca..8e92c56 100644 (file)
@@ -348,6 +348,32 @@ function validate1(date) {
 [% END %]
 [% END %]
 
+[% IF ( HouseboundModule ) %]
+<div id="houseboundroles">
+<h3>Housebound roles</h3>
+<div class="rows">
+  <ol>
+    <li>
+      <span class="label">Chooser:</span>
+      [% IF ( housebound_role.housebound_chooser == 1 ) %]
+        Yes
+      [% ELSE %]
+        No
+      [% END %]
+    </li>
+    <li>
+      <span class="label">Deliverer:</span>
+      [% IF ( housebound_role.housebound_deliverer == 1 ) %]
+        Yes
+      [% ELSE %]
+        No
+      [% END %]
+    </li>
+  </ol>
+</div>
+</div>
+[% END %]
+
 [% IF ( EnhancedMessagingPreferences ) %]
 <div id="patron-messaging-prefs" style="padding-top: 1em;">
 <h3>Patron messaging preferences</h3>
index 2c8bbc7..6c9c73c 100755 (executable)
@@ -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'),