Bugzilla – Attachment 123334 Details for
Bug 26544
Make housebound module show delivery preferences when scheduling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26544: Add housebound details to delivery page
Bug-26544-Add-housebound-details-to-delivery-page.patch (text/plain), 5.52 KB, created by
Andrew Fuerste-Henry
on 2021-07-30 14:56:48 UTC
(
hide
)
Description:
Bug 26544: Add housebound details to delivery page
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2021-07-30 14:56:48 UTC
Size:
5.52 KB
patch
obsolete
>From 7207b5fd5302d217f6ddb6ed8b3f0ba48fd19658 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >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 <andrew@bywatersolutions.com> >--- > .../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' %] >+ <div class="rows"> >+ <ol> >+ <li> >+ <span class="label" class="required"> Delivery day:</span> >+ [% 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 %] >+ </li> >+ <li> >+ <span class="label" class="required">Frequency:</span> >+ [% AuthorisedValues.GetByCode( 'HSBND_FREQ', housebound_profile.frequency, 0 ) || housebound_profile.frequency | html %] >+ </li> >+ <li> >+ <span class="label">Material:</span> >+ [% housebound_profile.fav_itemtypes | html %] >+ </li> >+ <li> >+ <span class="label">Subjects:</span> >+ [% housebound_profile.fav_subjects | html %] >+ </li> >+ <li> >+ <span class="label">Authors:</span> >+ [% housebound_profile.fav_authors | html %] >+ </li> >+ <li> >+ <span class="label">Referral:</span> >+ [% housebound_profile.referral | html %] >+ </li> >+ <li> >+ <span class="label">Notes:</span> >+ [% housebound_profile.notes | html %] >+ </li> >+ </ol> >+ </div> >+[% END %] >+ > <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> > <ol> > <li> >@@ -329,61 +381,14 @@ > </a> > </fieldset> > </form> >- >+ <h3>Housebound details</h3> >+ [% PROCESS 'homebound-details' %] > <!-- Display a housebound_profile --> > [% ELSIF ( housebound_profile ) %] >- <div class="rows"> >- <ol> >- <li> >- <span class="label" class="required"> Delivery day:</span> >- [% 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 %] >- </li> >- <li> >- <span class="label" class="required">Frequency:</span> >- [% AuthorisedValues.GetByCode( 'HSBND_FREQ', housebound_profile.frequency, 0 ) || housebound_profile.frequency | html %] >- </li> >- <li> >- <span class="label">Material:</span> >- [% housebound_profile.fav_itemtypes | html %] >- </li> >- <li> >- <span class="label">Subjects:</span> >- [% housebound_profile.fav_subjects | html %] >- </li> >- <li> >- <span class="label">Authors:</span> >- [% housebound_profile.fav_authors | html %] >- </li> >- <li> >- <span class="label">Referral:</span> >- [% housebound_profile.referral | html %] >- </li> >- <li> >- <span class="label">Notes:</span> >- [% housebound_profile.notes | html %] >- </li> >- </ol> >+ [% PROCESS 'homebound-details' %] > <div class="action"> > <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber | html %]&method=update_or_create"><i class="fa fa-pencil"></i> Edit</a> > </div> >- </div> > <div> > <h3>Deliveries</h3> > [% housebound_visits = housebound_profile.housebound_visits %] >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26544
:
123290
|
123334
|
124432
|
125322