View | Details | Raw Unified | Return to bug 7317
Collapse All | Expand All

(-)a/Koha/Illrequest.pm (+17 lines)
Lines 467-472 pass it $params, as it does not yet have any other data associated with it. Link Here
467
sub backend_create {
467
sub backend_create {
468
    my ( $self, $params ) = @_;
468
    my ( $self, $params ) = @_;
469
469
470
    # Establish whether we need to do a generic copyright clearance.
471
    if ( ( !$params->{stage} || $params->{stage} eq 'init' )
472
             && C4::Context->preference("ILLModuleCopyrightClearance") ) {
473
        return {
474
            error   => 0,
475
            status  => '',
476
            message => '',
477
            method  => 'create',
478
            stage   => 'copyrightclearance',
479
            value   => {
480
                backend => $self->_backend->name
481
            }
482
        };
483
    } elsif ( $params->{stage} eq 'copyrightclearance' ) {
484
        $params->{stage} = 'init';
485
    }
486
470
    # First perform API action, then...
487
    # First perform API action, then...
471
    my $args = {
488
    my $args = {
472
        request => $self,
489
        request => $self,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-2 / +14 lines)
Lines 1-4 Link Here
1
[% USE Branches %]
1
[% USE Branches %]
2
[% USE Koha %]
2
3
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; ILL requests  &rsaquo;</title>
5
<title>Koha &rsaquo; ILL requests  &rsaquo;</title>
Lines 396-402 Link Here
396
397
397
                [% IF query_type == 'create' %]
398
                [% IF query_type == 'create' %]
398
                    <h1>New ILL request</h1>
399
                    <h1>New ILL request</h1>
399
                    [% PROCESS $whole.template %]
400
                    [% IF whole.stage == 'copyrightclearance' %]
401
                        <div>
402
                            <p>
403
                                [% Koha.Preference('ILLModuleCopyrightClearance') %]
404
                            </p>
405
                            <a href="?method=create&stage=copyrightclearance&backend=[% whole.value.backend %]"
406
                               class="btn btn-sm btn-default btn-group"><i class="fa fa-check">Yes</i></a>
407
                            <a href="/cgi-bin/koha/ill/ill-requests.pl"
408
                               class="btn btn-sm btn-default btn-group"><i class="fa fa-times">No</i></a>
409
                        </div>
410
                    [% ELSE %]
411
                        [% PROCESS $whole.template %]
412
                    [% END %]
400
413
401
                [% ELSIF query_type == 'confirm' %]
414
                [% ELSIF query_type == 'confirm' %]
402
                    <h1>Confirm ILL request</h1>
415
                    <h1>Confirm ILL request</h1>
403
- 

Return to bug 7317