Skip to content

Commit

Permalink
WebSearch: tabs miss language parameter
Browse files Browse the repository at this point in the history
* FIX Adds the proper language parameter on tabs if the user has
  selected different language from the browser preferred. (closes
  inveniosoftware#308)

Signed-off-by: Harris Tzovanakis <[email protected]>
  • Loading branch information
drjova committed Oct 8, 2015
1 parent 89a2df5 commit 1ab4d24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/websearch/lib/search_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -4684,8 +4684,8 @@ def print_records(req, recIDs, jrec=1, rg=CFG_WEBSEARCH_DEF_RECORDS_IN_GROUPS, f

link_ln = ''

if ln != CFG_SITE_LANG:
link_ln = '?ln=%s' % ln
if 'ln' in req.form:
link_ln = "?ln={0}".format(ln)

recid_to_display = recid # Record ID used to build the URL.
if CFG_WEBSEARCH_USE_ALEPH_SYSNOS:
Expand Down

0 comments on commit 1ab4d24

Please sign in to comment.