Bugzilla – Attachment 51660 Details for
Bug 9543
Show patrons messaging subscription on holds notification
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9543 - Show patrons messaging subscription on holds notification
Bug-9543---Show-patrons-messaging-subscription-on-.patch (text/plain), 3.71 KB, created by
Jonathan Druart
on 2016-05-20 15:31:13 UTC
(
hide
)
Description:
Bug 9543 - Show patrons messaging subscription on holds notification
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-05-20 15:31:13 UTC
Size:
3.71 KB
patch
obsolete
>From c0ba5ec65b351a0eef34c67b32fbd01fc3f825d0 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Thu, 24 Mar 2016 16:06:30 +0100 >Subject: [PATCH] Bug 9543 - Show patrons messaging subscription on holds > notification > >Display an information about a patron's messaging preferences if an item >is checked in where the patron has put a hold. > >To test: > >- Apply patch >- Make sure that SMS driver and TalkingTech sysprefs are defined to > enable SMS and Phone preferences for users (SMS driver can be a dummy > value) >- Place a hold for a patron >- Set patron's messaging preferences to different choices (including none) >- Check in the item that is on hold (it has not to be checked out for the > test >- Verify that below the message "Hold found (item is already waiting") an > information appears about the patron's messaging preferences. > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >Signed-off-by: Chris Kirby <christopherlawrencekirby@gmail.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > circ/returns.pl | 4 +++- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 11 +++++++++++ > 2 files changed, 14 insertions(+), 1 deletion(-) > >diff --git a/circ/returns.pl b/circ/returns.pl >index 49899f0..3804543 100755 >--- a/circ/returns.pl >+++ b/circ/returns.pl >@@ -44,6 +44,7 @@ use C4::Reserves; > use C4::Biblio; > use C4::Items; > use C4::Members; >+use C4::Members::Messaging; > use C4::Branch; # GetBranches GetBranchName > use C4::Koha; # FIXME : is it still useful ? > use C4::RotatingCollections; >@@ -429,7 +430,7 @@ if ( $messages->{'ResFound'}) { > my $reserve = $messages->{'ResFound'}; > my $branchname = $branches->{ $reserve->{'branchcode'} }->{'branchname'}; > my $borr = C4::Members::GetMember( borrowernumber => $reserve->{'borrowernumber'} ); >- >+ my $holdmsgpreferences = C4::Members::Messaging::GetMessagingPreferences( { borrowernumber => $reserve->{'borrowernumber'}, message_name => 'Hold_Filled' } ); > if ( $reserve->{'ResFound'} eq "Waiting" or $reserve->{'ResFound'} eq "Reserved" ) { > if ( $reserve->{'ResFound'} eq "Waiting" ) { > $template->param( >@@ -468,6 +469,7 @@ if ( $messages->{'ResFound'}) { > borrowernumber => $reserve->{'borrowernumber'}, > itemnumber => $reserve->{'itemnumber'}, > reservenotes => $reserve->{'reservenotes'}, >+ bormessagepref => $holdmsgpreferences->{'transports'}, > ); > } # else { ; } # error? > } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >index 6a9f868..17a20d4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >@@ -238,6 +238,17 @@ $(document).ready(function () { > [% borcity %] [% borzip %]</li> > [% IF ( borphone ) %]<li> [% borphone %]</li>[% END %] > [% IF ( boremail ) %]<li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>[% END %] >+ [% IF ( bormessagepref ) %] >+ <li>Patron is notified: >+ [% FOREACH key IN bormessagepref.keys %] >+ [% IF ( key == 'email' ) %] Email. [% END %] >+ [% IF ( key == 'phone' ) %] Phone. [% END %] >+ [% IF ( key == 'sms' ) %] SMS. [% END %] >+ [% END %] >+ </li> >+ [% ELSE %] >+ <li>Patron is not notified</li> >+ [% END %] > [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %] > [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]</ul> > [% IF ( transfertodo ) %] >-- >2.8.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 9543
:
47305
|
49533
|
49939
|
49940
|
51346
|
51515
|
51516
|
51641
| 51660 |
51661
|
51662
|
51663