From 83c3b10a8a46604eb932d7961ce1824dafc397d7 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! All the line breaks should be preserved. Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../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 634d24cdb7..c08564005b 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 | html_line_break %] +
  6. +
  7. + Subjects:
    + [% housebound_profile.fav_subjects | html | html_line_break %] +
  8. +
  9. + Authors:
    + [% housebound_profile.fav_authors | html | html_line_break %] +
  10. +
  11. + Referral:
    + [% housebound_profile.referral | html | html_line_break %] +
  12. +
  13. + Notes:
    + [% housebound_profile.notes | html | html_line_break %] +
  14. +
+
+[% END %] +