dealing with >=, <= and date stuff in NoZebra
authorPaul POULAIN <paul@koha-fr.org>
Thu, 8 Nov 2007 19:00:25 +0000 (13:00 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 9 Nov 2007 00:01:52 +0000 (18:01 -0600)
commit3a9c0efda8457b0d59b33a603e72bdc32b412e07
tree146a8093c345eacb639b29147c770761d87c6e8c
parentbb916bf84a6533a171a60aaa00b72a813b8970ae
dealing with >=, <= and date stuff in NoZebra

- if the user search on >= or <=, fix a bug removing the < and >
- if the user search on a numeric value (mainly for dates search), retrieve only numeric results

Example : previously Date >=2005 returned "printed in 1976", as "printed" was > than 2005
now it don't.
note that Date >=1900 returns "printed in 1976" as NZ search is a always wrdl search (and, as you know 1976 > 1900 ;-) )

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Search.pm