Bugzilla – Attachment 2519 Details for
Bug 4852
Facets doesn't work with direct CCL queries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-Bug-4852-rewrite-the-query-to-include-limits-if-usin.patch (text/plain), 1.10 KB, created by
Robin Sheat
on 2010-08-13 04:31:14 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Robin Sheat
Created:
2010-08-13 04:31:14 UTC
Size:
1.10 KB
patch
obsolete
>From 61f9617323aba0265320f57eaf1d6228c7742850 Mon Sep 17 00:00:00 2001 >From: Robin Sheat <robin@catalyst.net.nz> >Date: Fri, 13 Aug 2010 16:15:21 +1200 >Subject: [PATCH] Bug 4852 - rewrite the query to include limits if using ccl= > >--- > C4/Search.pm | 8 +++++++- > 1 files changed, 7 insertions(+), 1 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 8434886..6aade89 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1041,7 +1041,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, $', $', "q=ccl=$'", $', '', '', '', '', 'ccl' ); >+ my $q=$'; >+ # This is needed otherwise ccl= and &limit won't work together, and >+ # this happens when selecting a subject on the opac-detail page >+ if (@limits) { >+ $q .= ' and '.join(' and ', @limits); >+ } >+ return ( undef, $q, $q, "q=ccl=$q", $q, '', '', '', '', 'ccl' ); > } > if ( $query =~ /^cql=/ ) { > return ( undef, $', $', "q=cql=$'", $', '', '', '', '', 'cql' ); >-- >1.7.0.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 4852
: 2519 |
3217