colrev.loader.ris.RISLoader

class RISLoader(*, filename, entrytype_setter, field_mapper, id_labeler, unique_id_field='', logger=<Logger colrev.loader.ris (WARNING)>)[source]

Bases: Loader

Loads ris files

Methods

get_nr_records

Get the number of records in the file

load

Load table entries from the source

load_records_list

Load ris entries

Attributes

PATTERN

classmethod get_nr_records(filename)[source]

Get the number of records in the file

Return type:

int

load()

Load table entries from the source

Return type:

dict

load_records_list(*, content='')[source]

Load ris entries

The resulting keys should coincide with those in the KEY_MAP but they can be adapted before calling the convert_to_records()

Return type:

list