From grdetil@scrc.umanitoba.ca Wed Dec 8 15:21:04 1999 Date: Wed, 8 Dec 1999 16:59:29 -0600 (CST) From: Gilles Detillieux To: htdig@htdig.org Subject: [htdig] [PATCH] select list builder for htsearch This patch implements a generalized \n"; vars.Add("SORT", str); vars.Add("SELECTED_SORT", new String(st)); + + // Handle user-defined select lists. + // Uses octuples containing these values: + // + // + // e.g.: + // METHOD_LIST method method_names 2 1 2 match_method "" + // FORMAT_LIST format template_map 3 2 1 template_name "" + // EXCLUDE_LIST exclude exclude_names 2 1 2 exclude "" + // MATCH_LIST matchesperpage matches_per_page_list 1 1 1 \ + // matches_per_page "Previous Amount" + QuotedStringList builds(config["build_select_lists"], " \t\r\n"); + for (int b = 0; b <= builds.Count()-8; b += 8) + { + int ntuple = atoi(builds[b+3]); + int ivalue = atoi(builds[b+4]); + int ilabel = atoi(builds[b+5]); + int nsel = 0; + QuotedStringList namelist(config[builds[b+2]], " \t\r\n"); + if (ntuple > 0 && ivalue > 0 && ivalue <= ntuple + && ilabel > 0 && ilabel <= ntuple && namelist.Count() % ntuple == 0) + { + str = new String(); + *str << "\n"; + vars.Add(builds[b], str); + } + } // // If a paged output is required, set the appropriate variables -- Gilles R. Detillieux E-mail: Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930 ------------------------------------ To unsubscribe from the htdig mailing list, send a message to htdig-unsubscribe@htdig.org You will receive a message to confirm this.