[Koha-patches] [PATCH] bug 2958: fix search results navigation for CCL, CQL, and PQF queries
Galen Charlton
galen.charlton at liblime.com
Thu Apr 9 16:49:59 CEST 2009
The shortcut to build $query_cgi in C4::Search::buildQuery()
for CCL, CQL, and PQF queries is incorrect, as (for now)
the "q=" prefix is required.
---
C4/Search.pm | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/C4/Search.pm b/C4/Search.pm
index e965682..f019df8 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -902,13 +902,13 @@ sub buildQuery {
# for handling ccl, cql, pqf queries in diagnostic mode, skip the rest of the steps
# DIAGNOSTIC ONLY!!
if ( $query =~ /^ccl=/ ) {
- return ( undef, $', $', $', $', '', '', '', '', 'ccl' );
+ return ( undef, $', $', "q=ccl=$'", $', '', '', '', '', 'ccl' );
}
if ( $query =~ /^cql=/ ) {
- return ( undef, $', $', $', $', '', '', '', '', 'cql' );
+ return ( undef, $', $', "q=cql=$'", $', '', '', '', '', 'cql' );
}
if ( $query =~ /^pqf=/ ) {
- return ( undef, $', $', $', $', '', '', '', '', 'pqf' );
+ return ( undef, $', $', "q=cql=$'", $', '', '', '', '', 'pqf' );
}
# pass nested queries directly
--
1.5.6.5
More information about the Koha-patches
mailing list