1. Dan Hagon
  2. ScHTML-citations

Commits

ptsefton  committed 70ae5f0

Checking in a day's work

  • Participants
  • Parent commits 5c31bcd
  • Branches default

Comments (0)

Files changed (2)

File demo_files/loadcites.js

View file
                 name=e.text();  
                 url=e.parent("span[resource]").attr("resource"); 
                 creators.push   ({literal:name, url:url});
+               
 
         });
-    
-  
         aboutObj.author=creators; 
+        date = e.find("*[property= http://purl.org/dc/terms/date]").text(); 
+      
+        aboutObj["issued"] = {"date-parts" : [[date]] };
+       
         aboutObj.note = "";
+        
+        aboutObj.type = "article-journal" ; //TODO - hardwired default
+
+        //tmp= e.find("span[rel= http://purl.org/dc/terms/isPartOf]"); 
+     
+
+        //aboutObj["container-title"] = tmp.find("span[property= http://purl.org/dc/termstitle]").att"content");                               
+       
+
+        
         allRefData[id] = aboutObj;
       
 
     /* isPartOf 
     tmp=e.find("span[rel= http://purl.org/dc/terms/isPartOf]"); 
-    isPartOf.title=tmp.find("span[property= http://purl.org/dc/terms/title]").attr("content");                        isPartOf.shortTitle=tmp.find("span[property= http://purl.org/ontology/bibo/shortTitle]").text(); aboutObj.isPartOf=isPartOf; // date aboutObj.date=e.find("span[property= http://purl.org/dc/terms/date]").text(); // volume aboutObj.volue=e.find("span[property= http://purl.org/ontology/bibo/volume]").text(); // issue aboutObj.issue=e.find("span[property= http://purl.org/ontology/bibo/issue]").text(); // pageStart & pageEnd aboutObj.pageStart=e.find("span[property= http://purl.org/ontology/bibo/pageStart]").text(); aboutObj.pageEnd=e.find("span[property= http://purl.org/ontology/bibo/pageEnd]").text(); // doi tmp=e.find("span[property= http://purl.org/ontology/bibo/doi]"); aboutObj.doi={url:tmp.attr("href"), text:tmp.text()}; // jsObj[id]=aboutObj;
+    isPartOf.title=tmp.find("span[property= http://purl.org/dc/terms/title]").attr("content");                               isPartOf.shortTitle=tmp.find("span[property= http://purl.org/ontology/bibo/shortTitle]").text(); aboutObj.isPartOf=isPartOf; //// volume aboutObj.volue=e.find("span[property= http://purl.org/ontology/bibo/volume]").text(); // issue aboutObj.issue=e.find("span[property= http://purl.org/ontology/bibo/issue]").text(); // pageStart & pageEnd aboutObj.pageStart=e.find("span[property= http://purl.org/ontology/bibo/pageStart]").text(); aboutObj.pageEnd=e.find("span[property= http://purl.org/ontology/bibo/pageEnd]").text(); // doi tmp=e.find("span[property= http://purl.org/ontology/bibo/doi]"); aboutObj.doi={url:tmp.attr("href"), text:tmp.text()}; // jsObj[id]=aboutObj;
   */
 
 }); 

File demo_files/runcites.js

View file
         }
 
     });
-	//var citeInserter = new CiteInserter("citation_cad","cad");
-	//var cad1 = citeproc.appendCitationCluster(citationCAD1);
-	//citeInserter.insertCite(cad1);
-	//var cad2 = citeproc.appendCitationCluster(citationCAD2);
-	//citeInserter.insertCite(cad2);