From 0ab32d8db248afa191486be5ef91fa7900ada1f2 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 --- .../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 7edfcbdec3..ffc462c794 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.2