View this code at http://livecoding.io/4730760
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(XML) | |
getMARCField = function(marc_doc, tag, code) { | |
xpath = paste("/m:collection/m:record/m:datafield[@tag='", tag, "']/m:subfield[@code='", code, "']", sep="") | |
return(xpathApply(marc_doc, xpath, namespaces=c("m"), xmlValue)) | |
} | |
vs = xmlRoot(xmlParse('vail-first-3500.xml')) | |
field100a = getMARCField(vs, '100', 'a') |
View this code at http://livecoding.io/4730608
Extent indicator globe using d3.geo.orthographic and radial gradients.
Slippy map code from:
http://bl.ocks.org/3943330 by tmcw
http://bl.ocks.org/4132797 by mbostock
Map tiles from Stamen
Faux-3d SVG globe using d3.geo.orthographic and a few radial gradients. Labels offset or hidden based on radians from current map center to enhance the effect.
Uncomment svg.append("g").attr("class","countries") for hover-able country outlines.
View this code at http://livecoding.io/4620198
View this code at http://livecoding.io/4612667
View this code at http://livecoding.io/4608772
View this code at http://livecoding.io/4608246
View this code at http://livecoding.io/4608060