From 81a481c694bfd7c3e2e460fac7c14bb7bce90d44 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 10 Oct 2016 08:21:27 +0000 Subject: [PATCH] Bug 14876 (QA Followup) Don't show (0) as holds counts when no holds --- koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc index 76c52f8..09e6824 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc @@ -23,7 +23,7 @@ [% IF ( moredetailview ) %]
  • [% ELSE %]
  • [% END %] Items
  • [% IF ( CAN_user_reserveforothers ) %] - [% IF ( holdsview ) %]
  • [% ELSE %]
  • [% END %]Holds ([% Biblio.HoldsCount( biblio_object_id ) %])
  • + [% IF ( holdsview ) %]
  • [% ELSE %]
  • [% END %]Holds[% IF (Biblio.HoldsCount) %] ([% Biblio.HoldsCount( biblio_object_id ) %])[% END %]
  • [% END %] [% IF ( EasyAnalyticalRecords ) %][% IF ( analyze ) %]
  • [% ELSE %]
  • [% END %]Analytics
  • [% END %] 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 3e8b8b1..07fc85b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -587,7 +587,7 @@ var holdForPatron = function () { [% IF ( SEARCH_RESULT.norequests ) %] No holds allowed [% ELSE %] - Holds ([% SEARCH_RESULT.holdscount %]) + Holds [% IF (SEARCH_RESULT.holdscount) %]([% SEARCH_RESULT.holdscount %])[% END %] [% IF ( holdfor ) %] | Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])[% END %] [% END %] -- 2.1.4