]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#848945 - Hide Empty Libs checkbox
authorJason Etheridge <jason@esilibrary.com>
Tue, 13 Sep 2011 12:48:52 +0000 (08:48 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 15 Nov 2011 20:09:47 +0000 (15:09 -0500)
commit5a0beda6173e6d7715ed3f454e787297d96d29d2
tree1abb9846cdf526fc946a3d92aded3309a4ff1b79
parenta56df6fc6a4146c104e069a3c81fbb4b72283e94
LP#848945 - Hide Empty Libs checkbox

The "Show Libraries With Items" button in Holdings Maintenance shows all the
libs with items regardless of the library/depth filters. One problem is that
when the list refreshes (whenever an item/volume is edited, deleted, or added),
staff using this feature have to re-press the button, which can take a while for
some bibs. This branch removes this button and replaces it with a "sticky"
checkbox labelled "Hide Empty Libs".

This allows you to do almost the same thing; you can set the context library to
Consortium and the depth filter to the lowest depth, which would normally show
all libs, but then use the checkbox to prune out the ones that have no children
and no volumes(*). One possible use case that we'd lose is the ability to show a
specific set of libs that don't already have volumes in addition to all the libs
that do.

* - Also, the test for whether to hide an org or not is very simplistic, but
easy to implement. A more aggressive test would hide a library and all its
descendants if none of the descendants have volumes.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/xul/staff_client/server/cat/copy_browser.js
Open-ILS/xul/staff_client/server/cat/copy_browser.xul