colrev.loader.ris.RISLoader

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

Bases: Loader

Loads ris files.

Initialize the instance.

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