Bug 29528: Breadcrumbs on HTML customizations take you to news

This patch removes the "Additional contents" breadcrumb when working
with news items or HTML customizations. Since news and HTML
customizations are separate links on the Tools home page there's no
reason to have the breadcrumbs imply the two sections are connected in
any way. We already have the "See News" link, for example, for switching
quickly between the two areas.

To test, apply the patch and go to Tools -> News.

- The breadcrumbs should be: Home > Tools > News
  - Click "New entry." The breadcrumbs should be: Home > Tools > News >
    Add additional content (News). Clicking "News" should take you to
    the correct page.
- Go to Tools -> HTML customizations.
  - The breadcrumbs should be Home >  Tools > HTML customizations.
  - Click "New entry." The breadcrumbs should be: Home > Tools >  HTML
    customizations > Add additional content (HTML customizations).
    Clicking "HTML customizations" should take you to the correct page.

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Owen Leonard 2021-11-22 16:46:01 +00:00 committed by Fridolin Somers
parent d308a064d7
commit 61de505ef3
1 changed files with 2 additions and 5 deletions

View File

@ -35,9 +35,6 @@
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
</li>
<li>
<a href="/cgi-bin/koha/tools/additional-contents.pl">Additional contents</a>
</li>
[% IF op == 'add_form' %]
<li>
[% IF category == 'news' %]
@ -49,9 +46,9 @@
<li>
<a href="#" aria-current="page">
[% IF additional_content.idnew %]
Modify additional content
Modify additional content ([% IF category == 'news' %]News[% ELSE %]HTML customizations[% END %])
[% ELSE %]
Add additional content
Add additional content ([% IF category == 'news' %]News[% ELSE %]HTML customizations[% END %])
[% END %]
</a>
</li>