]> git.koha-community.org Git - koha.git/commit
Bug 14876 - Show number of holds per record on the search results
authorNick Clemens <nick@bywatersolutions.com>
Mon, 31 Oct 2016 14:39:40 +0000 (14:39 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 16 Dec 2016 11:37:30 +0000 (11:37 +0000)
commitb292874538ac9af55314b55155d98e2c42d00970
tree1eda339f92ca18fb6d746c7923bd2ea7e6734385
parentb222e7d9218e353908ed8d7eda1407d8846b75b5
Bug 14876 - Show number of holds per record on the search results

This patch sues the existing plugin
Koha::Template::Plugin::Biblio->HoldsCount

To be consistent with current behaviour 'Holds (0)' is shown when
no holds have been placed on an item

To test:
1 - Search in staff
2 - Note holds link has no extra information
3 - Apply patch
4 - prove -v t/db_dependent/Template/Plugin/Holds.t
5 - Do search in staff that returns records with some holds (i.e. place
                some holds)
6 - Note the number of holds now displays next to the text of the link:
    Holds (#)

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt