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

(-)a/Koha/ILL/Request.pm (-1 / +25 lines)
Lines 1189-1194 sub expand_template { Link Here
1189
            $backend_tmpl = join "/", $backend_dir, $backend;
1189
            $backend_tmpl = join "/", $backend_dir, $backend;
1190
        }
1190
        }
1191
1191
1192
        ( $params, $backend_tmpl ) = _edititem_tmpl_override( $params, $backend_tmpl );
1193
1192
        my $intra_tmpl = join "/", $backend_tmpl, "intra-includes",
1194
        my $intra_tmpl = join "/", $backend_tmpl, "intra-includes",
1193
            ( $params->{method} // q{} ) . ".inc";
1195
            ( $params->{method} // q{} ) . ".inc";
1194
        my $opac_tmpl = join "/", $backend_tmpl, "opac-includes",
1196
        my $opac_tmpl = join "/", $backend_tmpl, "opac-includes",
Lines 1202-1207 sub expand_template { Link Here
1202
    return $params;
1204
    return $params;
1203
}
1205
}
1204
1206
1207
=head3 _edititem_tmpl_override
1208
1209
    $backend_tmpl = _edititem_tmpl_override( $params, $backend_tmpl );
1210
1211
Overwrites template path and cwd (current working directory) with core Standard's to present the same
1212
form when editing a request's item metadata using AutoILLBackendPriority mode, regardless of backend.
1213
1214
=cut
1215
1216
sub _edititem_tmpl_override {
1217
    my ( $params, $backend_tmpl ) = @_;
1218
1219
    return ( $params, $backend_tmpl )
1220
        unless $params->{method} eq 'edititem'
1221
        && C4::Context->preference("AutoILLBackendPriority");
1222
1223
    $backend_tmpl = dirname(__FILE__) . '/Backend';
1224
    if ( exists $params->{cwd} ) {
1225
        $params->{cwd} = $backend_tmpl;
1226
    }
1227
    return ( $params, $backend_tmpl );
1228
}
1229
1205
#### Abstract Imports
1230
#### Abstract Imports
1206
1231
1207
=head3 getLimits
1232
=head3 getLimits
1208
- 

Return to bug 40026