social bookmarking for III catalog

1.drop this in your bib_display.html template

2.change the 'short' var from TRIPOD: to something more useful for you


<!-- AddThis Bookmark Button BEGIN -->
	<a href="http://www.addthis.com/bookmark.php" 
	onclick="bookmarkThis();return false" target="_blank">
		<img src="http://s5.addthis.com/button1-bm.gif" width="125" 
		height="16" border="0" alt="AddThis Social Bookmark Button" 
		/></a> 
<script type="text/javascript"  
src="http://s5.addthis.com/js/widget.php?v=10"></script>

		<script type="text/javascript">
	var addthis_pub = ''; // register at http://www.addthis.com/ to get a domain key (your username is your key if you want to keep stats
	var short = "TRIPOD: "; // short title
function bookmarkThis() {
	addthis_url=document.getElementById("recordnum");
    addthis_title=document.title;
try {					// try.s allow us to do something and fail
					// without impacting the user
   var debug =0;
   var tr = document.getElementsByTagName('TR');		// get the rows for every table on the page
  for(i = 0; i < tr.length; i++) {
    var x=tr[i].getElementsByTagName('TD');		// for each row, get all of the cells
    if (x.length == 2 && x[0].innerHTML == "Title") {		// if I have 2 cells one with the title
      addthis_title = short + x[1].innerHTML.replace(/(<([^>]+)>)/ig,"");		// get the title and strip all tags
      addthis_title = addthis_title.replace(/[\n\t]/ig,"");
	  if (debug > 0) alert('found link: ' + addthis_title);		// if debugging, show the title
    }
  }
 } catch (e) {}
 

	return addthis_click (this);
}
</script>
<!-- AddThis Bookmark Button END -->