Bug 34478: ILL OPAC: create => cud-create
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
ed439f28c5
commit
6719bc6bba
|
|
@ -32,7 +32,7 @@
|
|||
[% WRAPPER breadcrumb_item %]
|
||||
<a href="/cgi-bin/koha/opac-illrequests.pl">Interlibrary loan requests</a>
|
||||
[% END %]
|
||||
[% IF op == 'create' %]
|
||||
[% IF op == 'cud-create' %]
|
||||
[% WRAPPER breadcrumb_item bc_active= 1 %]
|
||||
<span>New interlibrary loan request</span>
|
||||
[% END %]
|
||||
|
|
@ -72,7 +72,7 @@
|
|||
<div class="alert alert-warning">ILL module configuration problem. Contact your administrator.</div>
|
||||
[% ELSE %]
|
||||
<div id="illrequests" class="maincontent">
|
||||
[% IF op == 'create' %]
|
||||
[% IF op == 'cud-create' %]
|
||||
<h1>New interlibrary loan request</h1>
|
||||
[% IF stage == 'copyrightclearance' %]
|
||||
[% INCLUDE messages %]
|
||||
|
|
@ -321,7 +321,7 @@
|
|||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
[% END # / IF op == 'create' %]
|
||||
[% END # / IF op == 'cud-create' %]
|
||||
</div> <!-- / #illrequests -->
|
||||
[% END # /IF !backends_available %]
|
||||
</div> <!-- / .col-lg-10/12 -->
|
||||
|
|
|
|||
|
|
@ -66,6 +66,10 @@ show_param_deprecation_message('"method" form param is DEPRECATED in favor of "o
|
|||
|
||||
my $op = $params->{'op'} // $params->{'method'} // 'list';
|
||||
|
||||
show_param_deprecation_message('"create" op is DEPRECATED in favor of "cud-create".') if ( $op eq 'create' );
|
||||
|
||||
$op = 'cud-create' if $op eq 'create';
|
||||
|
||||
my ( $illrequest_id, $request );
|
||||
if ( $illrequest_id = $params->{illrequest_id} ) {
|
||||
$request = Koha::Illrequests->find($illrequest_id);
|
||||
|
|
@ -76,7 +80,7 @@ if ( $illrequest_id = $params->{illrequest_id} ) {
|
|||
}
|
||||
}
|
||||
|
||||
if ( ( $op eq 'create' || $op eq 'cancreq' || $op eq 'cud-update' ) && !$patron->_result->categorycode->can_place_ill_in_opac ) {
|
||||
if ( ( $op eq 'cud-create' || $op eq 'cancreq' || $op eq 'cud-update' ) && !$patron->_result->categorycode->can_place_ill_in_opac ) {
|
||||
print $query->redirect('/cgi-bin/koha/errors/403.pl');
|
||||
exit;
|
||||
}
|
||||
|
|
@ -112,7 +116,7 @@ if ( $op eq 'list' ) {
|
|||
. $illrequest_id
|
||||
. '&message=1' );
|
||||
exit;
|
||||
} elsif ( $op eq 'create' ) {
|
||||
} elsif ( $op eq 'cud-create' ) {
|
||||
if (!$params->{backend}) {
|
||||
my $req = Koha::Illrequest->new;
|
||||
$template->param(
|
||||
|
|
|
|||
Loading…
Reference in New Issue