Bugzilla – Attachment 149071 Details for
Bug 33149
Use template wrapper for breadcrumbs: Circulation part 1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33149: Use template wrapper for breadcrumbs: Circulation part 1
Bug-33149-Use-template-wrapper-for-breadcrumbs-Cir.patch (text/plain), 12.98 KB, created by
Nick Clemens (kidclamp)
on 2023-04-01 23:11:21 UTC
(
hide
)
Description:
Bug 33149: Use template wrapper for breadcrumbs: Circulation part 1
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-04-01 23:11:21 UTC
Size:
12.98 KB
patch
obsolete
>From 1c8c6960c38cffad7789a02490d22a9659058bbd Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 6 Mar 2023 16:51:56 +0000 >Subject: [PATCH] Bug 33149: Use template wrapper for breadcrumbs: Circulation > part 1 > >This patch updates several circulation templates so that they use the >new WRAPPER for displaying breadcrumbs. > >The patch also makes a minor change to bookcount.pl to allow for correct >display of the record title using the biblio-title include. > >Navigation context for bookcount.tt has been changed to "catalog" from >"circulation" because the page is linked to from a catalog-related page. > >To test, apply the patch and test each page and its variations. >Breadcrumbs should look correct, and each link should be correct. > >- Circulation home page > - Checkout notes > - Article requests > - Transfer > - Overdues with fines > - Check out -> Check out to patron -> > - Batch check out >- Catalog -> Search -> Bibliographic record -> Items > - View item's checkout history. The updated page should show this new > breadcrumb sequence: Home -> Catalog -> [title] -> Items -> > Circulation statistics > >Signed-off-by: Andrew Auld <andrew.auld@ptfs-europe.com> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > circ/bookcount.pl | 1 + > .../prog/en/modules/circ/article-requests.tt | 22 +++---- > .../prog/en/modules/circ/bookcount.tt | 57 ++++++++++--------- > .../prog/en/modules/circ/branchoverdues.tt | 26 ++++----- > .../prog/en/modules/circ/branchtransfers.tt | 25 ++++---- > .../prog/en/modules/circ/checkout-notes.tt | 24 +++----- > .../prog/en/modules/circ/circulation-home.tt | 19 ++----- > .../circ/circulation_batch_checkouts.tt | 35 ++++-------- > 8 files changed, 85 insertions(+), 124 deletions(-) > >diff --git a/circ/bookcount.pl b/circ/bookcount.pl >index eaca8c4d04..0d4a79590c 100755 >--- a/circ/bookcount.pl >+++ b/circ/bookcount.pl >@@ -68,6 +68,7 @@ for my $library ( @$libraries ) { > } > > $template->param( >+ biblio => $biblio, > biblionumber => $biblionumber, > title => $biblio->title, > author => $biblio->author, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt >index bb64189312..a81947a707 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt >@@ -133,22 +133,16 @@ > [% 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> >+ [% WRAPPER breadcrumbs %] >+ [% WRAPPER breadcrumb_item %] > <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> >- </li> >- <li> >- <a href="#" aria-current="page">Article requests</a> >- </li> >- </ol> >- </nav> >- [% END %] >+ [% END %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Article requests</span> >+ [% END %] >+ [% END #/ WRAPPER breadcrumbs %] >+ [% END #/ WRAPPER sub-header.inc %] > > <div class="main container-fluid starthidden"> > <div class="row"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/bookcount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/bookcount.tt >index 43dc82d75f..c3a4e7b5c8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/bookcount.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/bookcount.tt >@@ -1,51 +1,54 @@ >+[% USE raw %] > [% USE Koha %] > [% USE KohaDates %] > [% USE Branches %] > [% SET footerjs = 1 %] >+[% PROCESS 'i18n.inc' %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Circulation statistics for [% title | html %] › Circulation › Koha</title> >+<title>Circulation statistics for [% title | html %] › Catalog › Koha</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > >-<body id="circ_bookcount" class="circ"> >+<body id="catalog_bookcount" class="catalog"> > [% WRAPPER 'header.inc' %] >- [% INCLUDE 'circ-search.inc' %] >+ [% 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> >- >+ [% WRAPPER breadcrumbs %] >+ [% WRAPPER breadcrumb_item %] >+ <a href="/cgi-bin/koha/circ/circulation-home.pl">Catalog</a> >+ [% END %] > [% IF blocking_error %] >- <li> >- <a href="#" aria-current="page"> >- Circulation >- </a> >- </li> >- >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Error</span> >+ [% END %] > [% ELSE %] >- <li> >- <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> >- </li> >- <li> >- <a href="#" aria-current="page"> >- Circulation statistics for [% title |html %] >- </a> >- </li> >+ [% WRAPPER breadcrumb_item %] >+ [% INCLUDE 'biblio-title.inc' link = 1 %] >+ [% END %] >+ [% WRAPPER breadcrumb_item %] >+ <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblionumber | uri %]">Items</a> >+ [% END %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Circulation statistics</span> >+ [% END %] > [% END %] >- </ol> >-</nav> >-[% END %] >+ [% END #/ WRAPPER breadcrumbs %] >+[% END #/ WRAPPER sub-header.inc %] > > <div class="main container-fluid"> > <div class="row"> > <div class="col-sm-10 col-sm-push-2"> > <main> > >- <h1>Circulation statistics for [% title | html %] [% IF ( author ) %] by [% author |html %][% END %]</h1> >+ <h1> >+ [% IF ( author ) %] >+ Circulation statistics for [% INCLUDE 'biblio-title.inc' %] by [% author |html %] >+ [% ELSE %] >+ Circulation statistics for [% INCLUDE 'biblio-title.inc' %] >+ [% END %] >+ </h1> > > [% INCLUDE 'blocking_errors.inc' %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchoverdues.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchoverdues.tt >index 82cad8605f..1f3baf4045 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchoverdues.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchoverdues.tt >@@ -1,5 +1,7 @@ >+[% USE raw %] > [% USE Branches %] > [% USE Koha %] >+[% PROCESS 'i18n.inc' %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Overdues at [% Branches.GetLoggedInBranchname | html %] › Circulation › Koha</title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -9,23 +11,17 @@ > [% INCLUDE 'circ-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> >+ [% WRAPPER breadcrumbs %] >+ [% WRAPPER breadcrumb_item %] > <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> >- </li> >- <li> >- <a href="#" aria-current="page"> >- Overdues at [% Branches.GetLoggedInBranchname | html %] >- </a> >- </li> >- </ol> >-</nav> >-[% END %] >+ [% END %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ [% tx('Overdues at {library}', { library = Branches.GetLoggedInBranchname }) %] >+ [% 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/circ/branchtransfers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt >index ea5ffe7887..d3e7369ffc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt >@@ -1,3 +1,4 @@ >+[% USE raw %] > [% USE Koha %] > [% USE Branches %] > [% USE ItemTypes %] >@@ -11,23 +12,17 @@ > [% INCLUDE 'circ-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> >+ [% WRAPPER breadcrumbs %] >+ [% WRAPPER breadcrumb_item %] > <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> >- </li> >- <li> >- <a href="#" aria-current="page"> >- Transfers >- </a> >- </li> >- </ol> >-</nav> >-[% END %] >+ [% END %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Transfers</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/circ/checkout-notes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt >index 1e4eb701f0..82a4f5e1d5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt >@@ -15,24 +15,16 @@ > [% INCLUDE 'circ-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> >+ [% WRAPPER breadcrumbs %] >+ [% WRAPPER breadcrumb_item %] > <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> >- </li> >- <li> >- <a href="#" aria-current="page"> >- Checkout notes >- </a> >- </li> >- </ol> >-</nav> >-[% END %] >+ [% END %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Checkout notes</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/circ/circulation-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt >index 2e7849c630..1c2c071bcb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt >@@ -11,19 +11,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"> >- Circulation >- </a> >- </li> >- </ol> >-</nav> >-[% END %] >+ [% WRAPPER breadcrumbs %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Circulation</span> >+ [% END %] >+ [% END #/ WRAPPER breadcrumbs %] >+[% END #/ WRAPPER sub-header.inc %] > > <div class="main container-fluid"> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt >index 8d89c75e09..f5396da1ba 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt >@@ -25,34 +25,21 @@ > [% 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/circ/circulation-home.pl">Circulation</a> >- </li> >+ [% END %] > > [% IF patron %] >- <li> >- <a href="/cgi-bin/koha/circ/circulation.pl">Batch check out</a> >- </li> >- <li> >- <a href="#" aria-current="page"> >- [% INCLUDE 'patron-title.inc' %] >- </a> >- </li> >- [% ELSE %] >- <li> >- <a href="#" aria-current="page"> >- Batch check out >- </a> >- </li> >+ [% WRAPPER breadcrumb_item %] >+ <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber | uri %]">Check out to [% INCLUDE 'patron-title.inc' %]</a> >+ [% END %] > [% END %] >- </ol> >-</nav> >-[% END %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Batch check out</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 33149
:
147793
|
148901
| 149071