Bugzilla – Attachment 110197 Details for
Bug 22818
ILL should be able to send notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22818: Add support for ILL notices
Bug-22818-Add-support-for-ILL-notices.patch (text/plain), 4.84 KB, created by
Martin Renvoize (ashimema)
on 2020-09-16 13:43:56 UTC
(
hide
)
Description:
Bug 22818: Add support for ILL notices
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-09-16 13:43:56 UTC
Size:
4.84 KB
patch
obsolete
>From 91fbea0170628e4f0e088fa11d27c43c0bfcd1d0 Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >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 <Niamh.Walker-Headon@it-tallaght.ie> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > 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 @@ > <li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=claimacquisition">Claim acquisition</a></li> > <li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=claimissues">Claim serial issue</a></li> > <li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=reserves">Holds</a></li> >+ <li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=ill">Interlibrary loans</a></li> > <li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=orderacquisition">Order acquisition</a></li> > <li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=members">Patrons</a></li> > <li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=serial">Serials (new issue)</a></li> >@@ -166,6 +167,7 @@ > [% CASE 'claimacquisition' %]<span>Claim acquisition</span> > [% CASE 'claimissues' %]<span>Claim serial issue</span> > [% CASE 'reserves' %]<span>Holds</span> >+ [% CASE 'reserves' %]<span>Interlibrary loans</span> > [% CASE 'members' %]<span>Patrons</span> > [% CASE 'serial' %]<span>Serials (new issue)</span> > [% CASE 'suggestions' %]<span>Suggestions</span> >@@ -313,6 +315,11 @@ > [% ELSE %] > <option value="reserves">Holds</option> > [% END %] >+ [% IF ( module == "ill" ) %] >+ <option value="ill" selected="selected">Interlibrary loans</option> >+ [% ELSE %] >+ <option value="ill">Interlibrary loans</option> >+ [% END %] > [% IF ( module == "members" ) %] > <option value="members" selected="selected">Patrons</option> > [% ELSE %] >diff --git a/tools/letter.pl b/tools/letter.pl >index eb2cd98e63..f42a371199 100755 >--- a/tools/letter.pl >+++ b/tools/letter.pl >@@ -264,6 +264,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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22818
:
89831
|
89832
|
89833
|
89834
|
89835
|
90063
|
90064
|
90065
|
90066
|
90067
|
90715
|
90716
|
90717
|
90718
|
90719
|
92898
|
92899
|
92900
|
92901
|
92902
|
100234
|
100235
|
100236
|
100237
|
100238
|
103268
|
103269
|
103270
|
103271
|
103272
|
106424
|
106425
|
106426
|
106427
|
106428
|
106675
|
106676
|
106677
|
106678
|
106679
|
106680
|
106681
|
106691
|
106693
|
106694
|
106704
|
106705
|
106706
|
106707
|
106708
|
106709
|
106710
|
106711
|
106712
|
106713
|
110196
|
110197
|
110198
|
110199
|
110201
|
110202
|
110203
|
110204
|
110205
|
110206
|
110207
|
110208
|
111837
|
111838
|
111839
|
111840
|
111841
|
111842
|
111843
|
111844
|
111845
|
111846
|
111847
|
111848
|
111874
|
111880
|
111881
|
111883
|
111884
|
111885
|
111886
|
111887
|
111888
|
111889
|
111890
|
111891
|
111892
|
111893
|
111897
|
111899
|
111900
|
111901
|
111902
|
111903
|
111904
|
111905
|
111906
|
111907
|
111908
|
111909
|
111910
|
111911
|
111912
|
111913
|
113398
|
113399
|
113400
|
113401
|
113402
|
113403
|
113404
|
113405
|
113406
|
113407
|
113408
|
113409
|
113410
|
113411
|
113412
|
113413
|
113463
|
113464
|
113465
|
113466
|
113467
|
113468
|
113469
|
113470
|
113471
|
113472
|
113473
|
113474
|
113475
|
113476
|
113477
|
113478
|
113479
|
113522
|
113549
|
113584