Koha/opac
Frère Sébastien Marie 0ad7e76cb7 Bug 7282 - invalid language selection
- ensure that without cookie, language selection is based on browser
  preferences
- refactor function to obtain langugage for stem in search (opac + intranet)

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>

To reproduce the bug:

- Activate en and fr-FR for OPAC
- Clear your browser cookies
- Select your language preference in your browser: fr, fr-fr, en
- Load OPAC main page
- OPAC is displayed in English, rather than French as asked by browser
  preferences

  Apply the patch and test:

  - Clear your browser cookies
  - Load OPAC main page
  - Pages are displayed in French

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
2011-12-16 14:20:11 +01:00
..
errors Bugfix in errors/*.pl and opac/errors/*.pl 2010-02-14 20:04:40 -05:00
rss adding file just for creating the rss directory 2007-08-02 08:50:43 +00:00
sco Bug 4330: Missing License Statement 2011-11-24 14:15:57 +01:00
changelanguage.pl Bug 6755 Followup setlanguagecookie used in 2 places 2011-09-27 08:22:18 +13:00
ilsdi.pl Bug 5639 (MT #3605) Fix escaping in ILSDI 2011-08-05 09:07:15 +12:00
maintenance.pl Bug 2505: Add warnings to opac/maintenance.pl 2010-02-18 11:10:30 -05:00
oai.pl bug 4903: enable OAI-DC output when install done in standard mode 2011-04-07 21:38:53 +12:00
opac-account.pl Bug 4192: Fixes warnings generated by opac-account.pl. 2010-02-16 06:12:38 -05:00
opac-addbybiblionumber.pl Bug 6096 Correctly return arrayref from GetAllShelves 2011-04-08 11:17:04 +12:00
opac-alert-subscribe.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-authorities-home.pl Bug 5453 Move declarations out of conditionals in opac 2011-07-15 15:50:22 +12:00
opac-authoritiesdetail.pl Bug 5453 Move declarations out of conditionals in opac 2011-07-15 15:50:22 +12:00
opac-basket.pl Bug 5990: Lists and Cart show LOC code not Location Authorized value 2011-04-01 12:07:46 +13:00
opac-browser.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-changelanguage.pl Bug 6755 Problems with switching languages 2011-09-23 09:47:09 +12:00
opac-detail.pl Bug 6877 - use is executed and errors at compile time 2011-11-25 14:17:58 +01:00
opac-downloadcart.pl bug 5579 : Fixes several exports to embed items 2011-04-19 22:35:15 +12:00
opac-downloadshelf.pl Fix for Bug 3140 - It is possible to email someone else's private list 2011-05-26 09:50:52 +12:00
opac-export.pl Bug 4330: Wrong address for Free Software Foundation 2011-11-24 14:15:55 +01:00
opac-ics.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-ISBDdetail.pl Bug 5453 Move declarations out of conditionals in opac 2011-07-15 15:50:22 +12:00
opac-main.pl Bug 6755 Problems with switching languages 2011-09-23 09:47:09 +12:00
opac-MARCdetail.pl 6829: Remove two warnings for opac-MARCdetail 2011-09-14 22:22:37 +12:00
opac-messaging.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-modrequest.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-mymessages.pl bug 2615: remove unneeded 'require Exporter' 2008-09-26 09:05:08 -05:00
opac-passwd.pl Bug 2505: Enable warnings in opac-passwd.pl an opac-renew.pl. 2009-08-12 21:28:24 -04:00
opac-privacy.pl Bug 3881: OPAC Privacy reimplementation 2011-01-31 22:23:50 +13:00
opac-readingrecord.pl Bug 6162 Fix passing of borrower details to reading history 2011-04-14 15:01:17 +12:00
opac-renew.pl Bug 5199 : Followup patch, fixing a bug with NULL option 2011-07-03 08:48:52 +12:00
opac-reserve.pl Bug 6328 follow-up for QA comments 2011-11-25 14:00:47 +01:00
opac-review.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-search-history.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-search.pl Bug 7282 - invalid language selection 2011-12-16 14:20:11 +01:00
opac-sendbasket.pl Bug 6050 Make calls to GetItemsInfo consistent 2011-06-14 14:12:02 +12:00
opac-sendshelf.pl Fix for Bug 6957, authors disappearing when emailing lists 2011-10-20 11:34:39 +13:00
opac-serial-issues.pl Bug 6195 : Opac user should not have serial manage tab 2011-04-19 13:29:01 +12:00
opac-shelves.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-showmarc.pl Bug 6972: Hardcoded template paths to en in showmarc 2011-10-20 01:48:52 +13:00
opac-showreviews.pl Bug 7259 - Show a count of items pending approval on staff client home and tools pages 2011-12-08 12:04:28 +01:00
opac-suggestions.pl Bug 5928 :wr77152 : AllowPurchaseSuggestionBranchChoice sys pref 2011-03-23 10:35:16 +13:00
opac-tags.pl Fix for Bug 5812 - Tag Cloud - capitalized words come before lower-case words 2011-02-28 10:38:29 +13:00
opac-tags_subject.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-topissues.pl Bug 5453 Move declarations out of conditionals in opac 2011-07-15 15:50:22 +12:00
opac-user.pl Bug 6328 fine in days does not work 2011-11-25 14:00:47 +01:00
opac-userdetails.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-userupdate.pl Bug 6870 [enh] - allow opac-userupdate.pl to use the patron's email as 'from' address 2011-09-24 10:09:14 +12:00
unapi fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00