1 [%# The contents of this file are subject to the Mozilla Public
2 # License Version 1.1 (the "License"); you may not use this file
3 # except in compliance with the License. You may obtain a copy of
4 # the License at http://www.mozilla.org/MPL/
6 # Software distributed under the License is distributed on an "AS
7 # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
8 # implied. See the License for the specific language governing
9 # rights and limitations under the License.
11 # The Original Code is the Bugzilla Bug Tracking System.
13 # The Initial Developer of the Original Code is Netscape Communications
14 # Corporation. Portions created by Netscape are
15 # Copyright (C) 1998 Netscape Communications Corporation. All
18 # Contributor(s): Gervase Markham <gerv@gerv.net>
22 { name => "noop", description => "---" },
23 { name => "equals", description => "is equal to" },
24 { name => "notequals", description => "is not equal to" },
25 { name => "anyexact", description => "is equal to any of the strings" },
26 { name => "substring", description => "contains the string" },
27 { name => "casesubstring", description => "contains the string (exact case)" },
28 { name => "notsubstring", description => "does not contain the string" },
29 { name => "anywordssubstr", description => "contains any of the strings" },
30 { name => "allwordssubstr", description => "contains all of the strings" },
31 { name => "nowordssubstr", description => "contains none of the strings" },
32 { name => "regexp", description => "contains regexp" },
33 { name => "notregexp", description => "does not contain regexp" },
34 { name => "lessthan", description => "is less than" },
35 { name => "greaterthan", description => "is greater than" },
36 { name => "anywords", description => "contains any of the words" },
37 { name => "allwords", description => "contains all of the words" },
38 { name => "nowords", description => "contains none of the words" },
39 { name => "changedbefore", description => "changed before" },
40 { name => "changedafter", description => "changed after" },
41 { name => "changedfrom", description => "changed from" },
42 { name => "changedto", description => "changed to" },
43 { name => "changedby", description => "changed by" },
44 { name => "matches", description => "matches" } ] %]
48 <a name="chart">Advanced Searching Using Boolean Charts</a>:
52 [%# Whoever wrote the original version of boolean charts had a seriously twisted mind %]
54 [% jsmagic = "onclick=\"this.form.action='query.cgi#chart'; this.form.method='POST'; return 1;\"" %]
56 [% FOREACH chart = default.charts %]
57 [% chartnum = loop.count - 1 %]
61 <input type="checkbox" id="negate[% chartnum FILTER html %]"
62 name="negate[% chartnum FILTER html %]" value="1"
63 [%+ "checked" IF chart.negate %]>
64 <label for="negate[% chartnum FILTER html %]">
65 Not (negate this whole chart)
69 [% FOREACH row = chart.rows %]
70 [% rownum = loop.count - 1 %]
72 [% FOREACH col = row %]
73 [% colnum = loop.count - 1 %]
75 <select name="[% "field${chartnum}-${rownum}-${colnum}" %]">
76 [% FOREACH field = fields %]
77 <option value="[% field.name %]" [% "selected" IF field.name == col.field %]>
78 [% field_descs.${field.name} || field.description FILTER html %]
83 <select name="[% "type${chartnum}-${rownum}-${colnum}" %]">
84 [% FOREACH type = types %]
85 <option value="[% type.name %]"
86 [%- " selected" IF type.name == col.type %]>[% type.description %]</option>
90 <input name="[% "value${chartnum}-${rownum}-${colnum}" %]"
91 value="[% col.value FILTER html %]">
94 [% UNLESS loop.last %]
102 [% newor = colnum + 1 %]
103 <input type="submit" value="Or" [% jsmagic %]
104 name="cmd-add[% "${chartnum}-${rownum}-${newor}" %]"
105 id="cmd-add[% "${chartnum}-${rownum}-${newor}" %]">
112 [% UNLESS loop.last %]
119 [% newand = rownum + 1; newchart = chartnum + 1 %]
120 <input type="submit" value="And" [% jsmagic %]
121 name="cmd-add[% "${chartnum}-${newand}-0" %]"
122 id="cmd-add[% "${chartnum}-${newand}-0" %]">
123
124 <input type="submit" value="Add another boolean chart" [% jsmagic %]
125 name="cmd-add[% newchart %]-0-0"
126 id="cmd-add[% newchart %]-0-0">
127