| Summary: | Add ability to send HOLD_CANCELLATION as SMS message | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Lisette Scheer <lisette> |
| Component: | Notices | Assignee: | Bugs List <koha-bugs> |
| Status: | NEW --- | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | CC: | tech.aimee |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
Currently hold cancellation only triggers an email. Some libraries would like to send texts as well: The trigger only enqueues the email version: Koha/Hold.pm if ( $params->{cancellation_reason} ) { my $letter = C4::Letters::GetPreparedLetter( module => 'reserves', letter_code => 'HOLD_CANCELLATION', message_transport_type => 'email', branchcode => $self->borrower->branchcode, lang => $self->borrower->lang, tables => { branches => $self->borrower->branchcode, borrowers => $self->borrowernumber, items => $self->itemnumber, biblio => $self->biblionumber, biblioitems => $self->biblionumber, reserves => $self->unblessed, } ); if ($letter) { C4::Letters::EnqueueLetter( { letter => $letter, borrowernumber => $self->borrowernumber, message_transport_type => 'email', } ); } }