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> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
51895cd7fb
commit
ef07ad1044
3 changed files with 12 additions and 0 deletions
|
@ -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 = ?" :
|
||||
|
|
|
@ -112,6 +112,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>
|
||||
|
@ -168,6 +169,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>
|
||||
|
@ -316,6 +318,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 %]
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue