From 255c484c9b9b9d92774bd17fa79e9f05dd612858 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 25 Jun 2018 15:55:03 -0400 Subject: [PATCH] Bug 10348: Show number of items on tab headings in the staff client This patch uses Template Toolkit's size() method to add a count to the bibliographic detail page's holdings and images tabs. To test, apply the patch and view the detail page for a record in the staff client. Check under the following conditions: - The SeparateHoldings system preference is set to "Don't separate" - The holdings tab should show the correct item count. - The SeparateHoldings system preference is set to "Separate" - The "[Library] holdings" tab and "Other holdings" tabs should have the correct item counts. - With LocalCoverImages enabled the "Images" tab should show the correct count of attached images. Test with zero or more attached images. Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- .../prog/en/modules/catalogue/detail.tt | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index ec6695c2ce..e6361be04d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -292,16 +292,28 @@