From 8496c985e0afb0e19407003f13c5da648586c1ca Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 12 Dec 2024 13:12:03 +0000 Subject: [PATCH] Bug 38685: Add missing ops to breadcrumbs Breadcrumbs added to the following op pages: - confirm - delete_confirm - generic_confirm - edititem - edit_action - check_out - cud-cancel - availability Test plan: 1) Enable ILLModule 2) Create a new ILL request: /cgi-bin/koha/ill/ill-requests.pl?method=create&backend=Standard 3) Try various actions like 'Edit request', 'Confirm request', 'Place request with partners', etc. 4) Notice the breadcrumbs were previously missing. They are now there. 5) If you want to test the breadcrumbs on the batches pages or availability check stage let me know and I'll help setting up the required plugins to have them work. Signed-off-by: Owen Leonard Signed-off-by: Martin Renvoize --- .../prog/en/modules/ill/ill-requests.tt | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) 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 2299ed243e2..9a06e0d5f2a 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,11 +23,15 @@ [% WRAPPER 'sub-header.inc' %] [% WRAPPER breadcrumbs %] - [% WRAPPER breadcrumb_item bc_active = (op == 'illlist' ? 1 : 0) %] - [% IF op == 'illlist' %] - ILL requests + [% WRAPPER breadcrumb_item bc_active = (op == 'illlist' || op == 'batch_list' ? 1 : 0) %] + [% IF op == 'batch_list' %] + ILL batch requests [% ELSE %] - ILL requests + [% IF op == 'illlist' %] + ILL requests + [% ELSE %] + ILL requests + [% END %] [% END %] [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] @@ -35,6 +39,22 @@ New request [% ELSIF op == 'illview' %] Manage request [% request.id_prefix _ request.illrequest_id | html %] + [% ELSIF op == 'confirm' %] + Confirm request [% request.id_prefix _ request.illrequest_id | html %] + [% ELSIF op == 'delete_confirm' %] + Delete request [% request.id_prefix _ request.illrequest_id | html %] + [% ELSIF op == 'generic_confirm' %] + Place request [% request.id_prefix _ request.illrequest_id | html %] with partners + [% ELSIF op == 'edititem' %] + Edit item metadata for request [% request.id_prefix _ request.illrequest_id | html %] + [% ELSIF op == 'edit_action' %] + Edit request [% request.id_prefix _ request.illrequest_id | html %] + [% ELSIF op == 'check_out' %] + Check out request [% request.id_prefix _ request.illrequest_id | html %] + [% ELSIF op == 'cud-cancel' %] + Cancel request [% request.id_prefix _ request.illrequest_id | html %] + [% ELSIF op == 'availability' %] + Availability check [% ELSIF op == 'typedisclaimer' %] Request type disclaimer [% ELSIF op == 'confirmautoill' %] -- 2.47.1