]> git.koha-community.org Git - koha.git/commit
Bug 17142 - Don't show library group selection in advanced search if groups are not...
authorJacek Ablewicz <abl@biblos.pk.edu.pl>
Wed, 17 Aug 2016 16:42:37 +0000 (18:42 +0200)
committerFrédéric Demians <f.demians@tamil.fr>
Thu, 8 Sep 2016 19:53:50 +0000 (21:53 +0200)
commita1fdbf92da71e0a4348bcff682b26576f88ccc38
tree211e1abd5febc3b46f68bb8e94d659872822e198
parentc364afd2aa9da8455853c7481c620e0cbef599c3
Bug 17142 - Don't show library group selection in advanced search if groups are not defined

Even if library groups/search domains are not defined in the system,
(empty) select for "Groups of libraries" under "Location and
availability" section in OPAC advanced search is still visible; it
shouldn't. Side effect of Bug 15295 - 'searchdomainloop' variable
in the template is now an object, it needs a different kind of statement
(.count) for checking if it's empty or not.

To test:

1) apply patch
2) when there are no groups of libraries defined in Administration ->
Libraries and Groups, "Groups of libraries" selection should be
no longer visible in OPAC adavanced search page
3) add library group or two: "Groups of libraries" selection should
reappear.

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 1c87129971ddcd4289c42083a6005638b0d5370d)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt