Changeset 12220


Ignore:
Timestamp:
2006-07-13T18:58:33+12:00 (18 years ago)
Author:
mdewsnip
Message:

Added support for the "contains"/"is" field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cic-hcap/macros/extra.dm

    r12218 r12220  
    15041504   document.QueryForm.q.value = "";
    15051505
    1506    for (var i = 0; i < document.QueryForm.aqv.length; i++) \{
    1507       if (document.QueryForm.aqv[i].value != "") \{
    1508          var real_index = /aqv([0-9]+)field/.exec(document.QueryForm.aqv[i].id)[1];
     1506   for (var aqv_i = 0; aqv_i < document.QueryForm.aqv.length; aqv_i++) \{
     1507      var aqv_value = document.QueryForm.aqv[aqv_i].value;
     1508      if (aqv_value != "") \{
     1509         var real_index = /aqv([0-9]+)field/.exec(document.QueryForm.aqv[aqv_i].id)[1];
    15091510     var combiner = "&";
    15101511     if (document.QueryForm.aqc[real_index].value == "or") \{
    15111512        combiner = "|";
    15121513     \}
    1513          addQueryTerm(document.QueryForm.q, "[" + document.QueryForm.aqv[i].value + "]:" + document.QueryForm.aqi[real_index].value, combiner);
     1514     if (document.QueryForm.aqp[real_index].value == "1") \{
     1515        aqv_value = '"' + aqv_value + '"';
     1516         \}
     1517         addQueryTerm(document.QueryForm.q, "[" + aqv_value + "]:" + document.QueryForm.aqi[real_index].value, combiner);
    15141518      \}
    15151519   \}
Note: See TracChangeset for help on using the changeset viewer.