From 900e3f22e6914e805f0f0da07364d772163cd66f 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 --- 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 086978561a..599fdd1d0e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -70,6 +70,7 @@
  • Claim acquisition
  • Claim serial issue
  • Holds
  • +
  • Interlibrary loans
  • Order acquisition
  • Patrons
  • Serials (new issue)
  • @@ -117,6 +118,7 @@ [% CASE 'claimacquisition' %]Claim acquisition [% CASE 'claimissues' %]Claim serial issue [% CASE 'reserves' %]Holds + [% CASE 'ill' %]Interlibrary loans [% CASE 'members' %]Patrons [% CASE 'serial' %]Serials (new issue) [% CASE 'suggestions' %]Suggestions @@ -261,6 +263,11 @@ [% ELSE %] [% END %] + [% IF ( module == "ill" ) %] + + [% ELSE %] + + [% END %] [% IF ( module == "members" ) %] [% ELSE %] diff --git a/tools/letter.pl b/tools/letter.pl index f1a234bf40..eda1901cbe 100755 --- a/tools/letter.pl +++ b/tools/letter.pl @@ -258,6 +258,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