[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-bugs] [Bug 1649] New: nozebra advanced search fails, with adv. key
From: |
bugzilla-daemon |
Subject: |
[Koha-bugs] [Bug 1649] New: nozebra advanced search fails, with adv. keywords |
Date: |
Tue, 11 Dec 2007 20:55:57 -0800 (PST) |
http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=1649
Summary: nozebra advanced search fails, with adv. keywords
Product: Koha
Version: rel_3_0
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: Searching
AssignedTo: address@hidden
ReportedBy: address@hidden
QAContact: address@hidden
Hi Joshua and Paul.
Some of the newer zebra searches, arent handled in nozebra?
in nozeb searches like 'ti= starwars', or 'au= smith' work as expected
but advanced search like 'ti wrdl= starwars', or 'au,phr= smith' fail
Any ideas on how to handle this.
should nozebra search simply strip and ignore the advanced wrdl and phr type
search keywords and turn them into a simple-search??,
my current workaround is this regex to strip out the advanced keyword before
the search, in NZanalyze()
my $results;
# strip adv, zebra keywords, currently not handled in nozebra:
# wrdl, ext, phr...
$left =~ s/[ ,].*$//;
# automatic replace for short operators
$left='title' if $left =~ '^ti$';
$left='author' if $left =~ '^au$';
$left='publisher' if $left =~ '^pb$';
$left='subject' if $left =~ '^su$';
$left='koha-Auth-Number' if $left =~ '^an$';
$left='keyword' if $left =~ '^kw$';
any better ideas guys
Cheers, Mason.
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-bugs] [Bug 1649] New: nozebra advanced search fails, with adv. keywords,
bugzilla-daemon <=