def create_fake_record():
    'Create records for demo purposes.'
    fake = Faker()
    data_to_use = {'access': {'record': 'public', 'files': 'public'}, 'files': {'enabled': False}, 'pids': {}, 'metadata': {'resource_type': CachedVocabularies.fake_resource_type(), 'creators': [{'person_or_org': {'family_name': fake.last_name(), 'given_name': fake.first_name(), 'type': 'personal', 'identifiers': [{'scheme': 'orcid', 'identifier': '0000-0002-1825-0097'}]}, 'affiliations': [{'name': fake.company(), 'identifiers': [{'scheme': 'ror', 'identifier': '03yrm5c26'}]}]} for i in range(4)], 'title': (fake.company() + "'s gallery"), 'additional_titles': [{'title': 'a research data management platform', 'type': 'subtitle', 'lang': 'eng'}, {'title': (fake.company() + "'s gallery"), 'type': 'alternativetitle', 'lang': 'eng'}], 'publisher': 'InvenioRDM', 'publication_date': fake_edtf_level_0(), 'subjects': CachedVocabularies.fake_subjects(), 'contributors': [{'person_or_org': {'family_name': fake.last_name(), 'given_name': fake.first_name(), 'type': 'personal'}, 'affiliations': [{'name': fake.company(), 'identifiers': [{'scheme': 'ror', 'identifier': '03yrm5c26'}]}], 'role': 'rightsholder'} for i in range(3)], 'languages': [CachedVocabularies.fake_language()], 'sizes': ['11 pages'], 'formats': ['application/pdf'], 'version': 'v0.0.1', 'description': fake.text(max_nb_chars=3000), 'additional_descriptions': [{'description': fake.text(max_nb_chars=200), 'type': 'methods', 'lang': 'eng'} for i in range(2)], 'funding': [{'funder': {'name': 'European Commission', 'identifier': '03yrm5c26', 'scheme': 'ror'}, 'award': {'title': 'OpenAIRE', 'number': '246686', 'identifier': '0000-0002-1825-0097', 'scheme': 'orcid'}}], 'references': [{'reference': 'Reference to something et al.', 'identifier': '0000000114559647', 'scheme': 'isni'}], 'identifiers': [{'identifier': 'ark:/123/456', 'scheme': 'ark'}]}}
    return json.loads(json.dumps(data_to_use))
Create records for demo purposes.
def create_fake_record():
    
    fake = Faker()
    data_to_use = {'access': {'record': 'public', 'files': 'public'}, 'files': {'enabled': False}, 'pids': {}, 'metadata': {'resource_type': CachedVocabularies.fake_resource_type(), 'creators': [{'person_or_org': {'family_name': fake.last_name(), 'given_name': fake.first_name(), 'type': 'personal', 'identifiers': [{'scheme': 'orcid', 'identifier': '0000-0002-1825-0097'}]}, 'affiliations': [{'name': fake.company(), 'identifiers': [{'scheme': 'ror', 'identifier': '03yrm5c26'}]}]} for i in range(4)], 'title': (fake.company() + "'s gallery"), 'additional_titles': [{'title': 'a research data management platform', 'type': 'subtitle', 'lang': 'eng'}, {'title': (fake.company() + "'s gallery"), 'type': 'alternativetitle', 'lang': 'eng'}], 'publisher': 'InvenioRDM', 'publication_date': fake_edtf_level_0(), 'subjects': CachedVocabularies.fake_subjects(), 'contributors': [{'person_or_org': {'family_name': fake.last_name(), 'given_name': fake.first_name(), 'type': 'personal'}, 'affiliations': [{'name': fake.company(), 'identifiers': [{'scheme': 'ror', 'identifier': '03yrm5c26'}]}], 'role': 'rightsholder'} for i in range(3)], 'languages': [CachedVocabularies.fake_language()], 'sizes': ['11 pages'], 'formats': ['application/pdf'], 'version': 'v0.0.1', 'description': fake.text(max_nb_chars=3000), 'additional_descriptions': [{'description': fake.text(max_nb_chars=200), 'type': 'methods', 'lang': 'eng'} for i in range(2)], 'funding': [{'funder': {'name': 'European Commission', 'identifier': '03yrm5c26', 'scheme': 'ror'}, 'award': {'title': 'OpenAIRE', 'number': '246686', 'identifier': '0000-0002-1825-0097', 'scheme': 'orcid'}}], 'references': [{'reference': 'Reference to something et al.', 'identifier': '0000000114559647', 'scheme': 'isni'}], 'identifiers': [{'identifier': 'ark:/123/456', 'scheme': 'ark'}]}}
    return json.loads(json.dumps(data_to_use))