Bug 33127: Use template wrapper for breadcrumbs: Administration part 5

This patch updates several administration templates so that they
use the new WRAPPER for displaying breadcrumbs.

To test, apply the patch and test each page and its variations.
Breadcrumbs should look correct, and each link should be correct.

Administration ->
 - Record overlay rules
 - Search filters (must have SavedSearchFilters enabled)
 - System preferences
   -> OverDriveAuthName -> OverDrive library authnames table
 - MARC bibliographic framework -> MARC structure (list, new, edit,
   delete confirm).
 - Record matching rules (list, new, edit, delete confirm)
 - OAI sets configuration (list, new, edit)
   -> Define mappings
 - Patron attribute types (list, new, edit, delete confirm)
 - Patron restrictions (list, new, edit, delete confirm)

Signed-off-by: Andrew Auld <andrew.auld@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-01-09 11:56:17 +00:00 committed by Tomas Cohen Arazi
parent e18e32744f
commit b81bcaba9d
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
9 changed files with 112 additions and 186 deletions

View file

@ -20,23 +20,18 @@
[% INCLUDE 'cat-search.inc' %]
[% END %]
[% WRAPPER 'sub-header.inc' %]
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li>
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
</li>
<li>
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
</li>
<li>
<a href="#" aria-current="page">
MARC overlay rules
</a>
</li>
</ol>
</nav>
[% END %]
[% WRAPPER 'sub-header.inc' %]
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
[% END %]
[% WRAPPER breadcrumb_item %]
<a href="#" aria-current="page">
<span>MARC overlay rules</span>
</a>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
<div class="main container-fluid">
<div class="row">

View file

@ -93,15 +93,6 @@ MARC frameworks &rsaquo; Administration &rsaquo; Koha
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
[% WRAPPER 'sub-header.inc' %]
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
</ol>
</nav>
[% END %]
<div class="main container-fluid">
<div class="row">
<div class="col-sm-10 col-sm-push-2">

View file

@ -12,23 +12,18 @@
[% END %]
[% WRAPPER 'sub-header.inc' %]
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li>
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
</li>
<li>
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
</li>
<li>
[% END %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/oai_sets.pl">OAI sets configuration</a>
</li>
<li>
<a href="#" aria-current="page">OAI set mappings</a>
</li>
</ol>
</nav>
[% END %]
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>OAI set mappings</span>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
<div class="main container-fluid">
<div class="row">

View file

@ -16,45 +16,34 @@
[% END %]
[% WRAPPER 'sub-header.inc' %]
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li>
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
</li>
<li>
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
</li>
[% END %]
[% IF ( op_new || op_mod ) %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/oai_sets.pl">OAI sets configuration</a>
[% END %]
[% END %]
[% IF ( op_new ) %]
<li>
<a href="/cgi-bin/koha/admin/oai_sets.pl">OAI sets configuration</a>
</li>
<li>
<a href="#" aria-current="page">
Add a new OAI set
</a>
</li>
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Add a new OAI set</span>
[% END %]
[% ELSIF ( op_mod ) %]
<li>
<a href="/cgi-bin/koha/admin/oai_sets.pl">OAI sets configuration</a>
</li>
<li>
<a href="#" aria-current="page">
Edit OAI set '[% spec | html %]'
</a>
</li>
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Edit OAI set '[% spec | html %]'</span>
[% END %]
[% ELSE %]
<li>
<a href="#" aria-current="page">
OAI sets configuration
</a>
</li>
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>OAI sets configuration</span>
[% END %]
[% END %]
</ol>
</nav>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
<div class="main container-fluid">
<div class="row">

View file

@ -15,20 +15,15 @@
[% END %]
[% WRAPPER 'sub-header.inc' %]
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li>
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
</li>
<li>
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
</li>
<li>
<a href="#" aria-current="page">OverDrive library authnames</a>
</li>
</ol>
</nav>
[% END %]
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>OverDrive library authnames</span>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
<div class="main container-fluid">
<div class="row">

View file

@ -27,49 +27,38 @@ Patron attribute types &rsaquo; Administration &rsaquo; Koha
[% END %]
[% WRAPPER 'sub-header.inc' %]
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li>
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
</li>
<li>
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
</li>
[% END %]
[% IF ( attribute_type_form || delete_attribute_type_form ) %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/patron-attr-types.pl">Patron attribute types</a>
[% END %]
[% END %]
[% IF ( attribute_type_form ) %]
<li>
<a href="/cgi-bin/koha/admin/patron-attr-types.pl">Patron attribute types</a>
</li>
<li>
<a href="#" aria-current="page">
[% IF ( edit_attribute_type ) %]
Modify patron attribute type
[% ELSE %]
Add patron attribute type
[% END %]
</a>
</li>
[% WRAPPER breadcrumb_item bc_active= 1 %]
[% IF ( edit_attribute_type ) %]
<span>Modify patron attribute type</span>
[% ELSE %]
<span>Add patron attribute type</span>
[% END %]
[% END %]
[% ELSIF ( delete_attribute_type_form ) %]
<li>
<a href="/cgi-bin/koha/admin/patron-attr-types.pl">Patron attribute types</a>
</li>
<li>
<a href="#" aria-current="page">
Confirm deletion of patron attribute type &quot;[% code | html %]&quot;
</a>
</li>
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Confirm deletion of patron attribute type '[% code | html %]'</span>
[% END %]
[% ELSE %]
<li>
<a href="#" aria-current="page">
Patron attribute types
</a>
</li>
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Patron attribute types</span>
[% END %]
[% END %]
</ol>
</nav>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
<div class="main container-fluid">
<div class="row">

View file

@ -19,22 +19,15 @@
[% END %]
[% WRAPPER 'sub-header.inc' %]
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li>
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
</li>
<li>
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
</li>
<li>
<a href="#" aria-current="page">
System preferences
</a>
</li>
</ol>
</nav>
[% END %]
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>System preferences</span>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
<div class="main container-fluid">
<div class="row">

View file

@ -16,56 +16,40 @@
[% END %]
[% WRAPPER 'sub-header.inc' %]
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li>
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
</li>
<li>
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
</li>
[% END %]
[% IF op == 'list' %]
<li>
<a href="#" aria-current="page">
Patron restrictions
</a>
</li>
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Patron restrictions</span>
[% END %]
[% ELSE %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/restrictions.pl">Patron restrictions</a>
[% END %]
[% END %]
[% IF op == 'add_form' %]
<li>
<a href="/cgi-bin/koha/admin/restrictions.pl">Patron restrictions</a>
</li>
[% IF restriction %]
<li>
<a href="#" aria-current="page">
Modify restriction '[% PROCESS restriction_type_description restriction_type=restriction %]'
</a>
</li>
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Modify restriction '[% PROCESS restriction_type_description %]'</span>
[% END %]
[% ELSE %]
<li>
<a href="#" aria-current="page">
New restriction
</a>
</li>
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>New restriction</span>
[% END %]
[% END %]
[% END %]
[% IF op == 'delete_confirm' %]
<li>
<a href="/cgi-bin/koha/admin/restrictions.pl">Patron restrictions</a>
</li>
<li>
<a href="#" aria-current="page">
Delete restriction?
</a>
</li>
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Delete restriction?</span>
[% END %]
[% END %]
</ol>
</nav>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
<div class="main container-fluid">
<div class="row">

View file

@ -11,21 +11,16 @@
[% INCLUDE 'header.inc' %]
[% INCLUDE 'prefs-admin-search.inc' %]
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li>
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
</li>
<li>
[% WRAPPER 'sub-header.inc' %]
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
</li>
<li>
<a href="#" aria-current="page">
Search filters
</a>
</li>
</ol>
</nav>
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Search filters</span>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
<div class="main container-fluid">
<div class="row">