Bugzilla – Attachment 20127 Details for
Bug 10034
"kw,rld:" in Z39.50 research
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to remove the "kw,wrdl" string
0001-Bug-10034-To-remove-the-kw-wrdl-string-from-z39-sear.patch (text/plain), 1.09 KB, created by
Silvia Simonetti
on 2013-08-06 10:44:00 UTC
(
hide
)
Description:
patch to remove the "kw,wrdl" string
Filename:
MIME Type:
Creator:
Silvia Simonetti
Created:
2013-08-06 10:44:00 UTC
Size:
1.09 KB
patch
obsolete
>From 1f345c60704cb47bf581021d224d48269786a806 Mon Sep 17 00:00:00 2001 >From: Silvia Simonetti <s.simonetti@cineca.it> >Date: Tue, 6 Aug 2013 12:17:00 +0200 >Subject: [PATCH] Bug-10034:To remove the "kw,wrdl" string from z39 search > field This patch removes the "kw,wrdl" string that > automaticaly appears in the search field when we have no > result with a simple search request on the intranet and > that we choose to proceed to a Z39.50 search > >--- > catalogue/search.pl | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/catalogue/search.pl b/catalogue/search.pl >index e1154c3..137aeb2 100755 >--- a/catalogue/search.pl >+++ b/catalogue/search.pl >@@ -404,6 +404,11 @@ if ($indexes[0] && (!$indexes[1] || $params->{'scan'})) { > $idx =~ s/\,/comma/g; # template toolkit doesnt like variables with a , in it > $template->param($idx => 1); > } >+if (!$indexes[0]) { >+ $indexes[0] = "kw"; >+ my $idx = "ms_".$indexes[0]; >+ $template->param($idx => 1); >+} > > # an operand can be a single term, a phrase, or a complete ccl query > my @operands = map uri_unescape($_), $cgi->param('q'); >-- >1.7.10.4 >
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 10034
:
17400
|
20126
| 20127