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

(-)a/Koha/ILL/Backend/Standard.pm (-1 / +1 lines)
Lines 149-155 sub metadata { Link Here
149
    my $metadata = {};
149
    my $metadata = {};
150
    my @ignore   = (
150
    my @ignore   = (
151
        'requested_partners', 'type', 'type_disclaimer_value', 'type_disclaimer_date', 'unauthenticated_first_name',
151
        'requested_partners', 'type', 'type_disclaimer_value', 'type_disclaimer_date', 'unauthenticated_first_name',
152
        'unauthenticated_last_name', 'unauthenticated_email', 'historycheck_requests'
152
        'unauthenticated_last_name', 'unauthenticated_email', 'historycheck_requests', 'copyrightclearance_confirmed'
153
    );
153
    );
154
    my $core_fields = _get_core_fields();
154
    my $core_fields = _get_core_fields();
155
    while ( my $attr = $attrs->next ) {
155
    while ( my $attr = $attrs->next ) {
(-)a/Koha/ILL/Request.pm (-1 / +2 lines)
Lines 1084-1090 sub backend_create { Link Here
1084
        } elsif ( defined $params->{stage}
1084
        } elsif ( defined $params->{stage}
1085
            && $params->{stage} eq 'copyrightclearance' )
1085
            && $params->{stage} eq 'copyrightclearance' )
1086
        {
1086
        {
1087
            $params->{stage} = 'init';
1087
            $params->{copyrightclearance_confirmed} = 1;
1088
            $params->{stage}                        = 'init';
1088
        }
1089
        }
1089
    }
1090
    }
1090
1091
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (+4 lines)
Lines 606-611 Link Here
606
                                    <span class="label borrowernumber">Patron:</span>
606
                                    <span class="label borrowernumber">Patron:</span>
607
                                    [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %]
607
                                    [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %]
608
                                    <a href="[% borrowerlink | url %]" title="View borrower details"> [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %] </a>
608
                                    <a href="[% borrowerlink | url %]" title="View borrower details"> [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %] </a>
609
                                    [% copyrightclearance_confirmed = request.extended_attributes.find({'type'=>'copyrightclearance_confirmed'}).value %]
610
                                    [% IF copyrightclearance_confirmed %]
611
                                        <i class="fa fa-fw fa-check text-success" aria-hidden="true"></i> <span class="tab-title">Patron has confirmed copyright clearance for this request</span>
612
                                    [% END %]
609
                                </li>
613
                                </li>
610
                            [% END %]
614
                            [% END %]
611
                            [% IF request.biblio_id %]
615
                            [% IF request.biblio_id %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/create.inc (+3 lines)
Lines 124-129 Link Here
124
            <input id="ill-submit" class="btn btn-primary" type="submit" value="Create" />
124
            <input id="ill-submit" class="btn btn-primary" type="submit" value="Create" />
125
            <a class="cancel" href="/cgi-bin/koha/opac-illrequests.pl">Cancel</a>
125
            <a class="cancel" href="/cgi-bin/koha/opac-illrequests.pl">Cancel</a>
126
        </fieldset>
126
        </fieldset>
127
        [% IF (whole.value.other.copyrightclearance_confirmed) %]
128
            <input type="hidden" name="copyrightclearance_confirmed" value="1" />
129
        [% END %]
127
        <input type="hidden" name="op" value="cud-create" />
130
        <input type="hidden" name="op" value="cud-create" />
128
        <input type="hidden" name="stage" value="form" />
131
        <input type="hidden" name="stage" value="form" />
129
        <input type="hidden" name="backend" value="Standard" />
132
        <input type="hidden" name="backend" value="Standard" />
(-)a/opac/opac-illrequests.pl (-1 / +8 lines)
Lines 230-235 if ( $op eq 'list' ) { Link Here
230
                    $session->flush;
230
                    $session->flush;
231
                    print $query->redirect('/cgi-bin/koha/opac-illrequests-unauthenticated.pl');
231
                    print $query->redirect('/cgi-bin/koha/opac-illrequests-unauthenticated.pl');
232
                } else {
232
                } else {
233
                    $request->extended_attributes(
234
                        [
235
                            {
236
                                type  => 'copyrightclearance_confirmed',
237
                                value => 1,
238
                            }
239
                        ]
240
                    ) if $params->{copyrightclearance_confirmed};
233
                    print $query->redirect('/cgi-bin/koha/opac-illrequests.pl?message=2');
241
                    print $query->redirect('/cgi-bin/koha/opac-illrequests.pl?message=2');
234
                    exit;
242
                    exit;
235
                }
243
                }
236
- 

Return to bug 40262