Bugzilla – Attachment 179715 Details for
Bug 37860
Holds awaiting pickup table should include the patron main contact method
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37860: Add Main contact method to Holds awaiting pickup table
Bug-37860-Add-Main-contact-method-to-Holds-awaitin.patch (text/plain), 3.35 KB, created by
Baptiste Wojtkowski (bwoj)
on 2025-03-26 08:06:30 UTC
(
hide
)
Description:
Bug 37860: Add Main contact method to Holds awaiting pickup table
Filename:
MIME Type:
Creator:
Baptiste Wojtkowski (bwoj)
Created:
2025-03-26 08:06:30 UTC
Size:
3.35 KB
patch
obsolete
>From 346c08b41b17c233e64e8080a81f60bc5cd60c35 Mon Sep 17 00:00:00 2001 >From: Brendan Lawlor <blawlor@clamsnet.org> >Date: Mon, 9 Sep 2024 15:07:31 +0000 >Subject: [PATCH] Bug 37860: Add Main contact method to Holds awaiting pickup > table > >This patch adds the main contact method to the patron column of the >Holds awaiting pickup table. The style is intended to match the >modal on the hold found modal. > >To test: >1. Apply patch and run yarn build && restart_all >2. Place a hold for a patron and check in the item >3. Notice the modal displays the main contact method in a yellow box >4. Go to Circulation > Holds awaiting pickup >5. Notice the main contact method displays in the Patron column in the same style > >Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> >Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> >--- > .../prog/css/src/staff-global.scss | 13 ++++++++++++ > .../prog/en/includes/waiting_holds.inc | 21 +++++++++++++++++++ > 2 files changed, 34 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >index 47e85450..17ca1a4e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >@@ -795,6 +795,19 @@ form { > } > } > >+td .main_contact_method { >+ background-color: #FFE; >+ border: 1px solid #CCC; >+ border-radius: 5px; >+ display: inline-block; >+ margin: .5em 0; >+ padding: .1em .3em; >+ >+ &.none { >+ background-color: #EEE; >+ } >+} >+ > h1 { > } > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/waiting_holds.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/waiting_holds.inc >index ef43953e..31e4e3fb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/waiting_holds.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/waiting_holds.inc >@@ -59,6 +59,27 @@ > ></span > > > [% END %] >+ [% IF reserveloo.borrower.primary_contact_method %] >+ <div class="label main_contact_method" >+ >Main contact method: >+ [% SWITCH reserveloo.borrower.primary_contact_method %] >+ [% CASE 'phone' %] >+ <span>Primary phone</span> >+ [% CASE 'phonepro' %] >+ <span>Secondary phone</span> >+ [% CASE 'mobile' %] >+ <span>Other phone</span> >+ [% CASE 'email' %] >+ <span>Primary email</span> >+ [% CASE 'emailpro' %] >+ <span>Secondary email</span> >+ [% CASE 'fax' %] >+ <span>Fax</span> >+ [% END %] >+ </div> >+ [% ELSE %] >+ <div class="main_contact_method none">Main contact method: None</div> >+ [% END %] > </td> > <td>[% Branches.GetName( reserveloo.item.homebranch ) | html %]</td> > <td>[% Branches.GetName( reserveloo.item.holdingbranch ) | html %][% IF (reserveloo.desk_id ) %], [% reserveloo.desk.desk_name | html %][% END %]</td> >-- >2.30.2
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 37860
:
171207
|
171998
|
176880
|
179700
|
179715
|
179716
|
181246