From 4b82bd9a2e0723fbdcc8a37b138875d838dc672a 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. --- .../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 f687e9bc2f..8aeae3ed29 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.30.2