Bugzilla – Attachment 81103 Details for
Bug 21640
Itivia outbound script doesn't print to STDOUT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21640: Enable output to STDOUT for Itiva outbound script
Bug-21640-Enable-output-to-STDOUT-for-Itiva-outbou.patch (text/plain), 1.87 KB, created by
Mark Tompsett
on 2018-10-24 23:59:42 UTC
(
hide
)
Description:
Bug 21640: Enable output to STDOUT for Itiva outbound script
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2018-10-24 23:59:42 UTC
Size:
1.87 KB
patch
obsolete
>From 81fe1738802826eb1ac1f1048734a5734f70dd27 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 24 Oct 2018 01:17:51 +0000 >Subject: [PATCH] Bug 21640: Enable output to STDOUT for Itiva outbound script > >To test: > 1 - Enable the TalkingTechItivaPhoneNotification > 2 - Copy 'HOLD' notice 'email' transport to the phone section > 3 - Enable EnhancedMessagingPreferences > 4 - Find a patron and enable 'phone' for the 'Hold filled' notice > Note: You might not be able to do this straightaway, bug 21639 > If the phone box has a '-' and not a checkbox: > sudo koha-mysql kohadev > INSERT INTO message_transports (message_attribute_id,message_transport_type,is_digest,letter_module,letter_code) VALUES (4,'phone',0,'reserves','HOLD'); > 5 - Place a hold for the patron > 6 - Check it in and confirm the hold to set it waiting > 7 - sudo koha-shell kohadev > 8 - perl misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl --type=RESERVE -w 0 -v > 9 - Note the Output says it will be on STDOUT, but nothing is output >10 - Apply patch >11 - repeat >12 - Hold info is output to command line > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl b/misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl >index 7ab5de2e1b..d0e01f608c 100755 >--- a/misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl >+++ b/misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl >@@ -96,7 +96,7 @@ if ( defined $outfile ) { > } else { > print "No output file defined; printing to STDOUT\n" > if ( defined $verbose ); >- open( $OUT, '>', "&STDOUT" ) || die("Couldn't duplicate STDOUT: $!"); >+ $OUT = *STDOUT || die("Couldn't duplicate STDOUT: $!"); > } > > my $format = 'V'; # format for phone notifications >-- >2.11.0
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 21640
:
81043
|
81103
|
81867