Bugzilla – Attachment 1846 Details for
Bug 4116
results from cataloging search is different from advanced search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
BZ4116: results from cataloging search is different from advanced search results
0001-BZ4116-results-from-cataloging-search-is-different-f.patch (text/plain), 1.64 KB, created by
Chris Cormack
on 2010-02-10 16:12:00 UTC
(
hide
)
Description:
BZ4116: results from cataloging search is different from advanced search results
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2010-02-10 16:12:00 UTC
Size:
1.64 KB
patch
obsolete
>From a9cb2c9d156fba3927b4bbdb3ca8e737910b36cb Mon Sep 17 00:00:00 2001 >From: Matthias Meusburger <matthias.meusburger@biblibre.com> >Date: Wed, 10 Feb 2010 16:52:02 +0100 >Subject: [PATCH] BZ4116: results from cataloging search is different from advanced search results > >--- > C4/Search.pm | 1 - > cataloguing/addbooks.pl | 7 ++++++- > 2 files changed, 6 insertions(+), 2 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 81e7d5a..de02b83 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1648,7 +1648,6 @@ sub searchResults { > } > > # XSLT processing of some stuff >- my $debug=1; > use C4::Charset; > SetUTF8Flag($marcrecord); > $debug && warn $marcrecord->as_formatted; >diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl >index e911391..b08f1e5 100755 >--- a/cataloguing/addbooks.pl >+++ b/cataloguing/addbooks.pl >@@ -68,8 +68,13 @@ foreach my $thisframeworkcode ( sort {$frameworks->{$a} cmp $frameworks->{$b}}ke > # Searching the catalog. > if ($query) { > >+ # build query >+ my @operands = $query; >+ my (@operators, @indexes, @sort_by, @limits) = (); >+ my ( $builterror,$builtquery,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$stopwords_removed,$query_type) = buildQuery(\@operators,\@operands,\@indexes,@limits,\@sort_by,undef,undef); >+ > # find results >- my ( $error, $marcresults, $total_hits ) = SimpleSearch($query, $results_per_page * ($page - 1), $results_per_page); >+ my ( $error, $marcresults, $total_hits ) = SimpleSearch($builtquery, $results_per_page * ($page - 1), $results_per_page); > > if ( defined $error ) { > $template->param( error => $error ); >-- >1.6.3.3 >
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 4116
: 1846