W3C home > Mailing lists > Public > public-dap-commits@w3.org > January 2012

2009/dap/ReSpec.js/js respec.js,1.179,1.180

From: Frederick Hirsch via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 04 Jan 2012 16:22:10 +0000
To: public-dap-commits@w3.org
Message-Id: <E1RiTbO-0003Jj-U5@lionel-hutz.w3.org>
Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv12729

Modified Files:
	respec.js 
Log Message:
match copyright pubrules - emit copyright and registration entities, no acronym for last W3C


Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.179
retrieving revision 1.180
diff -u -d -r1.179 -r1.180
--- respec.js	15 Dec 2011 16:57:40 -0000	1.179
+++ respec.js	4 Jan 2012 16:22:08 -0000	1.180
@@ -760,10 +760,10 @@
         header += this.showPeople("Author", this.authors);
         header += "</dl><p class='copyright'>";
         header += 
-            "<a href='http://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> &copy; " ;
+            "<a href='http://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> &amp;copy; " ;
         if (this.copyrightStart && this.copyrightStart != this.publishDate.getFullYear()) header += this.copyrightStart + '-';
         header += this.publishDate.getFullYear();
-        header += " <a href='http://www.w3.org/'><acronym title='World Wide Web Consortium'>W3C</acronym></a><sup>&reg;</sup> " +
+        header += " <a href='http://www.w3.org/'>W3C</a><sup>&amp;reg;</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. " +
@@ -1240,18 +1240,33 @@
                         ref = ref.replace(/^\[\[/, "");
                         ref = ref.replace(/]]$/, "");
                         var norm = false;
+                        var inlineref = false;
                         if (ref.indexOf("!") == 0) {
                             norm = true;
                             ref = ref.replace(/^!/, "");
                         }
+                        if (ref.indexOf("%") == 0) {
+                            inlineref = true;
+                            ref = ref.replace(/^%/, "");
+                        }
                         if (berjon.biblio[ref]) {
                             if (norm) norms[ref] = true;
                             else      informs[ref] = true;
-                            sn.text("[", df);
-                            // embed a cite with an a inside of it
-                            var el = sn.element("cite", {} , df);
-                            sn.element("a", { "class": "bibref", rel: "biblioentry", href: "#bib-" + ref }, el, ref);
-                            sn.text("]", df);
+                            if(inlineref) {
+                                sn.element("p", {}, df);
+                                if (berjon.biblio[ref]) {
+                                    p.innerHTML = berjon.biblio[ref] +
+        "\n";
+                                } else {
+                                    p. innerHTML = "Reference missing.\n";
+                                }
+                            } else {
+                                sn.text("[", df);
+                                // embed a cite with an a inside of it
+                                var el = sn.element("cite", {} , df);
+                                sn.element("a", { "class": "bibref", rel: "biblioentry", href: "#bib-" + ref }, el, ref);
+                                sn.text("]", df);
+                            }
                         }
                         else {
                             badrefcount++;
Received on Wednesday, 4 January 2012 16:22:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 4 January 2012 16:22:17 GMT