Bugzilla – Attachment 149246 Details for
Bug 33434
Use template wrapper for breadcrumbs: Point of sale
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33434: Use template wrapper for breadcrumbs: Point of sale
Bug-33434-Use-template-wrapper-for-breadcrumbs-Poi.patch (text/plain), 4.72 KB, created by
Owen Leonard
on 2023-04-06 18:36:37 UTC
(
hide
)
Description:
Bug 33434: Use template wrapper for breadcrumbs: Point of sale
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-04-06 18:36:37 UTC
Size:
4.72 KB
patch
obsolete
>From c9bb75c76410b515ecad10efef1acec1af949249 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 6 Apr 2023 16:04:26 +0000 >Subject: [PATCH] Bug 33434: Use template wrapper for breadcrumbs: Point of > sale > >This patch updates point of sale 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. > >- If necessary, enable the EnablePointOfSale and UseCashRegisters system > preferences. > - If none are configured, define at least one register and at least > one debit type by going to Administration -> Cash registers and > Administration -> Debit types. > - From the staff interface's user menu in the upper right of the > header, choose "Set library and cash register." > - Select a cash register. > - Go to the Point of Sale page, and check the breadcrumbs on that > page. > - Check the "Transaction history for [register name]" and "Cash > summary for [library] pages linked in the left-hand sidebar. >--- > .../intranet-tmpl/prog/en/modules/pos/pay.tt | 19 +++++--------- > .../prog/en/modules/pos/register.tt | 23 ++++++----------- > .../prog/en/modules/pos/registers.tt | 25 +++++++------------ > 3 files changed, 23 insertions(+), 44 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >index 64fdb88fac..40f276e9c3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >@@ -18,19 +18,12 @@ > [% 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="#" aria-current="page"> >- Point of sale >- </a> >- </li> >- </ol> >-</nav> >-[% END %] >+ [% WRAPPER breadcrumbs %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Point of sale</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/pos/register.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >index bafe7494eb..776d8b19a4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >@@ -18,22 +18,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/pos/pay.pl">Cash management</a> >- </li> >- <li> >- <a href="#" aria-current="page"> >- Transaction history for [% register.name | html %] >- </a> >- </li> >- </ol> >-</nav> >-[% END %] >+ [% END %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Transaction history for [% register.name | html %]</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/pos/registers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt >index d80d018989..3b78072e1c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt >@@ -15,22 +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> >- <a href="/cgi-bin/koha/pos/pay.pl">Cash management</a> >- </li> >- <li> >- <a href="#" aria-current="page"> >- Cash summary for [% library.branchname | html %] >- </a> >- </li> >- </ol> >- </nav> >- [% END %] >+ [% WRAPPER breadcrumbs %] >+ [% WRAPPER breadcrumb_item %] >+ <a href="/cgi-bin/koha/pos/pay.pl">Cash management</a> >+ [% END %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Cash summary for [% library.branchname | html %]</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 33434
:
149246
|
149291
|
149300