Bugzilla – Attachment 149600 Details for
Bug 33388
Use template wrapper for breadcrumbs: Patrons part 4
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33388: Use template wrapper for breadcrumbs: Patrons part 4
Bug-33388-Use-template-wrapper-for-breadcrumbs-Pat.patch (text/plain), 11.33 KB, created by
PTFS Europe Sandboxes
on 2023-04-13 13:25:04 UTC
(
hide
)
Description:
Bug 33388: Use template wrapper for breadcrumbs: Patrons part 4
Filename:
MIME Type:
Creator:
PTFS Europe Sandboxes
Created:
2023-04-13 13:25:04 UTC
Size:
11.33 KB
patch
obsolete
>From 9ca94cc5f4b58c9ab9f2ffcf8ef15f16636fe53f Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 4 Apr 2023 11:51:22 +0000 >Subject: [PATCH] Bug 33388: Use template wrapper for breadcrumbs: Patrons part > 4 > >This patch updates several patron 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. > >- Patrons -> > - Patron details > - Notices > - Accounting > - Edit patron > - Add patron > - Patrons requesting modification (submit patron update via the OPAC) > >Signed-off-by: Andrew Auld <andrew.auld@ptfs-europe.com> >--- > .../prog/en/modules/members/memberentrygen.tt | 62 +++++++------------ > .../prog/en/modules/members/members-update.tt | 23 +++---- > .../prog/en/modules/members/merge-patrons.tt | 21 +++---- > .../prog/en/modules/members/moremember.tt | 37 +++++------ > .../prog/en/modules/members/notices.tt | 26 ++++---- > .../prog/en/modules/members/pay.tt | 26 ++++---- > 6 files changed, 78 insertions(+), 117 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index ec2eb0a889..51cbb58996 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -15,8 +15,6 @@ > [% UNLESS blocking_error %] > [% IF ( opadd ) %] > Add patron >- [% ELSIF ( opduplicate ) %] >- Duplicate patron > [% ELSE %] > Modify patron > [% END %] >@@ -38,45 +36,33 @@ legend:hover { > [% 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> >- >- [% IF blocking_error %] >- <li> >+ [% WRAPPER breadcrumbs %] >+ [% WRAPPER breadcrumb_item %] > <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> >- </li> >- [% ELSE %] >- <li> >- <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> >- </li> >- [% IF (borrower_data.firstname || borrower_data.surname ) %] >- <li> >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]"> >- [% INCLUDE 'patron-title.inc' %] >- </a> >- </li> >- [% END %] >- <li> >- <a href="#" aria-current="page"> >- [% IF ( opadd ) %] >- <span>Add patron</span> >- [% ELSIF ( opduplicate ) %] >- <span>Duplicate patron</span> >- [% ELSE %] >- <span>Modify patron</span> >- [% END %] >- [% IF patron_category %] >- ([% patron_category.description | html %]) >+ [% END %] >+ [% UNLESS blocking_error %] >+ [% UNLESS opadd %] >+ [% IF (borrower_data.firstname || borrower_data.surname ) %] >+ [% WRAPPER breadcrumb_item %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]"> >+ [% INCLUDE 'patron-title.inc' %] >+ </a> > [% END %] >- </a> >- </li> >+ [% END %] >+ [% END %] > [% END %] >- </ol> >- </nav> <!-- /#breadcrumbs --> >- [% END %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ [% IF ( opadd ) %] >+ <span>Add patron</span> >+ [% ELSE %] >+ <span>Modify patron</span> >+ [% END %] >+ [% IF patron_category %] >+ ([% patron_category.description | html %]) >+ [% END %] >+ [% END %] >+ [% END #/ WRAPPER breadcrumbs %] >+ [% END #/ WRAPPER sub-header.inc %] > > <div class="main container-fluid"> > <div class="row"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt >index caf4cf1cc3..cb2ede695e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt >@@ -92,22 +92,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/members/members-home.pl">Patrons</a> >- </li> >- <li> >- <a href="#" aria-current="page"> >- Update patron records >- </a> >- </li> >- </ol> >-</nav> >-[% END %] >+ [% END %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Update patron records</span> >+ [% END %] >+ [% END #/ WRAPPER breadcrumbs %] >+[% END #/ WRAPPER sub-header.inc %] > > <div class="main container-fluid"> > <div class="row"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/merge-patrons.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/merge-patrons.tt >index 16bb9ac1e5..65cf0f3781 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/merge-patrons.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/merge-patrons.tt >@@ -81,20 +81,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/members/members-home.pl">Patrons</a> >- </li> >- <li> >- <a href="#" aria-current="page">Merge patron records</a> >- </li> >- </ol> >-</nav> >-[% END %] >+ [% END %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Merge patron records</span> >+ [% END %] >+ [% END #/ WRAPPER breadcrumbs %] >+[% END #/ WRAPPER sub-header.inc %] > > <div class="main container-fluid"> > <div class="row"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >index 9134f2cf37..e43206e987 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -27,31 +27,22 @@ > [% 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> >- >- [% IF blocking_error %] >- <li> >- <a href="#" aria-current="page"> >- Patrons >- </a> >- </li> >- [% ELSE %] >- <li> >- <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> >- </li> >- <li> >- <a href="#" aria-current="page"> >- Patron details for [% INCLUDE 'patron-title.inc' %] >+ [% WRAPPER breadcrumbs %] >+ [% WRAPPER breadcrumb_item %] >+ <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> >+ [% END %] >+ [% UNLESS blocking_error %] >+ [% WRAPPER breadcrumb_item %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]"> >+ [% INCLUDE 'patron-title.inc' %] > </a> >- </li> >+ [% END %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Details</span> >+ [% END %] > [% END %] >- </ol> >- </nav> >- [% END %] >+ [% END #/ WRAPPER breadcrumbs %] >+ [% END #/ WRAPPER sub-header.inc %] > > <div class="main container-fluid"> > <div class="row"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt >index a68cabeef5..71cf92dda8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt >@@ -19,22 +19,20 @@ > [% 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/members/members-home.pl">Patrons</a> >- </li> >- <li> >- <a href="#" aria-current="page"> >- Sent notices for [% INCLUDE 'patron-title.inc' %] >+ [% END %] >+ [% WRAPPER breadcrumb_item %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]"> >+ [% INCLUDE 'patron-title.inc' %] > </a> >- </li> >- </ol> >- </nav> >- [% END %] >+ [% END %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Sent notices</span> >+ [% END %] >+ [% END #/ WRAPPER breadcrumbs %] >+ [% END #/ WRAPPER sub-header.inc %] > > <div class="main container-fluid"> > <div class="row"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt >index 6c809b1498..9dfd317c8b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt >@@ -19,22 +19,20 @@ > [% 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/members/members-home.pl">Patrons</a> >- </li> >- <li> >- <a href="#" aria-current="page"> >- Make a payment for [% INCLUDE 'patron-title.inc' %] >+ [% END %] >+ [% WRAPPER breadcrumb_item %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]"> >+ [% INCLUDE 'patron-title.inc' %] > </a> >- </li> >- </ol> >-</nav> >-[% END %] >+ [% END %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Make a payment</span> >+ [% END %] >+ [% END #/ WRAPPER breadcrumbs %] >+[% END #/ WRAPPER sub-header.inc %] > > <div class="main container-fluid"> > <div class="row"> >-- >2.30.2
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 33388
:
149126
|
149275
|
149600
|
149992