diff --git a/Koha/ILL/Backend/Standard.pm b/Koha/ILL/Backend/Standard.pm index 7cb613b1c5..b3e8efa71c 100644 --- a/Koha/ILL/Backend/Standard.pm +++ b/Koha/ILL/Backend/Standard.pm @@ -149,7 +149,7 @@ sub metadata { my $metadata = {}; my @ignore = ( 'requested_partners', 'type', 'type_disclaimer_value', 'type_disclaimer_date', 'unauthenticated_first_name', - 'unauthenticated_last_name', 'unauthenticated_email', 'historycheck_requests' + 'unauthenticated_last_name', 'unauthenticated_email', 'historycheck_requests', 'copyrightclearance_confirmed' ); my $core_fields = _get_core_fields(); while ( my $attr = $attrs->next ) { diff --git a/Koha/ILL/Request.pm b/Koha/ILL/Request.pm index efd0ad481f..8a34dba293 100644 --- a/Koha/ILL/Request.pm +++ b/Koha/ILL/Request.pm @@ -1106,7 +1106,8 @@ sub backend_create { } elsif ( defined $params->{stage} && $params->{stage} eq 'copyrightclearance' ) { - $params->{stage} = 'init'; + $params->{copyrightclearance_confirmed} = 1; + $params->{stage} = 'init'; } } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index 1d8957641e..2c32aff3f1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -633,6 +633,10 @@ Patron: [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %] [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %] + [% copyrightclearance_confirmed = request.extended_attributes.find({'type'=>'copyrightclearance_confirmed'}).value %] + [% IF copyrightclearance_confirmed %] + Patron has confirmed copyright clearance for this request + [% END %] [% END %] [% IF request.biblio_id %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/create.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/create.inc index 1790337caa..8f860228b6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/create.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/create.inc @@ -124,6 +124,9 @@ Cancel + [% IF (whole.value.other.copyrightclearance_confirmed) %] + + [% END %] diff --git a/opac/opac-illrequests.pl b/opac/opac-illrequests.pl index 2c9966e5cf..6002207ed8 100755 --- a/opac/opac-illrequests.pl +++ b/opac/opac-illrequests.pl @@ -233,6 +233,14 @@ if ( $op eq 'list' ) { $session->flush; print $query->redirect('/cgi-bin/koha/opac-illrequests-unauthenticated.pl'); } else { + $request->extended_attributes( + [ + { + type => 'copyrightclearance_confirmed', + value => 1, + } + ] + ) if $params->{copyrightclearance_confirmed}; print $query->redirect('/cgi-bin/koha/opac-illrequests.pl?message=2'); exit; }