colrev.env.local_index.LocalIndex
- class colrev.env.local_index.LocalIndex(*, index_tei=False, verbose_mode=False)[source]
Bases:
objectThe LocalIndex implements indexing and retrieval of records across projects.
Initialize the instance.
Methods
get_curationsGet the directories of curations.
get_fields_to_removeCompares the record to available toc items and returns fields to remove (if any), such as the volume or number.
get_journal_rankingsGet the journal rankings from the sqlite database.
get_year_from_tocDetermine the year of a paper based on its table-of-content (journal-volume-number).
retrieveConvenience function to retrieve the indexed record_dict metadata based on another record_dict.
retrieve_based_on_colrev_pdf_idConvenience function to retrieve the indexed record_dict metadata based on a colrev_pdf_id.
retrieve_from_tocRetrieve a record from the toc (table-of-contents).
searchRun a search for records.
- get_fields_to_remove(record_dict)[source]
Compares the record to available toc items and returns fields to remove (if any), such as the volume or number.
- Return type:
list
- get_journal_rankings(journal)[source]
Get the journal rankings from the sqlite database.
- Return type:
list
- get_year_from_toc(record_dict)[source]
Determine the year of a paper based on its table-of-content (journal-volume-number).
- Return type:
str
- retrieve(record_dict, *, include_file=False, include_colrev_ids=False)[source]
Convenience function to retrieve the indexed record_dict metadata based on another record_dict.
- Return type:
- retrieve_based_on_colrev_pdf_id(*, colrev_pdf_id)[source]
Convenience function to retrieve the indexed record_dict metadata based on a colrev_pdf_id.
- Return type: