Skip to content

Commit

Permalink
ResumptionToken fixes continued
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Nov 13, 2023
1 parent 7b1887e commit 103b627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/acdhOeaw/arche/oaipmh/Oai.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,15 @@ public function oaiListRecords(string $verb, string $id = ''): void {
$until = (string) $this->getParam('until');
$set = (string) $this->getParam('set');
$metadataPrefix = (string) $this->getParam('metadataPrefix');
$token = (string) $this->getParam('resumptionToken');
$token = $this->getParam('resumptionToken');
$reloadCache = $this->getParam('reloadCache') !== null;

if ($verb == 'GetRecord') {
$this->checkRequestParam(['identifier', 'metadataPrefix', 'reloadCache']);
if ($id == '') {
throw new OaiException('badArgument');
}
} elseif (!empty($token)) {
} elseif ($token !== null) {
$this->checkRequestParam(['resumptionToken']);
$metadataPrefix = $this->search->findResumptionToken($token);
} else {
Expand Down

0 comments on commit 103b627

Please sign in to comment.