From db1c12297878bb5f3e2c256e6bcb3b2f029d17ce Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Mon, 28 Mar 2022 11:24:08 +0100
Subject: [PATCH] Bug 23681: Updates for bug 26703

This patch fixes the title ordering and also replaces the breadcrumbs
with the modern nav block equivilent

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
---
 .../prog/en/modules/admin/restrictions.tt     | 53 ++++++++++++++++---
 1 file changed, 47 insertions(+), 6 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt
index 6e2353b5a9..c9b463061f 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt
@@ -3,8 +3,8 @@
 [% USE Koha %]
 [% SET footerjs = 1 %]
 [% INCLUDE 'doc-head-open.inc' %]
-<title>Koha &rsaquo; Administration &rsaquo; Patron restrictions &rsaquo; [% IF op == 'add_form' %][% IF ( restriction ) %]Modify restriction '[% restriction.display_text | html %]'[% ELSE %]New restriction[% END %][% END %]
-[% IF op == 'delete_confirm' %]Confirm deletion of restriction '[% restriction.display_text | html %]'[% END %]
+<title>[% IF op == 'add_form' %][% IF ( restriction ) %]Modify restriction '[% restriction.display_text | html %]'[% ELSE %]New restriction[% END %][% END %]
+[% IF op == 'delete_confirm' %]Confirm deletion of restriction '[% restriction.display_text | html %]'[% END %] &rsaquo; Patron restrictions &rsaquo; Administration &rsaquo; Koha
 </title>
 [% INCLUDE 'doc-head-close.inc' %]
 </head>
@@ -13,10 +13,51 @@
 [% INCLUDE 'header.inc' %]
 [% INCLUDE 'patrons-admin-search.inc' %]
 
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; [% IF op == 'add_form' %] <a href="/cgi-bin/koha/admin/restrictions.pl">Patron restrictions</a> &rsaquo; [% IF ( restriction ) %]Modify restriction '[% restriction.display_text | html %]'[% ELSE %]New restriction[% END %][% END %]
-[% IF op == 'delete_confirm' %] <a href="/cgi-bin/koha/admin/restrictions.pl">Patron restrictions</a> &rsaquo; Confirm deletion of restriction '[% restriction.display_text | html %]'[% END %]
-[% IF op == 'delete_confirmed' %] <a href="/cgi-bin/koha/admin/categories.pl">Patron restrictions</a> &rsaquo; Restriction deleted[% END %]
-[% IF op == 'list' %]Patron restrictions[% END %]</div>
+<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="/cgi-bin/koha/admin/restrictions.pl">Patron restrictions</a>
+    </li>
+
+    [% IF op == 'list' %]
+        <li>
+            <a href="#" aria-current="page">
+                All restrictions
+            </a>
+        </li>
+    [% END %]
+
+    [% IF op == 'add_form' %]
+        [% IF restriction %]
+            <li>
+                <a href="#" aria-current="page">
+                    Modify restriction '[% restriction.display_text | html %]'
+                </a>
+            </li>
+        [% ELSE %]
+            <li>
+                <a href="#" aria-current="page">
+                    New restriction
+                </a>
+            </li>
+        [% END %]
+    [% END %]
+
+    [% IF op == 'delete_confirm' %]
+        <li>
+            <a href="#" aria-current="page">
+                Delete restriction?
+            </a>
+        </li>
+    [% END %]
+    </ol>
+</nav>
 
 <div class="main container-fluid">
     <div class="row">
-- 
2.20.1