Koha-clms/admin
Ian Walls d29efac4f3 Talking Tech Support - Phase I
Implements support for Talking Tech I-tiva phone notification for OVERDUE, PREDUE and HOLD notifications.
Overdues respect triggers as configured for the patron's branch.
Predue and Holds notifications respect patron's messaging preference choices.
A new column for phone notification is added if the TalkingTechItivaPhoneNotification system preference is turned on

Record of phone messages being sent to patrons is added to the patron's Notices
tab; notice of success or failure can be retrieved from I-tiva.

See the TalkingTech.README for installation and set-up instructions.

Aside from the control system preference, and the necessary changes to Messaging Preferences
forms to make use of phone notifications, the bulk of the code resides in external
cronjobs.

TalkingTech_itiva_outbound.pl generates the Spec C file to send to I-tiva.  Actual transmission
of the file must be handled by the system administrator.

TalkingTech_itiva_inbound.pl processes the received Results file from I-tiva.  Getting the
file from I-tiva to Koha is the job of the system administrator, as well.

Both scripts have a --help option with full documentation.

The only necessary change to core Koha behavior is in C4::Letters::EnqueueLetter.  The return
value was changed from 0 or 1 (successful addition of letter to message_queue or not), to the actual
insert ID of the letter.  This was required by the outbound script to present a unique Transaction ID
for the notice added to the patron's record (so a 'sent' or 'failed' status could be updated).  Since
the dbh and sth are not shared, and the last_insert_id() command is table-specific, this should be thread-safe.
No changes are necessary to any parts of Koha, as all usage of EnqueueLetter currently ignores the return value.

To Test:

1. Turn on TalkingTechItivaPhoneNotification system preference
2. Verify that 'phone' is now a valid notification option for patrons on both staff and OPAC side
3. Attempt to set a 'phone' preference for PREDUE or HOLD messaging; attempt should succeed
4. Set up the patron for notices to triggers:
   a. include checked out items due in a range of days, including the value set up in their messaging preferences.
   b. place several holds, some in position, others waiting for pickup, others in transit.
   c. set the patron up to have overdues, overdue by a range of days that includes the delay values for
the patrons branch and categorycode
5. Run TalkingTech_itiva_outbound.pl --type=RESERVE --type=PREOVERDUE --type=OVERDUE --outfile=/tmp/talkingtechtest.csv

The resulting talkingtechtest.csv file should include all the items due on X days (where X is the patrons' preference),
and none of the ones due in other increments.  Similarly, overdues messages should be added for each item due by a delay
value as configured; overdues of other numbers of days should be ignore.  Holds that are waiting pick up or in transit should
have messages, those still pending should not.

Messages should be added to the patron's notices tab for each issue sent.  Verify these messages exist, and all Notices
tokens are replaced with appropriate information.

Repeat, this time with 4c making use of the default branch overdue triggers, instead of branch-specific triggers.

To test the inbound script, create a CSV with rows in the format "<<Message_id>>","<<SUCCESS or FAIL>>"
Message ID should correspond to the final column of the talkingtechtest.csv file (the transaction id) for the message.

Primary Authorship: Ian Walls
Additional modifications: Kyle M Hall

http://bugs.koha-community.org/show_bug.cgi?id=4246
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>

Tested and in use in production by two public libraries : Middletown
and Washoe. Both have given their sign off, but don't have git to
actually sign off.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
2012-06-10 17:46:52 +02:00
..
admin-home.pl Bug 2505: Enabled warnings in admin-home.pl and roadtype.pl. 2009-09-06 09:13:14 -04:00
aqbudget_owner_search.pl bug_6253: Unified member Search() 2011-10-19 16:23:02 +13:00
aqbudgetperiods.pl Bug 6943: Added ability to duplicate a budget tree (from the edit sub menu) 2012-02-03 17:53:59 +01:00
aqbudgets.pl Bug 3969 follow-up = budget name field is budget_name, not name 2012-04-20 16:59:35 +02:00
aqcontract.pl Bug 7113: Standardize vendor id name in templates and scripts 2012-02-17 19:04:00 +01:00
aqplan.pl Bug 6752: Be stricter with utf-8 encoding of output 2012-01-27 12:11:06 +01:00
auth_subfields_structure.pl Bug 5462: modified intranet scripts to match templates 2011-02-03 09:57:24 +00:00
auth_tag_structure.pl Bug 5453: Move declarations out of conditionals 2011-07-15 15:50:20 +12:00
authorised_values.pl Bug 7795 - admin/authorised_values.pl breaks with plack 2012-03-26 18:08:28 +02:00
authtypes.pl Fix FSF address in directory admin/ 2010-03-16 20:17:50 -04:00
biblio_framework.pl Fix for Bug 4424, MARC Framework deletion incorrectly reports usage count 2010-04-29 20:59:29 -04:00
branch_transfer_limits.pl Bug 6842 FU : library transfer limits edits not stored 2012-02-01 22:47:56 +01:00
branches.pl bug_7264: [SIGNED-OFF] Branch popup on OPAC detail.Added opac_info field to branches table. 2012-03-22 11:50:00 +01:00
categorie.pl Talking Tech Support - Phase I 2012-06-10 17:46:52 +02:00
check_budget_parent.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
check_parent_total.pl bug4438/MT5496 budget Exceeds total allocation 2011-03-14 20:45:58 +13:00
checkmarc.pl Bug 3768 (Bibliographic Framework Test) 2010-05-17 08:26:21 -04:00
cities.pl Fix for Bug 5433 - Separate state field for cities 2011-08-04 20:54:49 +12:00
classsources.pl Bug 2505 - Add commented use warnings where missing in the admin/ directory 2010-04-21 20:20:11 +12:00
clone-rules.pl Bug 2505 - Add commented use warnings where missing in the admin/ directory 2010-04-21 20:20:11 +12:00
currency.pl Bug 7797 - admin/currency.pl needs scoping for plack 2012-03-26 16:27:15 +02:00
env_tz_test.pl Bug 2617: Add strict (and warnings), partial fix. 2009-03-11 08:36:55 -05:00
fieldmapping.pl Fix for Bug 4261 - keyword mapping should show which framework the map is for 2010-11-01 20:34:36 +13:00
import_export_framework.pl Bug 5478 - Automate MARC framework import/export 2011-04-01 21:17:33 +13:00
item_circulation_alerts.pl Bug 7798 - admin/item_circulation_alerts.pl plack scoping 2012-03-26 18:09:36 +02:00
itemtypes.pl BUG6436 Don't allow deletion of an itemtype used in items.itype 2011-06-03 14:24:54 +12:00
koha2marclinks.pl Using only default framework for koha2marclinks 2010-03-16 21:27:20 -04:00
marc_subfields_structure.pl Bug 3413: Checkboxes for new subfields not saving correctly 2012-05-07 22:23:49 +02:00
marctagstructure.pl Bug 7799 - admin/marctagstructure.pl plack scoping 2012-03-26 18:15:56 +02:00
matching-rules.pl Bug 7800 - admin/matching-rules.pl plack scoping 2012-03-26 18:11:57 +02:00
oai_set_mappings.pl Bug 6440: Implement OAI-PMH Sets 2012-03-20 11:38:26 +01:00
oai_sets.pl Bug 6440: Implement OAI-PMH Sets 2012-03-20 11:38:26 +01:00
patron-attr-types.pl Bug 7801 - admin/patron-attr-types.pl plack scoping 2012-03-26 18:12:36 +02:00
preferences.pl Bug 7330 - System preferences editor generates errors in the log with each search 2011-12-15 17:24:44 +01:00
printers.pl Bug 2505 - Add commented use warnings where missing in the admin/ directory 2010-04-21 20:20:11 +12:00
roadtype.pl Another bug 5004 fix, this time for road types 2010-11-19 09:29:48 +13:00
smart-rules.pl Bug 2505 : use warnings in smart_rules.pl 2012-04-10 11:30:20 +02:00
stopwords.pl Fix FSF address in directory admin/ 2010-03-16 20:17:50 -04:00
systempreferences.pl bug_7398: Replaced OPACDisplayRequestPriority syspref with OPACShowHoldQueueDetails 2012-05-24 15:32:19 +02:00
z3950servers.pl Bug 8027: fix param order for z3950 INSERT 2012-05-07 21:58:25 +02:00