2009/dap/ReSpec.js/js respec.js,1.82,1.83

Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv27918/js

Modified Files:
	respec.js 
Log Message:
support unofficial drafts

Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- respec.js	9 Feb 2010 16:43:38 -0000	1.82
+++ respec.js	10 Feb 2010 12:53:39 -0000	1.83
@@ -388,9 +388,9 @@
         }
         var latestURI = "http://www.w3.org/TR/" + this.shortName + "/";
         latestVersion = "<a href='" + latestURI + "'>" + latestURI + "</a>";
-        var header = 
-            "<div class='head'>" + 
-            "<p><a href='http://www.w3.org/'><img width='72' height='48' src='http://www.w3.org/Icons/w3c_home' alt='W3C'/></a>";
+        var header = "<div class='head'><p>";
+        if (this.specStatus != "unofficial")
+            header += "<a href='http://www.w3.org/'><img width='72' height='48' src='http://www.w3.org/Icons/w3c_home' alt='W3C'/></a>";
         if (this.specStatus == 'XGR') 
             header += "<a href='http://www.w3.org/2005/Incubator/XGR/'><img alt='W3C Incubator Report' src='http://www.w3.org/2005/Incubator/images/XGR' height='48' width='160'/></a>";
         header +=
@@ -422,13 +422,17 @@
         if (this.additionalCopyrightHolders) {
             header += " " + this.additionalCopyrightHolders + " &amp;";
         }
-        header += " <a href='http://www.w3.org/'><acronym title='World Wide Web Consortium'>W3C</acronym></a><sup>®</sup> " + 
-            "(<a href='http://www.csail.mit.edu/'><acronym title='Massachusetts Institute of Technology'>MIT</acronym></a>, " +
-            "<a href='http://www.ercim.eu/'><acronym title='European Research Consortium for Informatics and Mathematics'>ERCIM</acronym></a>, " +
-            "<a href='http://www.keio.ac.jp/'>Keio</a>), All Rights Reserved. " +
-            "W3C <a href='http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer'>liability</a>, " + 
-            "<a href='http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks'>trademark</a> and " +
-            "<a href='http://www.w3.org/Consortium/Legal/copyright-documents'>document use</a> rules apply.</p><hr/></div>";
+        if (this.specStatus == "unofficial")
+            header += "This document is licensed under a <a class='subfoot' href='http://creativecommons.org/licenses/by/3.0/' rel='license'>Creative Commons Attribution 3.0 License</a>";
+        else
+            header += " <a href='http://www.w3.org/'><acronym title='World Wide Web Consortium'>W3C</acronym></a><sup>®</sup> " + 
+                "(<a href='http://www.csail.mit.edu/'><acronym title='Massachusetts Institute of Technology'>MIT</acronym></a>, " +
+                "<a href='http://www.ercim.eu/'><acronym title='European Research Consortium for Informatics and Mathematics'>ERCIM</acronym></a>, " +
+                "<a href='http://www.keio.ac.jp/'>Keio</a>), All Rights Reserved. " +
+                "W3C <a href='http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer'>liability</a>, " + 
+                "<a href='http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks'>trademark</a> and " +
+                "<a href='http://www.w3.org/Consortium/Legal/copyright-documents'>document use</a> rules apply.";
+        header += "</p><hr/></div>";
         
         var tmp = sn.element("div");
         tmp.innerHTML = header;

Received on Wednesday, 10 February 2010 12:53:43 UTC