2009/dap/ReSpec.js/js respec.js,1.188,1.189

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

Modified Files:
	respec.js 
Log Message:
Added handling for prevRecHeader and prevRecURI to make previous recommendation references in the document head more specific if needed.
Updated documentation about these and about testsuiteURI and implementationReportURI which were not in the docs.

Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.188
retrieving revision 1.189
diff -u -d -r1.188 -r1.189
--- respec.js	18 May 2012 23:38:40 -0000	1.188
+++ respec.js	22 May 2012 15:36:13 -0000	1.189
@@ -880,8 +880,13 @@
         }
 
         if (this.prevRecShortname) {
-            var prevRecURI = "http://www.w3.org/TR/" + this.prevRecShortname + "/";
-            header += "<dt>Latest recommendation:</dt><dd>" + 
+            var prevRecURI = this.prevRecURI ? this.prevRecURI : "http://www.w3.org/TR/" + this.prevRecShortname + "/";
+            if (this.prevRecHeader) {
+                header += "<dt>" + this.prevRecHeader;
+            } else {
+                header += "<dt>Latest recommendation" ;
+            }
+            header += ":</dt><dd>" + 
                 '<a href="' + prevRecURI + '">' + prevRecURI + "</a></dd>";
         }
 

Received on Tuesday, 22 May 2012 15:36:38 UTC