Skip to content

Commit be80f66

Browse files
committed
Merge branch 'master' of github.com:caseyamcl/phpoaipmh
2 parents 92df161 + 4738984 commit be80f66

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/Phpoaipmh/RecordIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function nextItem()
169169
$this->numProcessed++;
170170

171171
$item = array_shift($this->batch);
172-
$this->currItem = new \SimpleXMLElement($item->asXML());
172+
$this->currItem = clone $item;
173173
} else {
174174
$this->currItem = false;
175175
}

tests/fixtures/SampleXML/GoodResponseSinglePage.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
</header>
2323
<metadata>
2424

25-
<nsdl_dc:nsdl_dc xmlns:nsdl_dc="http://ns.nsdl.org/nsdl_dc_v1.02/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:lar="http://ns.nsdl.org/schemas/dc/lar" schemaVersion="1.02.000" xsi:schemaLocation="http://ns.nsdl.org/nsdl_dc_v1.02/ http://ns.nsdl.org/schemas/nsdl_dc/nsdl_dc_v1.02.xsd">
25+
<nsdl_dc:nsdl_dc
26+
xmlns:nsdl_dc="http://ns.nsdl.org/nsdl_dc_v1.02/"
27+
xmlns:dc="http://purl.org/dc/elements/1.1/"
28+
xmlns:dct="http://purl.org/dc/terms/"
29+
xmlns:lar="http://ns.nsdl.org/schemas/dc/lar"
30+
schemaVersion="1.02.000"
31+
xsi:schemaLocation="http://ns.nsdl.org/nsdl_dc_v1.02/ http://ns.nsdl.org/schemas/nsdl_dc/nsdl_dc_v1.02.xsd">
2632
<dc:identifier>Reciprocal Net Sample id 27344140</dc:identifier>
2733
<dc:identifier>Common molecules Sample 50743</dc:identifier>
2834
<dc:identifier xsi:type="dct:URI">http://www.reciprocalnet.org/recipnet/showsample.jsp?sampleId=27344140</dc:identifier>

0 commit comments

Comments
 (0)