From f4f559023970e0eba0715e4e01989d91d1a8ceff Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Tue, 7 May 2019 17:37:02 +0100 Subject: [PATCH] Bug 22818: Add support for ILL notices Here we're just adding ILL notices to the existing "letters" infrastructure so notices can be displayed and edited Sponsored-by: PTFS Europe Signed-off-by: Niamh Walker-Headon Signed-off-by: Martin Renvoize --- C4/Letters.pm | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 7 +++++++ tools/letter.pl | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/C4/Letters.pm b/C4/Letters.pm index dbbb6fdf9f..fcaae75a5c 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -750,6 +750,7 @@ sub _parseletter_sth { ($table eq 'suggestions' ) ? "SELECT * FROM $table WHERE suggestionid = ?" : ($table eq 'aqbooksellers') ? "SELECT * FROM $table WHERE id = ?" : ($table eq 'aqorders' ) ? "SELECT * FROM $table WHERE ordernumber = ?" : + ($table eq 'illrequests' ) ? "SELECT * FROM $table WHERE illrequest_id = ?" : ($table eq 'opac_news' ) ? "SELECT * FROM $table WHERE idnew = ?" : ($table eq 'article_requests') ? "SELECT * FROM $table WHERE id = ?" : ($table eq 'borrower_modifications') ? "SELECT * FROM $table WHERE verification_token = ?" : diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt index 4bfed8b44c..6fb1355967 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -111,6 +111,7 @@
  • Claim acquisition
  • Claim serial issue
  • Holds
  • +
  • Interlibrary loans
  • Order acquisition
  • Patrons
  • Serials (new issue)
  • @@ -166,6 +167,7 @@ [% CASE 'claimacquisition' %]Claim acquisition [% CASE 'claimissues' %]Claim serial issue [% CASE 'reserves' %]Holds + [% CASE 'reserves' %]Interlibrary loans [% CASE 'members' %]Patrons [% CASE 'serial' %]Serials (new issue) [% CASE 'suggestions' %]Suggestions @@ -313,6 +315,11 @@ [% ELSE %] [% END %] + [% IF ( module == "ill" ) %] + + [% ELSE %] + + [% END %] [% IF ( module == "members" ) %] [% ELSE %] diff --git a/tools/letter.pl b/tools/letter.pl index a0e2d373e4..31f7de6a6c 100755 --- a/tools/letter.pl +++ b/tools/letter.pl @@ -265,6 +265,10 @@ sub add_form { if ( $module eq 'members' and $code and $code eq 'PROBLEM_REPORT' ) { push @{$field_selection}, add_fields('problem_reports'); } + + if ( $module eq 'ill' ) { + push @{$field_selection}, add_fields('illrequests'); + } } my $preview_is_available = 0; -- 2.20.1