From ed439f28c5b2bc390cdb7f94d309c1c815f5a9c1 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 2 Feb 2024 15:12:27 +0000 Subject: [PATCH] Bug 34478: ILL OPAC: method => op Signed-off-by: Jonathan Druart --- Koha/Illrequest/Workflow/Availability.pm | 2 +- Koha/Illrequest/Workflow/TypeDisclaimer.pm | 2 +- .../bootstrap/en/modules/opac-illrequests.tt | 36 +++++++++---------- opac/opac-illrequests.pl | 27 ++++++++++---- 4 files changed, 41 insertions(+), 26 deletions(-) diff --git a/Koha/Illrequest/Workflow/Availability.pm b/Koha/Illrequest/Workflow/Availability.pm index bcc50f6fe7..7094dcc3c8 100644 --- a/Koha/Illrequest/Workflow/Availability.pm +++ b/Koha/Illrequest/Workflow/Availability.pm @@ -137,7 +137,7 @@ sub availability_template_params { ? ( illrequestsview => 1, message => $params->{message}, - method => 'availability', + op => 'availability', ) : () ); diff --git a/Koha/Illrequest/Workflow/TypeDisclaimer.pm b/Koha/Illrequest/Workflow/TypeDisclaimer.pm index dea466d9be..51a20cce89 100644 --- a/Koha/Illrequest/Workflow/TypeDisclaimer.pm +++ b/Koha/Illrequest/Workflow/TypeDisclaimer.pm @@ -105,7 +105,7 @@ sub type_disclaimer_template_params { ? ( illrequestsview => 1, message => $params->{message}, - method => 'typedisclaimer', + op => 'typedisclaimer', ) : () ); diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt index 4b7af4d7e6..3d39035b7d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt @@ -28,19 +28,19 @@ [% END %] [% END %] - [% IF method != 'list' %] + [% IF op != 'list' %] [% WRAPPER breadcrumb_item %] Interlibrary loan requests [% END %] - [% IF method == 'create' %] + [% IF op == 'create' %] [% WRAPPER breadcrumb_item bc_active= 1 %] New interlibrary loan request [% END %] - [% ELSIF method == 'view' %] + [% ELSIF op == 'view' %] [% WRAPPER breadcrumb_item bc_active= 1 %] View interlibrary loan request [% END %] - [% ELSIF method == 'typedisclaimer' %] + [% ELSIF op == 'typedisclaimer' %] [% WRAPPER breadcrumb_item bc_active= 1 %] Ill request disclaimer [% END %] @@ -72,7 +72,7 @@
ILL module configuration problem. Contact your administrator.
[% ELSE %]
- [% IF method == 'create' %] + [% IF op == 'create' %]

New interlibrary loan request

[% IF stage == 'copyrightclearance' %] [% INCLUDE messages %] @@ -101,7 +101,7 @@
- +
@@ -109,7 +109,7 @@ [% PROCESS $whole.opac_template %] [% END %] [% END # /IF stage == 'copyrightclearance' %] - [% ELSIF method == 'list' %] + [% ELSIF op == 'list' %]

Interlibrary loan requests

[% INCLUDE messages %] @@ -121,11 +121,11 @@ [% ELSE %] - + Create a new request [% END %] @@ -167,17 +167,17 @@ [% request.placed | $KohaDates %] [% request.updated | $KohaDates %] - View + View [% END %] - [% ELSIF method == 'view' %] + [% ELSIF op == 'view' %]

View interlibrary loan request

[% INCLUDE messages %] [% status = request.status %] -
+ [% INCLUDE 'csrf-token.inc' %]
Details from library @@ -239,10 +239,10 @@ [% IF can_place_ill_in_opac %]
- + [% IF !request.completed %] [% IF request.status == "NEW" %] - Request cancellation + Request cancellation [% END %] [% END %] @@ -250,7 +250,7 @@
[% END %] - [% ELSIF method == 'availability' %] + [% ELSIF op == 'availability' %]

Interlibrary loan item availability

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

ILL request disclaimer

[% INCLUDE messages %] @@ -321,7 +321,7 @@
- [% END # / IF method == 'create' %] + [% END # / IF op == 'create' %] [% END # /IF !backends_available %] @@ -351,7 +351,7 @@ var metadata = "[% metadata | $raw %]"; [% END %] - [% IF method == 'availability' %] + [% IF op == 'availability' %] [% Asset.js("js/ill-availability.js") | $raw %]