Changeset 1717


Ignore:
Timestamp:
2000-11-29T16:58:07+13:00 (23 years ago)
Author:
nzdl
Message:

Fixed a couple of minor bugs in cross-collection searching

Location:
trunk/gsdl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/macros/pref.dm

    r1535 r1717  
    6161  if (savedccs[collection] == 1) savedccs[collection] = 0;
    6262  else savedccs[collection] = 1;
    63        
     63       
    6464  var i;
    6565  argcc = "";
     66  var changed = 0;
    6667  for (i in savedccs)
    67     if (savedccs[i] == 1) argcc += "&cc=" + i;
     68    if (savedccs[i] == 1) \{
     69       argcc += "&cc=" + i;
     70       changed = 1;
     71    \}
     72  if (changed == 1) argcc += "&r=1";
    6873  updatehrefs();
    6974\}
  • trunk/gsdl/src/recpt/queryaction.cpp

    r1695 r1717  
    11061106  disp.setmacro ("freqmsg", "query", freqmsg);
    11071107
    1108 
    11091108  // set up _resultline_ macro
    11101109  text_t resline;
    11111110  int maxdocs = args.getintarg("m");
    11121111  int numdocs = response.numDocs;
    1113   if (maxdocs == -1) maxdocs = response.numDocs;
    11141112  isapprox isApprox = response.isApprox;
    1115 
    1116   // if there were phrases (post-processing) we're not going to include
    1117   // those documents that didn't match
    11181113  if (num_phrases > 0) isApprox = Exact;
     1114  if (maxdocs == -1) maxdocs = numdocs;
     1115  else if (numdocs > maxdocs) {
     1116    numdocs = maxdocs;
     1117    isApprox = MoreThan;
     1118  }
    11191119
    11201120  if (isApprox == Approximate) resline = "_textapprox_";
Note: See TracChangeset for help on using the changeset viewer.