Changeset 12223 for trunk/cic-hcap


Ignore:
Timestamp:
2006-07-13T19:48:54+12:00 (18 years ago)
Author:
mdewsnip
Message:

Finished off the bibliography search page... I think.

File:
1 edited

Legend:

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

    r12222 r12223  
    11601160      if (abqv_value != "") \{
    11611161     var combiner = "&";
    1162      if (document.AdvancedBibliographyQueryForm.abqc[i].value == "or") \{
     1162     if (i < (document.AdvancedBibliographyQueryForm.abqv.length - 1) && document.AdvancedBibliographyQueryForm.abqc[i].value == "or") \{
    11631163        combiner = "|";
    11641164     \}
     
    11661166        abqv_value = '"' + abqv_value + '"';
    11671167         \}
    1168          addQueryTerm(document.AdvancedBibliographyQueryForm.q, "[" + abqv_value + "]:" + document.AdvancedBibliographyQueryForm.aqi[i].value, combiner);
     1168         addQueryTerm(document.AdvancedBibliographyQueryForm.q, "[" + abqv_value + "]:" + document.AdvancedBibliographyQueryForm.abqi[i].value, combiner);
    11691169      \}
    11701170   \}
    11711171
     1172   // Remove the trailing combiner
     1173   document.AdvancedBibliographyQueryForm.q.value = removeFromEnd(document.AdvancedBibliographyQueryForm.q.value, " & ");
     1174   document.AdvancedBibliographyQueryForm.q.value = removeFromEnd(document.AdvancedBibliographyQueryForm.q.value, " | ");
    11721175   alert(document.AdvancedBibliographyQueryForm.q.value);
    11731176\}
     
    11951198      <option value="or">or</option>
    11961199    </select>
     1200      </nobr>
     1201    </td>
     1202  </tr>
     1203}
     1204
     1205_cicabqlinenocombiner_ {
     1206  <tr>
     1207    <td>
     1208      <nobr>
     1209        <select name="abqi" onChange="prepareAdvancedBibliographySearch();">
     1210      <option value="RE">General keyword</option>
     1211      <option value="RR">Author keyword</option>
     1212      <option value="RF">Title keyword</option>
     1213    </select>
     1214
     1215    <select name="abqp" onChange="prepareAdvancedBibliographySearch();">
     1216      <option value='0'>contains</option>
     1217      <option value='1'>is</option>
     1218    </select>
     1219
     1220    <input name='abqv' type='text' style='width: 450px'/>
    11971221      </nobr>
    11981222    </td>
     
    12421266    _cicabqline_
    12431267    _cicabqline_
    1244     _cicabqline_
     1268    _cicabqlinenocombiner_
    12451269
    12461270    <tr>
Note: See TracChangeset for help on using the changeset viewer.