Commits

Anonymous committed 4c374c8

Committing everything before leaving.

Comments (0)

Files changed (3)

.settings/org.eclipse.core.resources.prefs

-#Sun Mar 13 16:45:47 GMT 2011
+#Sun Mar 13 17:08:02 GMT 2011
 eclipse.preferences.version=1
 encoding//demo_files/loadcites.js=UTF-8
+encoding//demo_files/runcites.js=UTF-8

demo_files/loadcites.js

  * or the [AGPLv3] License.”
  */
 
- 
-var data = {
-	"http://dx.doi.org/10.1038/nchem.402": {
-		"id": "http://dx.doi.org/10.1038/nchem.402",
-		"doi": "http://dx.doi.org/10.1038/nchem.402",
-		"title":"Anhydrous proton conduction at 150 °C in a crystalline metal–organic framework",
-		"author": [
-			{
-				"family": "D'Arcus",
-				"given": "Bruce",
-				"static-ordering": false
-			}
-		],
-        "note":"The apostrophe in Bruce's name appears in proper typeset form.",
-		"publisher": "Routledge",
-        "publisher-place": "New York",
-		"issued": {
-			"date-parts":[
-				[2006]
-			]
-		},
-		"type": "book"
-	},
-	"ITEM-2": {
-		"id": "ITEM-2",
-		"title":"Boundaries of Dissent: Protest and State Power in the Media Age",
-		"author": [
-			{
-				"family": "D'Arcus",
-				"given": "Bruce",
-				"static-ordering": false
-			}
-		],
-        "note":"The apostrophe in Bruce's name appears in proper typeset form.",
-		"publisher": "Routledge",
-        "publisher-place": "New York",
-		"issued": {
-			"date-parts":[
-				[2006]
-			]
-		},
-		"type": "book"
-	}
-};
+var data = new Object() ;
+
+var ScHTML2_CSL_JSON = function () {
+
+	var bib = $("[rel='http://purl.org/spar/biro/BibliographicRecord']") ;
+	
+	bib.each(function(index) {
+
+		//alert($(this).getAttribute("about")) ;
+		
+		var recordTemplate = {
+			"id": "http://dx.doi.org/10.1038/nchem.402",
+			"doi": "http://dx.doi.org/10.1038/nchem.402",
+			"title":"Anhydrous proton conduction at 150 °C in a crystalline metal–organic framework",
+			"author": [
+				{
+					"family": "D'Arcus",
+					"given": "Bruce",
+					"static-ordering": false
+				}
+			],
+	        "note":"The apostrophe in Bruce's name appears in proper typeset form.",
+			"publisher": "Routledge",
+	        "publisher-place": "New York",
+			"issued": {
+				"date-parts":[
+					[2006]
+				]
+			},
+			"type": "book"
+		 };
+
+		data("http://dx.doi.org/10.1038/nchem.402") = recordTemplate ;
+	  });
+
+} ;

demo_files/runcites.js

 
 
 var insert2 = function() {
+
+	ScHTML2_CSL_JSON() ;
+	alert(data);
+	
 	var citeproc, output;
 	var sys = new Sys(abbreviations);