From f31e0ec6ce0402025379f3811b3f4cf20a656980 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 495a3ab9eab..f2e3aa221da 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 @@ -25,11 +25,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 %] @@ -37,6 +41,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.39.5