We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently we need to repeatedly implement these in each data model, e.g:
def nr_datasets_id_fetcher(record_uuid, data): """Fetch a record's identifiers. :param record_uuid: The record UUID. :param data: The record metadata. :returns: A :data:`invenio_pidstore.fetchers.FetchedPID` instance. """ id_field = 'InvenioID' return FetchedPID( # FetchedPID je obyčejný namedtuple provider=NRDatasetsIdProvider, pid_type=NRDatasetsIdProvider.pid_type, pid_value=CommunityPIDValue( str(data[id_field]), current_oarepo_communities.get_primary_community_field(data)) )
implement factories to be used like this
nr_datasets_id_fetcher = community_pid_fetcher(pid_type='blah', base_provider=RecordIdProviderV2) nr_datasets_id_minter = community_pid_minter(pid_type='blah', base_provider=RecordIdProviderV2)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently we need to repeatedly implement these in each data model, e.g:
implement factories to be used like this
The text was updated successfully, but these errors were encountered: