Patch ReSpec to allow a separate list of Previous Editors
authorRichard Cyganiak <richard@cyganiak.de>
Wed, 25 May 2011 18:28:58 +0100
changeset 11 9d286f508d41
parent 10 db6de57fcb4f
child 12 eaaed745c472
Patch ReSpec to allow a separate list of Previous Editors
ReSpec.js/js/respec.js
index.html
--- a/ReSpec.js/js/respec.js	Wed May 25 17:43:59 2011 +0100
+++ b/ReSpec.js/js/respec.js	Wed May 25 18:28:58 2011 +0100
@@ -723,7 +723,7 @@
                 header += " <span class='ed_mailto'><a" + rm + " href='mailto:" + pers.mailto + "'>" + pers.mailto + "</a></span> ";
             }
             if (pers.note) {
-                header += " ( " + pers.note + " )";
+                header += " (" + pers.note + ")";
             }
             if (this.doRDFa) {
                 header += "</span>\n";
@@ -856,6 +856,12 @@
         }
         header += this.showPeople("Editor", this.editors);
         header += this.showPeople("Author", this.authors);
+        if (this.otherContributors) {
+            for (var role in this.otherContributors) {
+                if (!this.otherContributors.hasOwnProperty(role)) continue;
+                header += this.showPeople(role, this.otherContributors[role]);
+            }
+        }
         header += "</dl>";
 
         if (this.errata) {
--- a/index.html	Wed May 25 17:43:59 2011 +0100
+++ b/index.html	Wed May 25 18:28:58 2011 +0100
@@ -47,36 +47,41 @@
 
           // editors, add as many as you like
           // only "name" is required
-// @@@ Perhaps best to extend ReSpec with a generic mechanism for splitting this into "Editors" and "Previous Editors"
           editors:  [
               { name: "Richard Cyganiak", url: "http://richard.cyganiak.de/",
                 company: "DERI, NUI Galway", companyURL: "http://www.deri.ie/",
-                note: "RDF 1.1",
               },
 // @@@ Details for David?
               { name: "David Wood", // url: "http://example.org/",
                 company: "Talis", companyURL: "http://www.talis.com/",
-                note: "RDF 1.1",
-              },
-// @@@ Graham's affiliation has changed
-              { name: "Graham Klyne", url: "http://www.ninebynine.org/",
-                company: "Nine by Nine", // companyURL: "http://example.com/"
-                mailto: "GK@NineByNine.org",
-                note: "RDF 1.0",
-              },
-// @@@ Jeremy's affiliation has changed
-              { name: "Jeremy J. Carroll", url: "http://www-uk.hpl.hp.com/people/jjc/",
-                company: "Hewlett Packard Labs", // companyURL: "http://example.com/"
-                mailto: "jjc@hpl.hp.com",
-                note: "RDF 1.0",
-              },
-// @@@ Brian's affiliation has changed
-              { name: "Brian McBride", url: "http://www-uk.hpl.hp.com/people/bwm/",
-                company: "Hewlett Packard Labs", // companyURL: "http://example.com/"
-                mailto: "bwm@hplb.hpl.hp.com",
-                note: "RDF 1.0 Series Editor",
               },
           ],
+          otherContributors: {
+              "Previous editor": [
+// @@@ Graham's affiliation has changed
+                  { name: "Graham Klyne",
+                    url: "http://www.ninebynine.org/",
+                    company: "Nine by Nine",
+                    //companyURL: "http://example.com/"
+                    //mailto: "GK@NineByNine.org",
+                  },
+// @@@ Jeremy's affiliation has changed
+                  { name: "Jeremy J. Carroll",
+                    //url: "http://www-uk.hpl.hp.com/people/jjc/",
+                    company: "Hewlett Packard Labs",
+                    //companyURL: "http://example.com/"
+                    //mailto: "jjc@hpl.hp.com",
+                  },
+// @@@ Brian's affiliation has changed
+                  { name: "Brian McBride",
+                    //url: "http://www-uk.hpl.hp.com/people/bwm/",
+                    company: "Hewlett Packard Labs",
+                    //companyURL: "http://example.com/"
+                    //mailto: "bwm@hplb.hpl.hp.com",
+                    note: "RDF 2004 Series Editor",
+                  },
+              ],
+          },
 
           // authors, add as many as you like. 
           // This is optional, uncomment if you have authors as well as editors.