Koha/C4
Galen Charlton 233a40f1d1 bug 2098: do not apply stemming if search term has digits
If a search contains a digit, it is almost certainly an identifier, and should
not be stemmed.  This is particularly relevant for ISBNs and ISSNs, which
can contain the letter "X" - for example, C4::Search::_build_stemmend_operand
would reduce "014100018X" to "x ", which for a MARC21 database would bring
up irrelevant results (e.g., "23 x 29 cm." from the 300$c).

With this patch, supplying a search term that contains one or more digits
followed by "X" will no longer retrieve irrelevant results.  This applies
to catalogs using Zebra and query stemming.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-06-10 08:22:18 -05:00
..
AuthoritiesMarc
Barcodes
ClassSortRoutine
External C4/External/BakerTaylor.pm - Back end for B&T content. 2008-04-22 18:02:33 -05:00
Heading authority headings search: remove CCL metacharacters 2008-02-08 06:01:43 -06:00
Members new C4 modules for patron attributes 2008-05-12 09:03:00 -05:00
OAI OAI-PMH second try 2008-02-27 09:02:20 -06:00
Search FRBR: added OPAC search result grouping option 2008-02-11 16:35:17 -06:00
SIP Interactive debugging aides for SIP abstraction layer. 2008-06-05 22:43:44 -05:00
tests
VirtualShelves kohabug 1874 Adding variable assignment so that the confirm button is properly displayed in both Staff and OPAC 2008-06-09 06:38:01 -05:00
Accounts.pm Fix for bug 2183, "Account tab needs spacing between description and stadard text" Please note that this is a band-aid for a larger issue, described in Bug 2188 2008-05-31 21:59:52 -05:00
Acquisition.pm bug 1953: removing possible SQL injections from C4::Acquisition::GetHistory 2008-04-11 16:56:36 -05:00
Amazon.pm adding famfamfam iconset, improving isbn for amazon content, etc. 2008-04-07 21:20:22 -05:00
Auth.pm Revert "Bug fixing : get_user_permissions SQL Fixing" 2008-06-09 09:53:23 -05:00
Auth_with_ldap.pm
AuthoritiesMarc.pm unlocking table when adding/updating authorities is finished. 2008-04-24 11:51:48 -05:00
BackgroundJob.pm
Biblio.pm Remove a couple of warns. 2008-06-02 00:50:31 -05:00
Bookfund.pm
Bookseller.pm acqui/addorder.pl - use reliable GetBookSellerFromId instead of relying on name search. 2008-03-08 11:19:27 -06:00
Boolean.pm
Branch.pm bug 1953: fixing potential SQL injection problems in C4::Branch::GetBranches 2008-05-12 15:07:17 -05:00
Breeding.pm IMPORTANT - refactor MARC character set handling 2008-02-03 07:23:56 -06:00
Calendar.pm Single FIXME comment inserted. 2008-05-29 07:04:39 -05:00
Charset.pm work around issue in MARC::Charset 2008-04-01 06:46:04 -05:00
Circulation.pm FIXME added to note discrepancy. 2008-05-31 21:59:38 -05:00
ClassSortRoutine.pm
ClassSource.pm
Context.pm Add backtrace printing option through SetEnv KOHA_BACKTRACES 1 2008-04-03 14:44:31 -05:00
Date.pm
Dates.pm Dates.pm - trivial perldoc corrections 2008-04-08 17:00:07 -05:00
Debug.pm C4::Debug - should resolve conflict w/ CGI upload. Debug no longer uses CGI. 2008-03-16 08:32:20 -05:00
Heading.pm Porting SimpleSearch return changes to all code calling it. 2008-04-17 05:52:45 -05:00
ImportBatch.pm staging import - enhance record overlay behavior 2008-04-30 21:58:46 -05:00
Input.pm
Installer.pm C4::Installer - new method to get available MARC frameworks 2008-05-11 06:48:55 -05:00
Items.pm Bug 2094: fixing two bugs in lost items report 2008-05-11 06:48:51 -05:00
Koha.pm C4::Koha - added GetAuthorisedValueCategories 2008-05-12 09:03:02 -05:00
Labels.pm Repair Labels code to accomodate patroncards. Purged EXPR. 2008-05-30 10:01:08 -05:00
Languages.pm Fixing some typos, including, I believe, Bug 2174 ("spelling error in web installer") 2008-05-30 10:01:07 -05:00
Letters.pm bug-2149, var fix - changing borr.cardnumber to borr.userid. 2008-05-30 11:13:02 -05:00
Log.pm refactor C4::Log::logaction 2008-03-19 06:34:10 -05:00
Maintainance.pm
Matcher.pm Porting SimpleSearch return changes to all code calling it. 2008-04-17 05:52:45 -05:00
Members.pm removing warnings from C4::Members::GetMember 2008-05-27 06:52:17 -05:00
NewsChannels.pm
Output.pm BUGFIX: the language list was calculated on opaclanguage, whatever the interface 2008-06-05 22:46:10 -05:00
Overdues.pm Fines repair. Make fines2.pl work, give feedback, improve comments and perldoc. 2008-05-29 07:04:42 -05:00
Print.pm
Record.pm fixed MODS biblio export on a "standard" install 2008-04-01 06:46:08 -05:00
Reports.pm bug 2004: changes to guided reports on items 2008-04-08 17:00:12 -05:00
Reserves.pm Revert "2 FixPriority calls were broken. FixPriority itself may be broken too," 2008-04-22 19:16:30 -05:00
Review.pm minor cleanup, remove $sth->finish's. No documentation impact. 2008-05-30 10:01:06 -05:00
Scheduler.pm kohabug 1993 - task scheduler improvements 2008-06-09 06:38:03 -05:00
Scrubber.pm Unescape Comment, now that we trust Scrubber to block bad markup. 2008-05-29 06:30:51 -05:00
Search.pm bug 2098: do not apply stemming if search term has digits 2008-06-10 08:22:18 -05:00
Serials.pm Add Debug for warns and remove unnecessary middleman variables from returns. 2008-06-05 22:43:19 -05:00
SMS.pm SMS - widespread cleanup and moving code away from Cyprus/Turkey-specific implementation. Much more needed. 2008-02-06 23:19:30 -06:00
Stats.pm
Suggestions.pm bugfix : ship utf-8 encoding in mail header 2008-05-12 10:07:55 -05:00
Tags.pm Bugfix is_approved() to handle the 3-state nature of approval. 2008-06-05 22:41:40 -05:00
UploadedFile.pm
Utils.pm
VirtualShelves.pm Shelves - fixup display, in particular intranet side 2008-02-22 21:49:06 -06:00
XISBN.pm Fixing isbn regex to not match unless isbn is valid 2008-05-19 13:12:18 -05:00
XSLT.pm Normalizing s/On loan/Checked out/ 2008-04-25 15:28:14 -05:00
Z3950.pm