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

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

Modified Files:
	respec.js 
Log Message:
Added RDFa list for editors.

Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.187
retrieving revision 1.188
diff -u -d -r1.187 -r1.188
--- respec.js	17 May 2012 15:32:39 -0000	1.187
+++ respec.js	18 May 2012 23:38:40 -0000	1.188
@@ -275,7 +275,8 @@
             }
             if (about != '') {
                 secs[i].setAttribute('typeof', 'bibo:Chapter') ;
-                secs[i].setAttribute('about', about) ;
+                secs[i].setAttribute('resource', about) ;
+                secs[i].setAttribute('rel', "bibo:chapter" ) ;
             }
         }
     },
@@ -338,6 +339,7 @@
                 prefixAtr += "bibo: http://purl.org/ontology/bibo/";
             }
             str += " prefix=\"" + this._esc(prefixAtr) + "\"";
+            str += " typeof=\"bibo:Document\"";
         }
 
         str += ">\n";
@@ -403,6 +405,7 @@
                 }
             }
         }
+        str += " typeof=\"bibo:Document\"";
         str += ">\n";
         // walk the entire DOM tree grabbing nodes and emitting them - possibly modifying them
         // if they need the funny closing tag
@@ -701,6 +704,9 @@
         if ( this.doRDFa ) {
             if ( name == 'Editor' ) {
                 re = " rel='bibo:editor'";
+                if (this.doRDFa == "1.1") {
+                    re += " inlist=''" ;
+                }
                 rn = " property='foaf:name'";
                 rm = " rel='foaf:mbox'";
                 rp = " typeof='foaf:Person'";

Received on Friday, 18 May 2012 23:38:45 UTC