Skip to content

Commit

Permalink
Merge pull request #3 from talis/fix-record-raw-data
Browse files Browse the repository at this point in the history
Return the actual found node
  • Loading branch information
timhodson authored May 23, 2018
2 parents 11c6723 + 6f458d4 commit 3c75109
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SRU/Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function data($raw=false)
if(!$this->recordData) {
$nodes = $this->xpath->query("./zs:recordData", $this->node);
foreach($nodes as $node) {
$this->recordData = $node->firstChild;
$this->recordData = $node;
}
}
if($raw && $this->packing() == "xml") {
Expand All @@ -69,4 +69,4 @@ public function data($raw=false)
return($data);
}
}
?>
?>

0 comments on commit 3c75109

Please sign in to comment.