summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authormyk%mozilla.org <>2003-06-24 03:01:35 +0200
committermyk%mozilla.org <>2003-06-24 03:01:35 +0200
commitda6143f4aae6af35f60b8230b82f649b3b0cbd05 (patch)
tree0836c9c54e5434471a77eaa00c4447da3e60804a /template/en
parent9da012f1026019ade284e4d08c63f9d39993777f (diff)
downloadbugzilla-da6143f4aae6af35f60b8230b82f649b3b0cbd05.tar.gz
bugzilla-da6143f4aae6af35f60b8230b82f649b3b0cbd05.tar.xz
Fix for bug 204631: enhances config.cgi to generate a list of queryable fields so third-party clients can populate search forms with the list.
r=gerv a=myk
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/config.js.tmpl12
-rw-r--r--template/en/default/config.rdf.tmpl13
2 files changed, 24 insertions, 1 deletions
diff --git a/template/en/default/config.js.tmpl b/template/en/default/config.js.tmpl
index 26d089fd6..a74c5d34d 100644
--- a/template/en/default/config.js.tmpl
+++ b/template/en/default/config.js.tmpl
@@ -101,8 +101,18 @@ var component_exceptions = new Array(
// // ^^^^
);
+// Queryable Fields
+// ================
+[% PROCESS "global/field-descs.none.tmpl" %]
+var field = [
+[% FOREACH x = field %]
+ { name: '[% x.name FILTER js %]',
+ description: '[% (field_descs.${x.name} OR x.description) FILTER js %]' },
+[% END %]
+];
+
// Deprecated Variables
-// ================================
+// ====================
//
// Other names for various variables. These are deprecated
// and could go away at any time. Use them at your own risk!
diff --git a/template/en/default/config.rdf.tmpl b/template/en/default/config.rdf.tmpl
index 6aa51f657..884c26a0c 100644
--- a/template/en/default/config.rdf.tmpl
+++ b/template/en/default/config.rdf.tmpl
@@ -180,6 +180,19 @@
</bz:target_milestones>
[% END %]
+ <bz:fields>
+ <Seq>
+ [% PROCESS "global/field-descs.none.tmpl" %]
+ [% FOREACH item = field %]
+ <li>
+ <bz:field rdf:about="[% Param('urlbase') %]field.cgi?name=[% item.name FILTER uri %]">
+ <bz:name>[% item.name FILTER html %]</bz:name>
+ <bz:description>[% (field_descs.${item.name} OR item.description) FILTER html %]</bz:description>
+ </bz:field>
+ </li>
+ [% END %]
+ </Seq>
+ </bz:fields>
</bz:installation>
</RDF>