- From: Robin Berjon via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 23 Aug 2011 09:51:32 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/ReSpec.js/js In directory hutz:/tmp/cvs-serv31199/js Modified Files: respec.js Log Message: overrideCopyright Index: respec.js =================================================================== RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v retrieving revision 1.156 retrieving revision 1.157 diff -u -d -r1.156 -r1.157 --- respec.js 14 Jul 2011 16:01:31 -0000 1.156 +++ respec.js 23 Aug 2011 09:51:30 -0000 1.157 @@ -63,6 +63,7 @@ berjon.respec.prototype = { title: null, additionalCopyrightHolders: null, + overrideCopyright: null, editors: [], authors: [], @@ -540,7 +541,7 @@ if (!cfg.maxTocLevel) cfg.maxTocLevel = 0; if (!cfg.diffTool) cfg.diffTool = 'http://www3.aptest.com/standards/htmldiff/htmldiff.pl'; if (!cfg.noRecTrack) cfg.noRecTrack = false; - if (!cfg.doRDFa) cfg.doRDFa = false ; + if (!cfg.doRDFa) cfg.doRDFa = false; for (var k in cfg) this[k] = cfg[k]; this.isRecTrack = cfg.noRecTrack ? false : this.recTrackStatus.indexOf(this.specStatus) >= 0; this.isNoTrack = this.noTrackStatus.indexOf(this.specStatus) >= 0; @@ -897,39 +898,46 @@ 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; - else 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>."; + var copyright; + if (this.additionalCopyrightHolders) copyright = "<p class='copyright'>" + this.additionalCopyrightHolders + "</p>"; + else if (this.overrideCopyright) copyright = this.overrideCopyright; + else copyright = "<p class='copyright'>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>.</p>"; + header += copyright; } else { - if (this.doRDFa) { - header += - "<a rel='license' href='http://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> © " ; - } else { - header += - "<a href='http://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> © " ; - } - if (this.copyrightStart) { - header += this.copyrightStart + '-'; + if (this.overrideCopyright) { + header += this.overrideCopyright; } - header += this.publishDate.getFullYear(); - if (this.additionalCopyrightHolders) header += " " + this.additionalCopyrightHolders + " &"; - if (this.doRDFa) { - header += " <span rel='dcterms:publisher'><span typeof='foaf:Organization'><a rel='foaf:homepage' property='foaf:name' content='World Wide Web Consotrium' href='http://www.w3.org/'><acronym title='World Wide Web Consortium'>W3C</acronym></a><sup>®</sup></span></span> "; - } else { - header += " <a href='http://www.w3.org/'><acronym title='World Wide Web Consortium'>W3C</acronym></a><sup>®</sup> " ; + else { + header += "<p class='copyright'>"; + if (this.doRDFa) { + header += "<a rel='license' href='http://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> © "; + } + else { + header += "<a href='http://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> © "; + } + if (this.copyrightStart) { + header += this.copyrightStart + '-'; + } + header += this.publishDate.getFullYear(); + if (this.additionalCopyrightHolders) header += " " + this.additionalCopyrightHolders + " &"; + if (this.doRDFa) { + header += " <span rel='dcterms:publisher'><span typeof='foaf:Organization'><a rel='foaf:homepage' property='foaf:name' content='World Wide Web Consotrium' href='http://www.w3.org/'><acronym title='World Wide Web Consortium'>W3C</acronym></a><sup>®</sup></span></span> "; + } else { + header += " <a href='http://www.w3.org/'><acronym title='World Wide Web Consortium'>W3C</acronym></a><sup>®</sup> "; + } + header += + "(<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>"; + } - header += - "(<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>"; + header += "<hr/></div>"; return header; },
Received on Tuesday, 23 August 2011 09:51:37 UTC