Bug 10348: Show number of items on tab headings in the staff client
authorOwen Leonard <oleonard@myacpl.org>
Mon, 25 Jun 2018 19:55:03 +0000 (15:55 -0400)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 29 Jun 2018 20:34:15 +0000 (20:34 +0000)
commit255c484c9b9b9d92774bd17fa79e9f05dd612858
treeaf3fbed606e489b7a225309357654c34995bf874
parent7f79a9a5f8c8b2fe2c29d270264bdfa48a7056bd
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 <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt