This file contains 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
## steps to create new DSC-XTF hg repo with local XTF customizations | |
## based on http://groups.google.com/group/xtf-user/browse_thread/thread/11c79e82aa2e20c3 | |
hg clone http://xtf.hg.sourceforge.net:8000/hgroot/xtf/xtf#default | |
cvs co -r OAC_4_1_2009_Dec_branch xtf-cdl | |
cd xtf | |
hg branch dsc-server-consolidation |
This file contains 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
// script src="http://dsc-api.cdlib.org/js/api0.01.js" | |
/* | |
events | |
form | |
- form is Drawn | |
- words typed into search box (for autocomplete) | |
- autocomplete suggestion selected | |
- search form in submitted |
This file contains 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
http://api-dsc.cdlib.org/v0.01/search/relation/vvvvvv/text+title/sssssssssss | |
<docHit> | |
<meta> | |
<tableOfContents> | |
<div LABEL="Title"> | |
<img src="" height="" width="" alt="thumbnail"/> | |
<img src="" height="" width="" alt="larger image"/> | |
</div> |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>CDL DSC API Demo</title> | |
<script> | |
var conf = { | |
url : 'http://dsc-api.cdlib.org/v0.01', // url to service | |
relation : 'http://bampfa.berkeley.edu/moac/' // default limits | |
key : 'API-KEY' |
This file contains 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
<!-- which semantic element could be used? does not really matter --> | |
<!-- | |
http://www.w3.org/TR/html5/microdata.html | |
http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#microdata | |
http://forums.whatwg.org/viewtopic.php?t=4165&sid=3b528e372342e5c9935ed0ee063fee54 | |
http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#microdata-dom-api | |
--> | |
<div> | |
<div |
This file contains 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
// javascript to hold network link data for historical social network analysis | |
// nodes are IDed by MD5 checksum of AACR2 identity from EAC record | |
var nodes = { // protvis wants an array | |
'645cd6b85bb02f52240529b292e664b3' : { | |
identity: 'Washington, George, 1732-1799.', | |
birth: '1732, Feb. 22', // use julian dates? | |
death: '1799, Dec. 14' | |
// any other info needed on the node | |
}, |
This file contains 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
// javascript to hold network link data for historical social network analysis | |
// nodes are IDed by MD5 checksum of AACR2 identity from EAC record | |
var identity_links = { | |
identity: 'Washington, George, 1732-1799.', | |
birth: '1732, Feb. 22', // use julian dates? | |
death: '1799, Dec. 14', | |
// any other info needed on the node | |
correspondedWith: [ | |
'Franklin, Benjamin, 1706-1790.', |
This file contains 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
<xsl:stylesheet> | |
<!-- in xtf queryParser.xsl --> | |
<!-- autocomplete on title --> | |
<xsl:template match="/" mode="autocomplete"> | |
<xsl:variable name="stylesheet" select="'style/crossQuery/resultFormatter/oac4/autoFormatter.xsl'"/> | |
<query indexPath="index" termLimit="1000" workLimit="20000000" | |
style="{$stylesheet}" startDoc="{$startDoc}" maxDocs="20" normalizeScores="false"> | |
<and maxSnippets="0"> |
This file contains 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
RewriteCond %{HTTP_USER_AGENT} Googlebot [OR] | |
RewriteCond %{HTTP_USER_AGENT} ia_archiver [OR] | |
RewriteCond %{HTTP_USER_AGENT} sp.ask.com [OR] | |
RewriteCond %{HTTP_USER_AGENT} Jeeves/Teoma [OR] | |
RewriteCond %{HTTP_USER_AGENT} Mediapartners [OR] | |
RewriteCond %{HTTP_USER_AGENT} msnbot [OR] | |
RewriteCond %{HTTP_USER_AGENT} Slurp [OR] | |
RewriteCond %{HTTP_USER_AGENT} MSIECrawler [OR] | |
RewriteCond %{HTTP_USER_AGENT} www.voila.com [OR] | |
RewriteCond %{HTTP_USER_AGENT} vspider [OR] |
This file contains 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
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-xxxxxxx-1']); | |
_gaq.push(['_gat._anonymizeIp']); | |
_gaq.push(['_trackPageview']); | |
(function() { | |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
OlderNewer