From ef07ad1044e172e3b0079025ad9ea04fb074f9e0 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 Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- 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 cd0c651f03..ba1b0c5e2c 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -775,6 +775,7 @@ sub _parseletter_sth { ($table eq 'aqbooksellers') ? "SELECT * FROM $table WHERE id = ?" : ($table eq 'aqorders' ) ? "SELECT * FROM $table WHERE ordernumber = ?" : ($table eq 'aqbasket' ) ? "SELECT * FROM $table WHERE basketno = ?" : + ($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 d7d66e1d79..6f1d49adbb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -112,6 +112,7 @@
  • Claim acquisition
  • Claim serial issue
  • Holds
  • +
  • Interlibrary loans
  • Order acquisition
  • Patrons
  • Serials (new issue)
  • @@ -168,6 +169,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 @@ -316,6 +318,11 @@ [% ELSE %] [% END %] + [% IF ( module == "ill" ) %] + + [% ELSE %] + + [% END %] [% IF ( module == "members" ) %] [% ELSE %] diff --git a/tools/letter.pl b/tools/letter.pl index d6740a80ed..0e7d23536d 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.39.5