Commits

Anonymous committed 1734c27

Starting to get the correct DOIs from the document.

Comments (0)

Files changed (2)

 <head>
 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
 
+	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
 	<script type="text/javascript" src="demo_files/loadabbrevs.js"></script>
     <script type="text/javascript; e4x=1" src="demo_files/xmle4x.js"></script> 
 	<script type="text/javascript" src="demo_files/xmldom.js"></script>
 	<script type="text/javascript" src="demo_files/loadcsl.js"></script>
 	<script type="text/javascript" src="demo_files/loadcites.js"></script>
 	<script type="text/javascript" src="demo_files/runcites.js"></script>
-	
-	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
-	
 
 <title>Article Demo</title>
 </head>

demo_files/loadcites.js

 
 	var bib = $("[rel='http://purl.org/spar/biro/BibliographicRecord']") ;
 	
-	bib.each(function(index) {
+	bib.each(function() {
 
-		//alert($(this).getAttribute("about")) ;
+		var doi = this.getAttribute("about") ;
 		
 		var recordTemplate = {
-			"id": "http://dx.doi.org/10.1038/nchem.402",
-			"doi": "http://dx.doi.org/10.1038/nchem.402",
+			"id": doi,
+			"doi": doi,
 			"title":"Anhydrous proton conduction at 150&nbsp;&#x000B0;C in a crystalline metal&#x02013;organic framework",
 			"author": [
 				{
 			"type": "book"
 		 };
 
-		data("http://dx.doi.org/10.1038/nchem.402") = recordTemplate ;
+		data[doi] = recordTemplate ;
 	  });
 
 } ;