mirror of
https://github.com/opencultureconsulting/simple-oai-pmh.git
synced 2025-03-09 00:00:20 +01:00
Fix bug in ListIdentifiers
This commit is contained in:
parent
b2861398aa
commit
9da98b041e
@ -214,9 +214,11 @@ class OAI2Server {
|
||||
}
|
||||
$records = call_user_func($this->listRecordsCallback, $metadataPrefix, $this->formatTimestamp($from), $this->formatTimestamp($until), false, $deliveredRecords, $maxItems);
|
||||
foreach ($records as $record) {
|
||||
$cur_record = $this->response->addToVerbNode('record');
|
||||
if ($this->verb == 'ListRecords') { // for ListIdentifiers, only headers will be returned.
|
||||
$cur_record = $this->response->addToVerbNode('record');
|
||||
}
|
||||
$cur_header = $this->response->createHeader($record['identifier'], $this->formatDatestamp($record['timestamp']), $record['deleted'], $cur_record);
|
||||
if (!$record['deleted'] && $this->verb == 'ListRecords') { // for ListIdentifiers, only identifiers will be returned.
|
||||
if (!$record['deleted'] && $this->verb == 'ListRecords') { // for ListIdentifiers, only headers will be returned.
|
||||
$this->addMetadata($cur_record, $record['metadata']);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user