From 7091e63b0d8fffcdbfd4dc0ca0c23a5c28ba7156 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 Signed-off-by: Niamh Walker-Headon Sponsored-by: PTFS Europe --- 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 bdb213a49e..a07b445cce 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -753,6 +753,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 c394f80219..c6e5055bf9 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 @@ -312,6 +314,11 @@ [% ELSE %] [% END %] + [% IF ( module == "ill" ) %] + + [% ELSE %] + + [% END %] [% IF ( module == "members" ) %] [% ELSE %] diff --git a/tools/letter.pl b/tools/letter.pl index a673fa96a9..9ef3022418 100755 --- a/tools/letter.pl +++ b/tools/letter.pl @@ -261,6 +261,10 @@ sub add_form { if ( $module eq 'circulation' and $code and $code =~ /^AR_/ ) { push @{$field_selection}, add_fields('article_requests'); } + + if ( $module eq 'ill' ) { + push @{$field_selection}, add_fields('illrequests'); + } } my $preview_is_available = 0; -- 2.11.0