From 5a3974885ae050c84af44363b901f7c83aa20b18 Mon Sep 17 00:00:00 2001 From: Owen Leonard 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' %] -Koha › Cataloging +Koha › Cataloging [% IF ( total || breeding_loop ) %] › Search results [% ELSIF ( query ) %] › No results found [% END %] [% INCLUDE 'doc-head-close.inc' %] @@ -15,11 +15,27 @@
  • Home
  • -
  • - - Cataloging - -
  • + [% IF ( total || breeding_loop ) %] +
  • + Cataloging +
  • +
  • + Search results +
  • + [% ELSIF ( query ) %] +
  • + Cataloging +
  • +
  • + No results found +
  • + [% ELSE %] +
  • + + Cataloging + +
  • + [% END %] @@ -67,7 +83,9 @@ [%# display the search results %] + [% IF ( total ) %] +

    Records found in the catalog

    [% total | html %] result(s) found in catalog, [% breeding_count | html %] result(s) found in reservoir @@ -160,20 +178,24 @@ [% END # /FOREACH resultsloo %]
    [% pagination_bar | $raw %]
    -
    [% ELSE # IF total %] [% IF ( query ) %] - [% IF ( error ) %]
    [% END %]No results found [% IF ( error ) %] - Error: [% error | html %]
    +
    + [% END %] +

    No results found

    + [% IF ( error ) %] + Error: [% error | html %] +
    [% END %] [% END %] [% END # /IF total %] [% IF ( query ) %] +
    -

    Biblios in reservoir

    +

    Records found in the reservoir

    [% IF ( breeding_loop ) %] @@ -212,7 +234,7 @@ [% END # /IF breeding_loo %]
    [% ELSE %] -

    None

    +

    No results found

    [% END # /IF breeding_loop %]
    [% END # /IF query %] -- 2.11.0