Skip to content

Commit

Permalink
OAI-PMH: make sure deleted record is show when project access is set …
Browse files Browse the repository at this point in the history
…to Private
  • Loading branch information
torinfo committed Jun 30, 2023
1 parent 60818d4 commit cbeaadc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oai-pmh/oai.php
Expand Up @@ -319,14 +319,14 @@ function getDeletedTemplates($metadataPrefix,$from,$until)
{
$q = "select template_id, timestamp from {$prefix}oai_publish op
where op.status = 'deleted'
and op.template_id not in (select template_id from {$prefix}templatedetails td where op.template_id = td.template_id)
and op.template_id not in (select template_id from {$prefix}templatedetails td where op.template_id = td.template_id and td.access_to_whom = 'Public')
and audith_id IN (SELECT max(audith_id) from {$xerte_toolkits_site->database_table_prefix}oai_publish op2 where status='deleted' and timestamp < ? group by op2.template_id)";
$params = array($until);
}
else {
$q = "select template_id, timestamp from {$prefix}oai_publish op
where op.status = 'deleted'
and op.template_id not in (select template_id from {$prefix}templatedetails td where op.template_id = td.template_id)
and op.template_id not in (select template_id from {$prefix}templatedetails td where op.template_id = td.template_id and td.access_to_whom = 'Public')
and audith_id IN (SELECT max(audith_id) from {$xerte_toolkits_site->database_table_prefix}oai_publish op2 where status='deleted' group by op2.template_id)";
$params = array();
}
Expand Down

0 comments on commit cbeaadc

Please sign in to comment.