Bugzilla – Attachment 118832 Details for
Bug 28035
Improve breadcrumbs of cataloging search page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28035: Improve breadcrumbs of cataloging search page
Bug-28035-Improve-breadcrumbs-of-cataloging-search.patch (text/plain), 4.77 KB, created by
Owen Leonard
on 2021-03-25 17:36:44 UTC
(
hide
)
Description:
Bug 28035: Improve breadcrumbs of cataloging search page
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2021-03-25 17:36:44 UTC
Size:
4.77 KB
patch
obsolete
>From 5a3974885ae050c84af44363b901f7c83aa20b18 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 25 Mar 2021 16:44:33 +0000 >Subject: [PATCH] Bug 28035: Improve breadcrumbs of cataloging search page > >This patch expands the logic around the cataloging search page's >breadcrumbs so that more context is provided in the breadcrumbs menu. > >The page title should also reflect this change. > >Some markup in the body of the page has been updated to clarify the page >structure using headings. > >To test, apply the patch and go to Cataloging. > > - The page title and breadcrumbs menu should show "Home > Cataloging" > - Perform a search which will return results from the catalog, from the > reservoir, or both. The page title and breadcrumbs menu should show: > "Home > Cataloging > Search results." > - Perform a search which will return no results. The page > title and breadcrumbs should be: "Home > Cataloging > No results > found." >--- > .../prog/en/modules/cataloguing/addbooks.tt | 44 ++++++++++++++++------ > 1 file changed, 33 insertions(+), 11 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt >index cd04bc26d4..8a718a3f2a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt >@@ -2,7 +2,7 @@ > [% USE Koha %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Cataloging</title> >+<title>Koha › Cataloging [% IF ( total || breeding_loop ) %] › Search results [% ELSIF ( query ) %] › No results found [% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > >@@ -15,11 +15,27 @@ > <li> > <a href="/cgi-bin/koha/mainpage.pl">Home</a> > </li> >- <li> >- <a href="#" aria-current="page"> >- Cataloging >- </a> >- </li> >+ [% IF ( total || breeding_loop ) %] >+ <li> >+ <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a> >+ </li> >+ <li> >+ <a href="#" aria-current="page">Search results</a> >+ </li> >+ [% ELSIF ( query ) %] >+ <li> >+ <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a> >+ </li> >+ <li> >+ <a href="#" aria-current="page">No results found</a> >+ </li> >+ [% ELSE %] >+ <li> >+ <a href="#" aria-current="page"> >+ Cataloging >+ </a> >+ </li> >+ [% END %] > </ol> > </nav> > >@@ -67,7 +83,9 @@ > > [%# display the search results %] > >+ > [% IF ( total ) %] >+ <h1>Records found in the catalog</h1> > <div> > [% total | html %] result(s) found in catalog, > <a href="#searchresult-breeding">[% breeding_count | html %] result(s) found in reservoir</a> >@@ -160,20 +178,24 @@ > [% END # /FOREACH resultsloo %] > </table> > <div class="pages">[% pagination_bar | $raw %]</div> >- <hr /> > </div> <!-- /.searchresults --> > [% ELSE # IF total %] > [% IF ( query ) %] >- [% IF ( error ) %]<div class="dialog alert">[% END %]<strong>No results found</strong> > [% IF ( error ) %] >- Error: <span class="error">[% error | html %]</span></div> >+ <div class="dialog alert"> >+ [% END %] >+ <h3>No results found</h3> >+ [% IF ( error ) %] >+ Error: <span class="error">[% error | html %]</span> >+ </div> > [% END %] > [% END %] > [% END # /IF total %] > > [% IF ( query ) %] >+ <hr /> > <div id="searchresult-breeding"> >- <h3>Biblios in reservoir</h3> >+ <h2>Records found in the reservoir</h2> > [% IF ( breeding_loop ) %] > <table> > <tr> >@@ -212,7 +234,7 @@ > [% END # /IF breeding_loo %] > </table> > [% ELSE %] >- <p>None</p> >+ <h3 id="searchresult-breeding">No results found</h3> > [% END # /IF breeding_loop %] > </div> > [% END # /IF query %] >-- >2.11.0
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 28035
:
118832
|
118872
|
118904