Ignore:
Timestamp:
2003-06-24T12:28:40+12:00 (21 years ago)
Author:
sjboddie
Message:

No longer show search page (or search form on "about" page) if a collection
doesn't have at least one searchable index. Note that this change includes
the addition of an is_searchable() function to the protocol.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/pageaction.cpp

    r4770 r4774  
    526526  //                       was pressed
    527527
     528  // _aboutqueryform_      will be set to "" if the collection isn't searchable
    528529
    529530  // if page is "help"
     
    604605    disp.setmacro("usabilityscript", "Global", "_usabshowscript_");
    605606      }
    606      
    607607    }
    608608  }
     
    740740    }
    741741    textsubcollections += "_textsubcols2_";
    742     if (count > 1)
     742    if (count > 1) {
    743743      disp.setmacro ("textsubcollections", "about", textsubcollections);
     744    }
     745      }
     746
     747      comerror_t err;
     748      bool issearchable = true;
     749      collectproto->is_searchable(args["c"], issearchable, err, logout);
     750      if (err != noError) issearchable = true;
     751      outconvertclass t;
     752      if (!issearchable) {
     753    disp.setmacro ("aboutqueryform", "about", "");
    744754      }
    745755    }
Note: See TracChangeset for help on using the changeset viewer.