Changeset 1717
- Timestamp:
- 2000-11-29T16:58:07+13:00 (23 years ago)
- Location:
- trunk/gsdl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/macros/pref.dm
r1535 r1717 61 61 if (savedccs[collection] == 1) savedccs[collection] = 0; 62 62 else savedccs[collection] = 1; 63 63 64 64 var i; 65 65 argcc = ""; 66 var changed = 0; 66 67 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"; 68 73 updatehrefs(); 69 74 \} -
trunk/gsdl/src/recpt/queryaction.cpp
r1695 r1717 1106 1106 disp.setmacro ("freqmsg", "query", freqmsg); 1107 1107 1108 1109 1108 // set up _resultline_ macro 1110 1109 text_t resline; 1111 1110 int maxdocs = args.getintarg("m"); 1112 1111 int numdocs = response.numDocs; 1113 if (maxdocs == -1) maxdocs = response.numDocs;1114 1112 isapprox isApprox = response.isApprox; 1115 1116 // if there were phrases (post-processing) we're not going to include1117 // those documents that didn't match1118 1113 if (num_phrases > 0) isApprox = Exact; 1114 if (maxdocs == -1) maxdocs = numdocs; 1115 else if (numdocs > maxdocs) { 1116 numdocs = maxdocs; 1117 isApprox = MoreThan; 1118 } 1119 1119 1120 1120 if (isApprox == Approximate) resline = "_textapprox_";
Note:
See TracChangeset
for help on using the changeset viewer.