- From: Shane McCarron via cvs-syncmail <cvsmail@w3.org>
- Date: Sat, 10 Jul 2010 15:34:34 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/ReSpec.js/js In directory hutz:/tmp/cvs-serv10554 Modified Files: respec.js Log Message: Simplified RDFa embedded for editors and copyright / license as per Gregg. Index: respec.js =================================================================== RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v retrieving revision 1.131 retrieving revision 1.132 diff -u -d -r1.131 -r1.132 --- respec.js 9 Jul 2010 22:24:46 -0000 1.131 +++ respec.js 10 Jul 2010 15:34:32 -0000 1.132 @@ -652,6 +652,8 @@ var header = ""; if (people.length == 0) return header; + var re = '' ; + var rp = '' ; var rl = '' ; var rt = '' ; var rm = '' ; @@ -660,8 +662,10 @@ var rpu = '' ; if ( this.doRDFa ) { if ( name == 'Editor' ) { + re = " rel='bibo:editor'"; rn = " property='foaf:name'"; rm = " rel='foaf:mbox'"; + rp = " typeof='foaf:Person'"; rwu = " rel='foaf:workplaceHomepage'"; rpu = " rel='foaf:homepage'"; } @@ -675,16 +679,15 @@ for (var i = 0; i < people.length; i++) { - var id = 'editor_' + i ; var pers = people[i]; if (this.doRDFa) { - header += "<dd rel='bibo:editor' resource='[_:" + id + "]'><span typeof='foaf:Person' about='[_:" + id + "]'>"; + header += "<dd" + re +"><span" + rp + ">"; } else { header += "<dd>"; } if (pers.url) { if (this.doRDFa) { - header += "<a" + rpu + " href='" + pers.url + "'><span about='[_:" + id + "]'" + rn + ">" + pers.name + "</span></a>"; + header += "<a" + rpu + rn + " content='" + pers.name + "' href='" + pers.url + "'>" + pers.name + "</a>"; } else { header += "<a href='" + pers.url + "'>"+ pers.name + "</a>"; } @@ -842,7 +845,7 @@ header += this.publishDate.getFullYear(); if (this.additionalCopyrightHolders) header += " " + this.additionalCopyrightHolders + " &"; if (this.doRDFa) { - header += " <span rel='dcterms:publisher' resource='[_:publisher]'><span about='[_:publisher]' typeof='foaf:Organization'><a about='[_:publisher]' rel='foaf:homepage' href='http://www.w3.org/'><acronym about='[_:publisher]' property='foaf:name' content='World Wide Web Consortium' title='World Wide Web Consortium'>W3C</acronym></a><sup>®</sup></span></span> "; + 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> " ; }
Received on Saturday, 10 July 2010 15:34:36 UTC