Skip to content

Commit

Permalink
NoSetHierachy error enforced
Browse files Browse the repository at this point in the history
  • Loading branch information
janreijnders committed Nov 5, 2021
1 parent 42c6944 commit 96b898e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions oai-pmh/oai.php
Expand Up @@ -62,6 +62,8 @@ function($identifier = '') {

'ListSets' =>
function($resumptionToken = '') {


return
array (
array('setSpec'=>'class:collection', 'setName'=>'Collections'),
Expand All @@ -77,6 +79,7 @@ function($resumptionToken = '') {
' <dc:description>This set contains metadata describing '.
' electronic music recordings made during the 1950ies</dc:description> '.
' </oai_dc:dc>'));

},

'ListRecords' =>
Expand Down
3 changes: 2 additions & 1 deletion oai-pmh/oaiserver.php
Expand Up @@ -128,7 +128,8 @@ public function ListSets()
$resumptionToken = null;
}
if (empty($this->errors)) {
if ($sets = call_user_func($this->listSetsCallback, $resumptionToken)) {
// Remove (and false) for normal function
if ($sets = call_user_func($this->listSetsCallback, $resumptionToken) and false) {

foreach ($sets as $set) {

Expand Down

0 comments on commit 96b898e

Please sign in to comment.