Bugzilla – Attachment 146010 Details for
Bug 32787
Patron restrictions admin page has patron categories search bar
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32787: Patron restrictions admin page has patron categories search bar
Bug-32787-Patron-restrictions-admin-page-has-patro.patch (text/plain), 5.03 KB, created by
Owen Leonard
on 2023-02-02 14:56:30 UTC
(
hide
)
Description:
Bug 32787: Patron restrictions admin page has patron categories search bar
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-02-02 14:56:30 UTC
Size:
5.03 KB
patch
obsolete
>From 255646496d1590137ce65be0cb6b07a0ed26e093 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 2 Feb 2023 14:43:38 +0000 >Subject: [PATCH] Bug 32787: Patron restrictions admin page has patron > categories search bar > >This patch updates the patron restriction administration page to correct >the markup around the header and breadcrumbs: Using the header WRAPPER, >using the sub-header WRAPPER, and switching to the system preferences >search bar. > >The patch also corrects the page title to prevent a leading "rsaquo;" >in some cases. > >Note: This patch contains indentation changes, so ignore whitespace when >viewing the diff. > >To test, apply the patch and go to Administration -> Patron >restrictions. The system preferences search should be preselected in the >header search bar, and everything should look correct. >--- > .../prog/en/modules/admin/restrictions.tt | 82 ++++++++++--------- > 1 file changed, 43 insertions(+), 39 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 0a2855af88..c225fc9a4e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt >@@ -4,64 +4,68 @@ > [% PROCESS 'restriction-types.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>[% IF op == 'add_form' %][% IF ( restriction ) %]Modify restriction '[% PROCESS restriction_type_description restriction_type=restriction %]'[% ELSE %]New restriction[% END %][% END %] >-[% IF op == 'delete_confirm' %]Confirm deletion of restriction '[% PROCESS restriction_type_description restriction_type=restriction %]'[% END %] › Patron restrictions › Administration › Koha >+<title>[% IF op == 'add_form' %][% IF ( restriction ) %]Modify restriction '[% PROCESS restriction_type_description restriction_type=restriction %]' › [% ELSE %]New restriction › [% END %][% END %] >+[% IF op == 'delete_confirm' %]Confirm deletion of restriction '[% PROCESS restriction_type_description restriction_type=restriction %]' › [% END %]Patron restrictions › Administration › Koha > </title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > > <body id="admin_restrictions" class="admin"> >-[% INCLUDE 'header.inc' %] >-[% INCLUDE 'patrons-admin-search.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> >- >- [% IF op == 'list' %] >+[% WRAPPER 'header.inc' %] >+ [% INCLUDE 'prefs-admin-search.inc' %] >+[% END %] >+ >+[% WRAPPER 'sub-header.inc' %] >+ <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> >+ <ol> > <li> >- <a href="#" aria-current="page"> >- Patron restrictions >- </a> >+ <a href="/cgi-bin/koha/mainpage.pl">Home</a> > </li> >- [% END %] >- >- [% IF op == 'add_form' %] > <li> >- <a href="/cgi-bin/koha/admin/restrictions.pl">Patron restrictions</a> >+ <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> > </li> >- [% IF restriction %] >+ >+ [% IF op == 'list' %] > <li> > <a href="#" aria-current="page"> >- Modify restriction '[% PROCESS restriction_type_description restriction_type=restriction %]' >+ Patron restrictions > </a> > </li> >- [% ELSE %] >+ [% 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> >+ [% ELSE %] >+ <li> >+ <a href="#" aria-current="page"> >+ New restriction >+ </a> >+ </li> >+ [% 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"> >- New restriction >+ Delete restriction? > </a> > </li> > [% END %] >- [% END %] >+ </ol> >+ </nav> >+[% 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> >- [% END %] >- </ol> >-</nav> > > <div class="main container-fluid"> > <div class="row"> >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32787
:
146010
|
146012
|
146067