28 August 2008

sortable html table with widget

From: http://www.dhtmlgoodies.com/index.html?showDownload=true&whichScript=table_widget

How to use

You create the table by use of plain HTML as shown in the textaera code for <BODY>. What's important is that you:


  1. Have a parent div like this: <div class="widget_tableDiv">

  2. Use a <THEAD> tag as parent of your header row.

  3. Use <TD> and not <TH> as tags for your header content

  4. Use a <TBODY> as parent of your table data rows(<TR>).

Look in the example for further help.

The last thing you have to do is to call the javascript function initTableWidget() which "converts" the table. Example:


<script type="text/javascript">

initTableWidget('myTable',500,250,Array('S','N',false,'N','S'));

</script>


The arguments you send to this function are:

  1. 'myTable' = The ID of your table. example: <TABLE id="myTable" ...

  2. 500 = Width of table widget

  3. 250 = Height of table widget

  4. Array('S','N','S','N','S') = An array telling how the columns should be sorted. "S" = String, "N" = Numeric.
    Use false(without quotes) instead of "S" and "N" if you have columns that shouldn't be sorted at all.



25 August 2008

Worldcat API

Worldcat API
August 18, 2008

The Worldcat API was released beyond the original trial group while I was away.The WorldCat Search API provides access to WorldCat bibliographic records and holdings using the FRBR concepts to pull together various editions of the same work. The API provides access to the WorldCat databases from clients that can send RESTful URI queries with either the OpenSearch or SRU protocols and can accept RSS, Atom, MARC XML or Dublin Core [WorldCat Search API [OCLC - Web and Data Services]] Technical details are here; eligible users described here....