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 1106-1112 sub backend_create { Link Here
1106
        } elsif ( defined $params->{stage}
1106
        } elsif ( defined $params->{stage}
1107
            && $params->{stage} eq 'copyrightclearance' )
1107
            && $params->{stage} eq 'copyrightclearance' )
1108
        {
1108
        {
1109
            $params->{stage} = 'init';
1109
            $params->{copyrightclearance_confirmed} = 1;
1110
            $params->{stage}                        = 'init';
1110
        }
1111
        }
1111
    }
1112
    }
1112
1113
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (+4 lines)
Lines 633-638 Link Here
633
                                    <span class="label borrowernumber">Patron:</span>
633
                                    <span class="label borrowernumber">Patron:</span>
634
                                    [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %]
634
                                    [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %]
635
                                    <a href="[% borrowerlink | url %]" title="View borrower details"> [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %] </a>
635
                                    <a href="[% borrowerlink | url %]" title="View borrower details"> [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %] </a>
636
                                    [% copyrightclearance_confirmed = request.extended_attributes.find({'type'=>'copyrightclearance_confirmed'}).value %]
637
                                    [% IF copyrightclearance_confirmed %]
638
                                        <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>
639
                                    [% END %]
636
                                </li>
640
                                </li>
637
                            [% END %]
641
                            [% END %]
638
                            [% IF request.biblio_id %]
642
                            [% 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 233-238 if ( $op eq 'list' ) { Link Here
233
                    $session->flush;
233
                    $session->flush;
234
                    print $query->redirect('/cgi-bin/koha/opac-illrequests-unauthenticated.pl');
234
                    print $query->redirect('/cgi-bin/koha/opac-illrequests-unauthenticated.pl');
235
                } else {
235
                } else {
236
                    $request->extended_attributes(
237
                        [
238
                            {
239
                                type  => 'copyrightclearance_confirmed',
240
                                value => 1,
241
                            }
242
                        ]
243
                    ) if $params->{copyrightclearance_confirmed};
236
                    print $query->redirect('/cgi-bin/koha/opac-illrequests.pl?message=2');
244
                    print $query->redirect('/cgi-bin/koha/opac-illrequests.pl?message=2');
237
                    exit;
245
                    exit;
238
                }
246
                }
239
- 

Return to bug 40262