Bugzilla – Attachment 20609 Details for
Bug 10742
simple search to z39.50 search keeps index
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 10742 - simple search to z39.50 search keeps index
PASSED-QA-Bug-10742---simple-search-to-z3950-searc.patch (text/plain), 1.62 KB, created by
Katrin Fischer
on 2013-08-25 21:11:28 UTC
(
hide
)
Description:
[PASSED QA] Bug 10742 - simple search to z39.50 search keeps index
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2013-08-25 21:11:28 UTC
Size:
1.62 KB
patch
obsolete
>From 18b7441b79949428dfb2f681853cac25f02f3efd Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Fri, 16 Aug 2013 15:10:56 +0200 >Subject: [PATCH] [PASSED QA] Bug 10742 - simple search to z39.50 search keeps > index > >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. >--- > catalogue/search.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/catalogue/search.pl b/catalogue/search.pl >index 09707ef..9e81a81 100755 >--- a/catalogue/search.pl >+++ b/catalogue/search.pl >@@ -452,7 +452,7 @@ my $indexes2z3950 = { > }; > for (my $ii = 0; $ii < @operands; ++$ii) > { >- my $name = $indexes2z3950->{$indexes[$ii]}; >+ my $name = $indexes2z3950->{$indexes[$ii] || 'kw'}; > if (defined $name && defined $operands[$ii]) > { > $z3950par ||= {}; >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10742
:
20409
|
20529
| 20609