From 29cc5135051beb8d82d4738d2e7bf90da92202f5 Mon Sep 17 00:00:00 2001 From: Sebastian Hammer Date: Thu, 8 Feb 2007 02:08:47 +0000 Subject: [PATCH] Added kink to OpenWorldCat from ISBN --- www/demo/search.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/www/demo/search.js b/www/demo/search.js index 1c521ac..d8a17be 100644 --- a/www/demo/search.js +++ b/www/demo/search.js @@ -1,4 +1,4 @@ -/* $Id: search.js,v 1.47 2007-02-06 23:22:49 quinn Exp $ +/* $Id: search.js,v 1.48 2007-02-08 02:08:47 quinn Exp $ * --------------------------------------------------- * Javascript container */ @@ -338,6 +338,15 @@ function paint_data_elements(target, node) nv.appendChild(link); } + else if (name == 'md-isbn') + { + nv = document.createElement('span'); + nv.appendChild(document.createTextNode(value + ' ')); + var link = create_element('a', 'search OpenWorldCat'); + link.setAttribute('target', '_blank'); + link.setAttribute('href', 'http://www.worldcat.org/search?q=isbn%3A' + value); + nv.appendChild(link); + else nv = document.createTextNode(value); dn.appendChild(nv); -- 1.7.10.4