2 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ht="http://www.cs.unibo.it/helm/namespaces/helm-theory" xmlns:helm="http://www.cs.unibo.it/helm" xml:lang="en" lang="en">
4 <title>Moogle_constraints_choice</title>
8 <input type="hidden" name="keys" value="S,T1,T2,L,RT,E"/>
9 <input type="hidden" name="choices" value="@CURRENT_CHOICES@"/>
10 <input type="hidden" name="interp" value="@INTERPRETATIONS@"/>
11 <input type="hidden" name="action" value="@ACTION@"/>
12 <input type="hidden" name="expression" value="@EXPRESSION@"/>
13 <input type="hidden" name="advanced" value="@ADVANCED@"/>
15 <b>You can now proceed using the default generated constraints or you
16 can refine them by hand before going on.</b> <br /> <br />
17 <input type="button" value="Submit Query"
19 @VARIABLES_INITIALIZATION@
20 var base_url = document.form.j_processorURL.value
22 + 'xmluri=' + encodeURIComponent(document.form.j_xmluri.value)
23 + '&keys=' + encodeURIComponent(document.form.keys.value)
24 + '&param.action=' + encodeURIComponent(document.form.action.value)
25 + '&param.expression=' +
26 encodeURIComponent(document.form.expression.value)
27 + '&param.advanced=' +
28 encodeURIComponent(document.form.advanced.value)
29 + '&param.profile=' +
30 encodeURIComponent(document.form.j_profile.value)
31 + '&profile=' +
32 encodeURIComponent(document.form.j_profile.value)
33 + '&param.media-type=' +
34 encodeURIComponent(document.form.j_media_type.value)
35 + '&param.thmedia-type=' +
36 encodeURIComponent(document.form.j_thmedia_type.value)
37 + '&param.thkeys=' +
38 encodeURIComponent(document.form.j_thkeys.value)
39 + '&param.embedkeys=' +
40 encodeURIComponent(document.form.j_embedkeys.value)
41 + '&param.thencoding=' +
42 encodeURIComponent(document.form.j_thencoding.value)
43 + '&param.choices=' +
44 encodeURIComponent(document.form.choices.value)
45 + '&param.interp=' +
46 encodeURIComponent(document.form.interp.value);
47 base_url+='&param.constraints=';
48 for (j=0;j < constr_obj_len;j++)
51 document.form.constr_obj[j].checked ? '1' : '0';
53 (!document.form.obj_depth[j] ||
54 document.form.obj_depth[j].value == '') ? '_':
55 document.form.obj_depth[j].value;
56 if (j < constr_obj_len - 1) { base_url += ',' }
58 base_url += ':';
59 for (j=0;j < constr_rel_len;j++)
61 base_url += document.form.constr_rel[j].checked ? '1' : '0';
63 document.form.rel_depth[j].value == '' ? '_' :
64 document.form.rel_depth[j].value;
65 if (j < constr_rel_len - 1) { base_url += ',' }
67 base_url += ':';
68 for (j=0;j < constr_sort_len;j++)
70 base_url += document.form.constr_sort[j].checked ? '1' : '0';
72 document.form.sort_depth[j].value == '' ? '_' :
73 document.form.sort_depth[j].value;
74 if (j < constr_sort_len - 1) { base_url += ',' }
76 base_url += ':';
78 (document.form.only_obj.checked ? '1' : '0') +
80 (document.form.only_rel.checked ? '1' : '0') +
82 (document.form.only_sort.checked ? '1' : '0');