Bug 11139: Add support for multiple values in AdvancedSearchTypes
commit986cbaf830923ce75d396e1a2d87ae8f029f4be9
authorJulian Maurice <julian.maurice@biblibre.com>
Thu, 1 Oct 2015 13:13:20 +0000 (1 15:13 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 22 Oct 2015 14:36:53 +0000 (22 11:36 -0300)
tree802ca687c51430255ec6b4b79d096978f17f89b4
parentbc629dcd2aba8fdad5d8d6d883bf6713a455ff91
Bug 11139: Add support for multiple values in AdvancedSearchTypes

AdvancedSearchTypes syspref can be multivalued, opac-topissues.pl
have to support that.

AdvancedSearchTypes can have one or more of the following values:
'itemtypes', 'ccode', 'loc'.  But this patch adds support only for
itemtypes and ccode.  AdvancedSearchTypes can still contain 'loc' but it
will change nothing to the behaviour of opac-topissues.pl.

This patch also removes duplicate code in template (the "Refine your
search" form was written in two different places)
This introduces a small behaviour change: when there is no results,
instead of having the form in the center of the page, it remains in the
left sidebar and we have a "No results" message in the main area.

Depends on bug 14788

Tested on top of 14788. Works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Template/Plugin/ItemTypes.pm
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-topissues.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-topissues.tt
opac/opac-topissues.pl