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 <samalau@gmail.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Eric Garcia 2024-06-27 18:06:47 +00:00 committed by Katrin Fischer
parent 0e359a5981
commit 16234dda5f
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -40,6 +40,16 @@
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Collection deleted</span>
[% END %]
[% ELSIF ( op == "cud-create" ) %]
[% IF ( createSuccess ) %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Collection created successfully</span>
[% END %]
[% ELSE %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Collection creation failed</span>
[% END %]
[% END %]
[% ELSE %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% editColId | uri %]">[% tx("Collection '{collection_title}'", { collection_title = editColTitle }) | html %]</em></a>