From 2a096f70ee03f5ceaf24830dc77ba49fba679b68 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 27 Feb 2025 00:24:12 +0000 Subject: [PATCH] Bug 37883: A couple minor fixes to results.tt --- .../prog/en/modules/catalogue/results.tt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 0957aaa67cd..d1fb09eefcd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -756,9 +756,9 @@ , None available [% END %] - [% IF SEARCH_RESULT.branchtotalcount > 0 && Koha.Preference('FilterSearchResultsByLoggedInBranch') %] + [% IF SEARCH_RESULT.branchtotalcount.size && Koha.Preference('FilterSearchResultsByLoggedInBranch') %]
- [% tnx('{count} item', '{count} items', SEARCH_RESULT.branchtotalcount, {count = SEARCH_RESULT.branchtotalcount}) | html %][% IF ( SEARCH_RESULT.branchavailablecount ) %] + [% tnx('{count} local item', '{count} local items', SEARCH_RESULT.branchtotalcount, {count = SEARCH_RESULT.branchtotalcount}) | html %][% IF ( SEARCH_RESULT.branchavailablecount ) %] , [% SEARCH_RESULT.branchavailablecount | html %] available: [% ELSE %] , None available @@ -774,9 +774,9 @@ , None available [% END %]
- [% IF SEARCH_RESULT.branchtotalcount > 0 %] + [% IF SEARCH_RESULT.branchtotalcount.size %]
- [% tnx('{count} item', '{count} items', SEARCH_RESULT.branchtotalcount, {count = SEARCH_RESULT.branchtotalcount}) | html %][% IF ( SEARCH_RESULT.branchavailablecount ) %] + [% tnx('{count} local item', '{count} local items', SEARCH_RESULT.branchtotalcount, {count = SEARCH_RESULT.branchtotalcount}) | html %][% IF ( SEARCH_RESULT.branchavailablecount ) %] , [% SEARCH_RESULT.branchavailablecount | html %] available: [% ELSE %] , None available @@ -880,10 +880,10 @@ [% ELSE %] No items [% END %] + [% IF SEARCH_RESULT.branchtotalcount.size && Koha.Preference('FilterSearchResultsByLoggedInBranch') %] + + [% END %] [% END # /IF ( SEARCH_RESULT.items_count ) %] - [% IF SEARCH_RESULT.branchtotalcount == 0 && Koha.Preference('FilterSearchResultsByLoggedInBranch') %] - No items - [% END %]
-- 2.39.5