From 16234dda5f4928f31447cd1b801727c554e3ef99 Mon Sep 17 00:00:00 2001 From: Eric Garcia Date: Thu, 27 Jun 2024 18:06:47 +0000 Subject: [PATCH] Bug 37213: Improved breadcrumbs in rotating collections To test: 1. Tools -> Rotating collections -> New collections 2. Add a title and description 3. After adding the new collection notice the breadcrumb isn't right 4. Apply patch 5. Repeat steps 1 and 2 6. After adding the new collection notice the breadcrumb is improved. Signed-off-by: Sam Lau Signed-off-by: David Nind Signed-off-by: Paul Derscheid Signed-off-by: Katrin Fischer --- .../en/modules/rotating_collections/editCollections.tt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt index e1261866ac..c2cbb3a43e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt @@ -40,6 +40,16 @@ [% WRAPPER breadcrumb_item bc_active= 1 %] Collection deleted [% END %] + [% ELSIF ( op == "cud-create" ) %] + [% IF ( createSuccess ) %] + [% WRAPPER breadcrumb_item bc_active= 1 %] + Collection created successfully + [% END %] + [% ELSE %] + [% WRAPPER breadcrumb_item bc_active= 1 %] + Collection creation failed + [% END %] + [% END %] [% ELSE %] [% WRAPPER breadcrumb_item %] [% tx("Collection '{collection_title}'", { collection_title = editColTitle }) | html %] -- 2.39.5