]> git.koha-community.org Git - koha.git/commit
Bug 5645: improve converting simple search to Z39.50 search
authorGalen Charlton <gmc@esilibrary.com>
Sat, 7 Sep 2013 18:42:32 +0000 (18:42 +0000)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 13 Nov 2013 17:16:03 +0000 (14:16 -0300)
commit666dd79edede9c164ce8972f98df8a1054f66da9
tree08b6aa71d32abba52f6dd41cd3ba38d88ead7e2e
parentc36a04bf1bddb15b780349f8ca3607a2716a08aa
Bug 5645: improve converting simple search to Z39.50 search

This patch builds on the patch for bug 10742 by ensuring
that when a search initiated from the staff interface simple
search returns results, if you click on the Z39.50 search
button, the search form is populated with the search string
without "kw,wrdl".

To test:

[1] Perform a search in the staff interface that will return
    results.
[2] Click the Z39.50 search button.
[3] Observe that the search string appears in the title
    field in the Z39.50 search form, but with a prefix of
    "kw,wrdl".
[4] Apply the patch.
[5] Repeat steps 1-2.  This time, the search string appears
    without the index prefix.  This will make the Z39.50 search
    much more likely to work.
[6] Repeat steps 1-2, but with a search that does *not* return
    any hits in the Koha database.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit f791dd4770e84a82e15823b055707b15b461d24b)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
catalogue/search.pl