Bug 10742: improve converting simple search to Z39.50 search
authorFridolyn SOMERS <fridolyn.somers@biblibre.com>
Fri, 16 Aug 2013 13:10:56 +0000 (15:10 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 8 Oct 2013 13:23:56 +0000 (10:23 -0300)
commit40e0fccdd9c3d09a95543671f90a3a163e225ce4
tree776bde5a6931eba26c6903dd92152c1ffc2ace03
parentdf14898902105a5404d640fae2478ab63185f387
Bug 10742: improve converting simple search to Z39.50 search

In intranet, when search does not return results, there is a button
to perform the same search on Z39.50 servers.  This works well when
coming from advanced search.  But when using simple search from header,
in the Z39.50 search box "kw,wrdl" is added to the operand in title.

This patch simply adds kw as default value when the cgi does not have
idx parameter.

Test plan :
- In intranet, perform a search from header that does not return any
  result. For example "afalseword"
- Click on "Z39.50 Search"
=> you get a popup with the searched word in title. For example:
    Title: afalseword
- Go to advanced search page
- Enter the same word into first input and submit
- Click on "Z39.50 Search"
=> you get a popup with the searched word in title.

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Small change, fixes an annoying problem.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 0ab71d32641d092d11228f0e2282dd8805198720)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
catalogue/search.pl