With the new dynamic sets the old has_records does not work. It can be implemented but would require a full search:
def has_record(self, record):
"""Check if the record blongs to the OAISet.
:param record: Record to be checked.
:type record: `invenio_records.api.Record` or derivative.
"""
return self.spec in record.get('_oai', {}).get('sets', [])
With the new dynamic sets the old
has_records
does not work. It can be implemented but would require a full search: