Koha/catalogue
blou 92d021f989 Bug 10986: add system preference to limit the list of languages in advanced search
In Advanced Search, the list of available language is long and will only
get longer.  For a library offering books in 2-3 languages, that is
offering too many options to the user (most of the small libraries we
deal with only offer documents in two languages).

Code changes:
Languages.pm: Extract getAllLanguages to make a more customizable
getLanguages (have getAllLanguage call it, so rest of codebase is
oblivious to the change).  Build array returned based on system pref if
corresponding argument is set.

search.pl and opac-search.pl: call getLanguages instead of
getAllLanguages.

TESTING
0) All language codes are iso 639-2 (three characters)
1) in OPAC, Advanced search, open Language box, acknowledge 30+ items.
2) in Intranet, go to system preferences AdvancedSearchLanguages,
   enter "ita|eng"
3) back in OPAC, refresh screen, acknowledge only Italian and English
   are listed.
4) in Intranet, click Search then click "More options" to make the
   Language box appear.  Acknowledge limited options.
5) Regression Test: Back to the preference, empty the field then save.
   Go back to the OPAC and Intranet search, refresh the page, then the
   Language drop-box will now contain 30+ items.

Signed-off-by: Mathieu Saby <mathieu.saby@univ-rennes2.fr>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-04-19 17:18:32 +00:00
..
cardview.pl Bug 4330 : Adding some copyright BibLibre statements 2011-03-21 10:57:20 +13:00
detail.pl Bug 9823: QA follow-up for GetReservesFromBiblionumber calls 2014-01-30 16:23:34 +00:00
export.pl Bug 9665: QA follow up fixing tabs 2013-06-17 11:25:40 -07:00
getitem-ajax.pl Bug 7175: Allow to choose which items to receive 2012-05-21 17:46:07 +02:00
image.pl Bug 8255: allow local cover images to be cached 2012-06-25 18:12:29 +02:00
imageviewer.pl Bug 11829: fix JavaScript error on staff client biblio details pages if template variables are undefined 2014-02-27 16:00:35 +00:00
ISBDdetail.pl Bug 11829: fix JavaScript error on staff client biblio details pages if template variables are undefined 2014-02-27 16:00:35 +00:00
issuehistory.pl Bug 10868 - Use new DataTables include in catalog templates 2013-09-21 19:27:08 +00:00
labeledMARCdetail.pl Bug 11829: fix JavaScript error on staff client biblio details pages if template variables are undefined 2014-02-27 16:00:35 +00:00
MARCdetail.pl Bug 11885: (follow-up) remove tabs 2014-04-11 14:50:59 +00:00
moredetail.pl Bug 11829: fix JavaScript error on staff client biblio details pages if template variables are undefined 2014-02-27 16:00:35 +00:00
search.pl Bug 10986: add system preference to limit the list of languages in advanced search 2014-04-19 17:18:32 +00:00
showmarc.pl Bug 11329: Check for MARC record existence in catalogue/showmarc 2014-01-17 15:27:39 +00:00
updateitem.pl Bug 7639: add option to forgive overdue fines when declaring items lost 2013-09-17 15:10:46 +00:00