- From: Shane McCarron via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 24 Feb 2010 20:21:12 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv25347/js
Modified Files:
respec.js
Log Message:
Added configuration parameters for 'errata' and 'alternateFormats'.
Added header paragraph about English being the only normative format when publishing as a Rec.
Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- respec.js 24 Feb 2010 18:24:02 -0000 1.92
+++ respec.js 24 Feb 2010 20:21:10 -0000 1.93
@@ -270,6 +270,7 @@
if (cfg.specStatus == "LC" && !cfg.lcEnd) error("If specStatus is set to LC, then lcEnd must be defined");
if (!cfg.editors) cfg.editors = [];
if (!cfg.authors) cfg.authors = [];
+ if (!cfg.alternateFormats) cfg.alternateFormats = [];
if (!cfg.inlineCSS) cfg.inlineCSS = true;
if (!cfg.noIDLSorting) cfg.noIDLSorting = false;
if (!cfg.noIDLIn) cfg.noIDLIn = false;
@@ -477,6 +478,37 @@
header += this.showPeople("Author", this.authors);
header += "</dl>";
+ if (this.errata) {
+ header += '<p>Please refer to the <a href="' + this.errata + '">errata</a> for this document, which may include some normative corrections.</p>';
+ }
+
+ if (this.alternateFormats.length > 0) {
+ var len = this.alternateFormats.length ;
+ if (len == 1) {
+ header += '<p>This document is also available in this non-normative format: ';
+ } else {
+ header += '<p>This document is also available in these non-normative formats: ';
+ }
+ for (var f = 0; f < len; f++) {
+ if (f > 0) {
+ if ( len == 2) {
+ header += ' ';
+ } else {
+ header += ', ' ;
+ }
+ if (f == len - 1) {
+ header += 'and ';
+ }
+ }
+ var ref = this.alternateFormats[f] ;
+ header += "<a href='" + ref.uri + "'>" + ref.label + "</a>" ;
+ }
+ header += '.</p>';
+ }
+
+ if (this.specStatus == "REC")
+ header += '<p>The English version of this specification is the only normative version. Non-normative <a href="http://www.w3.org/Consortium/Translation/">translations</a> may also be available.</p>';
+
header += "<p class='copyright'>";
if (this.specStatus == "unofficial") {
if (this.additionalCopyrightHolders) header += this.additionalCopyrightHolders;
@@ -840,7 +872,7 @@
var ref = refs[j];
sn.element("dt", { id: "bib-" + ref }, dl, "[" + ref + "]");
var dd = sn.element("dd", {}, dl);
- if (berjon.biblio[ref]) dd.innerHTML = berjon.biblio[ref];
+ if (berjon.biblio[ref]) dd.innerHTML = berjon.biblio[ref] + "\n";
}
}
else {
Received on Wednesday, 24 February 2010 20:21:14 UTC