/*
-** $Id: pz2.js,v 1.5 2007-04-03 14:27:21 jakub Exp $
+** $Id: pz2.js,v 1.6 2007-04-13 17:19:53 quinn Exp $
** pz2.js - pazpar2's javascript client library.
*/
for ( j = 0; j < locationNodes[i].childNodes.length; j++) {
if ( locationNodes[i].childNodes[j].nodeType == Node.ELEMENT_NODE ) {
var nodeName = locationNodes[i].childNodes[j].nodeName;
- var nodeText = locationNodes[i].childNodes[j].firstChild.nodeValue;
+ var nodeText;
+ if (locationNodes[i].childNodes[j].firstChild)
+ nodeText = locationNodes[i].childNodes[j].firstChild.nodeValue;
+ else
+ nodeText = '';
record["location"][i][nodeName] = nodeText;
}
}
/*
-** $Id: client.js,v 1.12 2007-04-13 01:10:21 quinn Exp $
+** $Id: client.js,v 1.13 2007-04-13 17:19:53 quinn Exp $
** MasterKey - pazpar2's javascript client .
*/
currentDetailedId = null;
return;
} else if (currentDetailedId != null) {
+ $(this.parentNode.lastChild).remove();
$('#rec_'+currentDetailedId).children('.detail').remove();
}
currentDetailedId = clickedId;