[% USE Asset %] [% USE Koha %] [% USE KohaDates %] [% USE AuthorisedValues %] [% USE Branches %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Housebound › Details for [% INCLUDE 'patron-title.inc' no_html = 1 %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'patron-search.inc' %]
[% INCLUDE 'members-toolbar.inc' %]

Housebound details for [% INCLUDE 'patron-title.inc' %]

[% FOR m IN messages %]
[% SWITCH m.code %] [% CASE 'error_on_profile_store' %] An error occurred whilst updating this housebound profile. [% CASE 'error_on_profile_create' %] An error occurred whilst creating this housebound profile. [% CASE 'error_on_visit_load' %] An error occurred whilst loading the housebound visit. [% CASE 'error_on_visit_delete' %] An error occurred whilst deleting a housebound visit. [% CASE 'error_on_visit_store' %] An error occurred whilst updating a housebound visit. [% CASE 'error_on_visit_create' %] An error occurred whilst creating a new housebound visit. [% CASE %] [% m.code %] [% END %] Please try again later.
[% END %] [% IF ( method == 'update_or_create' ) %]

Manage housebound profile

[% IF ( housebound_profile ) %] [% ELSE %] [% END %]
Housebound details
  1. Required
  2. Required
  3. [% IF ( housebound_profile ) %] [% ELSE %] [% END %]
  4. [% IF ( housebound_profile ) %] [% ELSE %] [% END %]
  5. [% IF ( housebound_profile ) %] [% ELSE %] [% END %]
  6. [% IF ( housebound_profile ) %] [% ELSE %] [% END %]
  7. [% IF ( housebound_profile ) %] [% ELSE %] [% END %]
Cancel
[% ELSIF ( method == 'visit_update_or_create' ) %]

Manage housebound deliveries

[% IF ( visit ) %] [% ELSE %] [% END %]
Delivery details
  1. [% IF ( visit ) %] [% ELSE %] [% END %] Required
    [% INCLUDE 'date-format.inc' %]
  2. Required
  3. Required
  4. Required
Cancel
[% ELSIF ( housebound_profile ) %]
  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. Frequency: [% AuthorisedValues.GetByCode( 'HSBND_FREQ', housebound_profile.frequency, 0 ) || housebound_profile.frequency %]
  3. Material: [% housebound_profile.fav_itemtypes %]
  4. Subjects: [% housebound_profile.fav_subjects %]
  5. Authors: [% housebound_profile.fav_authors %]
  6. Referral: [% housebound_profile.referral %]
  7. Notes: [% housebound_profile.notes %]

Deliveries

[% housebound_visits = housebound_profile.housebound_visits %] [% IF housebound_visits.size > 0 %] [% FOREACH entry IN housebound_visits %] [% END %]
IDDateChooserDelivererActions
[% entry.id %] [% entry.appointment_date | $KohaDates %] ([% entry.day_segment %]) [% INCLUDE 'patron-title.inc' borrowernumber = entry.chooser.borrowernumber category_type = entry.chooser.categorycode firstname = entry.chooser.firstname surname = entry.chooser.surname othernames = entry.chooser.othernames cardnumber = entry.chooser.cardnumber invert_name = 0 %] [% INCLUDE 'patron-title.inc' borrowernumber = entry.deliverer.borrowernumber category_type = entry.deliverer.categorycode firstname = entry.deliverer.firstname surname = entry.deliverer.surname othernames = entry.deliverer.othernames cardnumber = entry.deliverer.cardnumber invert_name = 0 %] Edit Delete
[% END %]
[% END %]
[% INCLUDE 'circ-menu.inc' %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'calendar.inc' %] [% Asset.js("js/members-menu.js") %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]