From 7207b5fd5302d217f6ddb6ed8b3f0ba48fd19658 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 29 Jul 2021 22:39:09 +0000 Subject: [PATCH] Bug 26544: Add housebound details to delivery page To test: 1. Turn on the housebound module 2. go to the housebound for a given patron /cgi-bin/koha/members/housebound.pl?borrowernumber=X 3. add some housebound details, fill out all the fields 4. Go to 'Add a new delivery' 5. No housebound details, hard to know what the patron likes or days to deliver! 6. apply patch 7. Go to 'Add a delivery' 8. See the housebound details. yay! Signed-off-by: Andrew Fuerste-Henry --- .../prog/en/modules/members/housebound.tt | 105 +++++++++--------- 1 file changed, 55 insertions(+), 50 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt index f494bd8cab..285db66a7a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt @@ -14,6 +14,58 @@ [% INCLUDE 'header.inc' %] [% INCLUDE 'patron-search.inc' %] +[% BLOCK 'homebound-details' %] +
+
    +
  1. + Delivery day: + [% hpd = housebound_profile.day %] + [% IF hpd == 'any' %] + Any + [% ELSIF hpd == 'monday' %] + Monday + [% ELSIF hpd == 'tuesday' %] + Tuesday + [% ELSIF hpd == 'wednesday' %] + Wednesday + [% ELSIF hpd == 'thursday' %] + Thursday + [% ELSIF hpd == 'friday' %] + Friday + [% ELSIF hpd == 'saturday' %] + Saturday + [% ELSIF hpd == 'sunday' %] + Sunday + [% END %] +
  2. +
  3. + Frequency: + [% AuthorisedValues.GetByCode( 'HSBND_FREQ', housebound_profile.frequency, 0 ) || housebound_profile.frequency | html %] +
  4. +
  5. + Material: + [% housebound_profile.fav_itemtypes | html %] +
  6. +
  7. + Subjects: + [% housebound_profile.fav_subjects | html %] +
  8. +
  9. + Authors: + [% housebound_profile.fav_authors | html %] +
  10. +
  11. + Referral: + [% housebound_profile.referral | html %] +
  12. +
  13. + Notes: + [% housebound_profile.notes | html %] +
  14. +
+
+[% END %] +