From 8818055c82222729e7f53c303a6d1986e8c7e3de Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 5 Feb 2024 12:31:40 -0100 Subject: [PATCH] Bug 34478: ILL INTRA: create -> cud-create Signed-off-by: Jonathan Druart --- ill/ill-requests.pl | 3 ++- .../intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl index 4d32d5e38a..253bf1a249 100755 --- a/ill/ill-requests.pl +++ b/ill/ill-requests.pl @@ -55,6 +55,7 @@ unless ( C4::Context->preference('ILLModule') ) { Koha::Illrequest->check_url_param_deprecation($params); my $op = $params->{op} // $params->{method} // 'illlist'; +$op = 'cud-create' if $op eq 'create'; my ( $template, $patronnumber, $cookie ) = get_template_and_user( { template_name => 'ill/ill-requests.tt', @@ -124,7 +125,7 @@ if ( $backends_available ) { ) if $backend_result; - } elsif ( $op eq 'create' ) { + } elsif ( $op eq 'cud-create' ) { # Load the ILL backend my $request = Koha::Illrequest->new->load_backend( $params->{backend} ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index 9de516de4f..68cb72b3ff 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -23,7 +23,7 @@ [% WRAPPER 'sub-header.inc' %] [% WRAPPER breadcrumbs %] - [% IF query_type == 'create' %] + [% IF query_type == 'cud-create' %] [% WRAPPER breadcrumb_item %] ILL requests [% END %] @@ -141,7 +141,7 @@

[% whole.success | html %]

[% END %] - [% IF query_type == 'create' %] + [% IF query_type == 'cud-create' %]

New ILL request

[% PROCESS $whole.template %] @@ -843,7 +843,7 @@ [% i = i + 1 %] [% END %] - +
@@ -890,7 +890,7 @@ [% i = i + 1 %] [% END %] - + -- 2.39.5