From: Jakub Skoczen Date: Mon, 4 Jun 2007 10:56:28 +0000 (+0000) Subject: When using xslt stylesheet record data will a recid member. X-Git-Tag: PAZPAR2.1.0.0~79 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=a2cf220d2113eba894b5771a49d5f3f4194f3fad;p=pazpar2-moved-to-github.git When using xslt stylesheet record data will a recid member. --- diff --git a/js/pz2.js b/js/pz2.js index 9eaae43..334082a 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -1,5 +1,5 @@ /* -** $Id: pz2.js,v 1.28 2007-06-01 09:19:58 jakub Exp $ +** $Id: pz2.js,v 1.29 2007-06-04 10:56:28 jakub Exp $ ** pz2.js - pazpar2's javascript client library. */ @@ -352,6 +352,7 @@ pz2.prototype = { if ( recordNode = data.getElementsByTagName("record")[0] ) { // if stylesheet was fetched do not parse the response if ( __myself.xslDoc ) { + record['recid'] = recordNode.getElementsByTagName("recid")[0].firstChild.nodeValue; record['xmlDoc'] = data; record['xslDoc'] = __myself.xslDoc; } else {