colrev.package_manager.package_base_classes.SearchSourcePackageBaseClass

class SearchSourcePackageBaseClass(*, source_operation, settings=None)[source]

Bases: ABC

The base class for SearchSource packages

Methods

add_endpoint

Add the SearchSource as an endpoint.

heuristic

Heuristic to identify which SearchSource a search file belongs to.

load

Load records from the SearchSource.

prep_link_md

Retrieve masterdata from the SearchSource.

prepare

Run the custom source-prep operation.

search

Run a search of the SearchSource.

Attributes

ci_supported

settings_class

source_identifier

search_types

heuristic_status

search_source

abstract classmethod add_endpoint(operation, params)[source]

Add the SearchSource as an endpoint.

Return type:

SearchSource

abstract classmethod heuristic(filename, data)[source]

Heuristic to identify which SearchSource a search file belongs to.

Return type:

dict

abstract load(load_operation)[source]

Load records from the SearchSource.

Return type:

dict

Retrieve masterdata from the SearchSource.

Return type:

Record

abstract prepare(record, source)[source]

Run the custom source-prep operation.

Return type:

Record

abstract search(rerun)[source]

Run a search of the SearchSource.

Return type:

None