where harvestingclient_id is null and versionstate = 'RELEASED' and datasetfield.template_id is null
and datasetfield.datasetfieldtype_id = 1
and datasetversion.versionnumber = 1
and datasetversion.minorversionnumber = 0
and publicationdate >= date_trunc('day', current_date - interval '7' day)
order by publicationdate,title
For new major versions (versionnumber>1, minorversionnumber=0, not harvested, state='RELEASED') this is the query I used (using datasetversion.releasetime instead of publicationdate since publicationdate is the date the original v1.0 is published and is the same for all subsequent versions)
select datasetfieldvalue.value as "title",to_char(releasetime,'FMDD Month YYYY') as "publish date", protocol||':'||authority||'/'||identifier as "DOI", versionnumber, minorversionnumber