Project

General

Profile

« Previous | Next » 

Revision 4135

Added by berkley over 16 years ago

fixed bug where the searchmode param was put into the search fields

View differences:

src/edu/ucsb/nceas/metacat/DBQuery.java
633 633
   	      //System.out.println("==========the string from cache is "+cachedResult);
634 634
   	      if (cachedResult != null)
635 635
   	      {
636
   	    	logMetacat.info("resutl from cache !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
636
   	    	logMetacat.info("result from cache !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
637 637
   	    	 if (out != null)
638 638
   	         {
639 639
   	             out.println(cachedResult);
......
1555 1555
            String[] anyfield = ((String[]) params.get("anyfield"));
1556 1556
            //allow for more than one value for anyfield
1557 1557
            for (int i = 0; i < anyfield.length; i++) {
1558
                if (!anyfield[i].equals("")) {
1558
                if (anyfield[i] != null && !anyfield[i].equals("")) {
1559 1559
                    query.append("<queryterm casesensitive=\"" + casesensitive
1560 1560
                            + "\" " + "searchmode=\"" + searchmode
1561 1561
                            + "\"><value>" + anyfield[i]
......
1589 1589
            ignoredParams.add("sessionid");
1590 1590
            ignoredParams.add("pagesize");
1591 1591
            ignoredParams.add("pagestart");
1592
            ignoredParams.add("searchmode");
1592 1593

  
1593 1594
            // Also ignore parameters listed in the properties file
1594 1595
            // so that they can be passed through to stylesheets

Also available in: Unified diff