Changeset 3203


Ignore:
Timestamp:
2002-07-02T16:08:40+12:00 (22 years ago)
Author:
sjboddie
Message:

Minor BBC specific change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/mgqueryfilter.cpp

    r2134 r3203  
    487487    // This is a special hack for the BBC collection's ProgNumber index
    488488
    489     // if we're searching a ProgNumber index we want to:
    490     // 1. Remove all non-alphanumeric characters from the query string
    491     // 2. Make it a boolean search
    492     // 3. Turn off case-folding
     489    // if we're searching the zzAB/zzAN index we want to remove all
     490    // non-alphanumeric characters from the query string
    493491    text_t longindex; text_tarray splitindex;
    494492    indexmap.to2from ((*query_here).index, longindex);
    495493    splitchar (longindex.begin(), longindex.end(), ':', splitindex);
    496494    text_t &indextype = splitindex[1];
    497     if (indextype == "ProgNumber") {
    498       (*query_here).search_type = 0;
    499       (*query_here).casefolding = 0;
     495    if (indextype == "zzabn") {
    500496      text_t new_querystring;
    501497      text_t::const_iterator here = (*query_here).querystring.begin();
     
    511507    }
    512508#endif
    513 
    514509    query_here ++;
    515510  }
Note: See TracChangeset for help on using the changeset viewer.