@@ -, +, @@
https://wiki.koha-community.org/wiki/ILL_backends
agreeing or disagreeing (prior to this patch, this screen displayed
an error)
details
requests" page
---
.../bootstrap/en/modules/opac-illrequests.tt | 47 ++++++++++++++--------
opac/opac-illrequests.pl | 24 +++++++----
2 files changed, 46 insertions(+), 25 deletions(-)
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt
@@ -54,24 +54,37 @@
[% IF method == 'create' %]
New Interlibrary loan request
- [% INCLUDE messages %]
- [% IF backends %]
-
+ [% IF stage == 'copyrightclearance' %]
+ [% INCLUDE messages %]
+
+
+ [% Koha.Preference('ILLModuleCopyrightClearance') %]
+
+
Yes
+
No
+
[% ELSE %]
- [% PROCESS $whole.opac_template %]
+ [% INCLUDE messages %]
+ [% IF backends %]
+
+ [% ELSE %]
+ [% PROCESS $whole.opac_template %]
+ [% END %]
[% END %]
[% ELSIF method == 'list' %]
Interlibrary loan requests
--- a/opac/opac-illrequests.pl
+++ a/opac/opac-illrequests.pl
@@ -112,15 +112,23 @@ if ( $op eq 'list' ) {
borrowernumber => $loggedinuser
})->cardnumber;
my $backend_result = $request->backend_create($params);
- $template->param(
- media => [ "Book", "Article", "Journal" ],
- branches => Koha::Libraries->search->unblessed,
- whole => $backend_result,
- request => $request
- );
- if ($backend_result->{stage} eq 'commit') {
- print $query->redirect('/cgi-bin/koha/opac-illrequests.pl?message=2');
+ if ($backend_result->{stage} eq 'copyrightclearance') {
+ $template->param(
+ stage => $backend_result->{stage},
+ whole => $backend_result
+ );
+ } else {
+ $template->param(
+ media => [ "Book", "Article", "Journal" ],
+ branches => Koha::Libraries->search->unblessed,
+ whole => $backend_result,
+ request => $request
+ );
+ if ($backend_result->{stage} eq 'commit') {
+ print $query->redirect('/cgi-bin/koha/opac-illrequests.pl?message=2');
+ }
}
+
}
}
--