From a9adee54b89dbdda468129b8342310131e6be331 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 6 Feb 2024 10:05:19 +0000 Subject: [PATCH] Bug 34478: ILL INTRA: query_type => op Signed-off-by: Jonathan Druart --- ill/ill-requests.pl | 8 ++-- .../prog/en/modules/ill/ill-requests.tt | 38 +++++++++---------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl index 5d5169109d..89389d2dc4 100755 --- a/ill/ill-requests.pl +++ b/ill/ill-requests.pl @@ -460,10 +460,10 @@ if ( $backends_available ) { } $template->param( - backends => $backends, - types => [ "Book", "Article", "Journal" ], - query_type => $op, - branches => Koha::Libraries->search, + backends => $backends, + types => [ "Book", "Article", "Journal" ], + op => $op, + branches => Koha::Libraries->search, ); output_html_with_http_headers( $cgi, $cookie, $template->output ); 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 3ca21e76d0..01ec9a0b3e 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,21 +23,21 @@ [% WRAPPER 'sub-header.inc' %] [% WRAPPER breadcrumbs %] - [% IF query_type == 'cud-create' %] + [% IF op == 'cud-create' %] [% WRAPPER breadcrumb_item %] ILL requests [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] New request [% END %] - [% ELSIF query_type == 'illview' %] + [% ELSIF op == 'illview' %] [% WRAPPER breadcrumb_item %] ILL requests [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] Manage request [% request.id_prefix _ request.illrequest_id | html %] [% END %] - [% ELSIF query_type == 'typedisclaimer' %] + [% ELSIF op == 'typedisclaimer' %] [% WRAPPER breadcrumb_item %] ILL requests [% END %] @@ -55,7 +55,7 @@
- [% IF query_type == 'illlist' %] + [% IF op == 'illlist' %]
- [% ELSIF query_type == 'illlist' %] + [% ELSIF op == 'illlist' %]

[% IF !batch %] @@ -822,7 +822,7 @@

Details for all requests

[% INCLUDE 'ill-list-table.inc' %]
- [% ELSIF query_type == 'availability' %] + [% ELSIF op == 'availability' %]

Availability

@@ -857,7 +857,7 @@ [% INCLUDE 'ill-availability-table.inc' service=service %] [% END %]
- [% ELSIF query_type == 'typedisclaimer' %] + [% ELSIF op == 'typedisclaimer' %]

Request type disclaimer

@@ -898,7 +898,7 @@
- [% ELSIF query_type == 'batch_list' || query_type == 'batch_create' %] + [% ELSIF op == 'batch_list' || op == 'batch_create' %] [% INCLUDE 'ill-batch.inc' %] [% ELSE %] @@ -962,17 +962,17 @@ [% Asset.js("js/ill-batch.js") | $raw %] [% Asset.js("js/ill-batch-table.js") | $raw %] [% Asset.js("js/ill-batch-modal.js") | $raw %] - [% IF (query_type == 'availability' || query_type == 'generic_confirm') && Koha.Preference('ILLCheckAvailability') %] + [% IF (op == 'availability' || op == 'generic_confirm') && Koha.Preference('ILLCheckAvailability') %] [% Asset.js("js/ill-availability.js") | $raw %] [% END %] - [% IF query_type == 'availability' && Koha.Preference('ILLCheckAvailability') %] + [% IF op == 'availability' && Koha.Preference('ILLCheckAvailability') %] [% END %] - [% IF query_type == 'generic_confirm' && Koha.Preference('ILLCheckAvailability') %] + [% IF op == 'generic_confirm' && Koha.Preference('ILLCheckAvailability') %] [% Asset.js("js/ill-availability-partner.js") | $raw %] [% END %] -- 2.39.5