Bug 28037: Improve breadcrumbs of CSV profiles page

This patch expands the logic around the page title and breadcrumbs of
the CSV profiles page.

The name of the page has also been changed from "CSV export profiles" to
"CSV profiles" to match links elsewhere in Koha.

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

- The initial state of the page title and breadcrumbs menu should be
  "Tools > CSV profiles."
- Click "New CSV profile." The page title and breadcrumbs should show
  "Tools > CSV profiles > New CSV profile."
- Edit an existing CSV profile. The page title and breadcrumbs should
  show "Tools > CSV profiles > Modify a CSV profile."

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Owen Leonard 2021-03-25 18:20:39 +00:00 committed by Jonathan Druart
parent 1fc05de2ef
commit 18bbf42b33

View file

@ -2,7 +2,16 @@
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Tools &rsaquo; CSV export profiles</title>
<title>
Koha &rsaquo; Tools &rsaquo; CSV profiles
[% IF op == 'add_form' %]
[% IF csv_profile %]
&rsaquo; Modify a CSV profile
[% ELSE %]
&rsaquo; New CSV profile
[% END %]
[% END %]
</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -18,11 +27,28 @@
<li>
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
</li>
<li>
<a href="#" aria-current="page">
CSV export profiles
</a>
</li>
[% IF op == 'add_form' %]
<li>
<a href="/cgi-bin/koha/tools/csv-profiles.pl">
CSV profiles
</a>
</li>
[% IF csv_profile %]
<li>
<a href="#" aria-current="page">Modify a CSV profile</a>
</li>
[% ELSE %]
<li>
<a href="#" aria-current="page">New CSV profile</a>
</li>
[% END %]
[% ELSE %]
<li>
<a href="#" aria-current="page">
CSV profiles
</a>
</li>
[% END %]
</ol>
</nav>