Skip to main content

Module selection

Module selection 

Source

Structs§

Selection
SelectionEntry
A single paper in a selection. Stores as much metadata as resolved. If zotero_key is None, the paper has not been matched to the local Zotero library; metadata can be used later to prompt the user to download it.
SelectionState

Enums§

SelectionError

Functions§

active_selection_name
delete_selection
entry_matches_doi
entry_matches_key
entry_matches_openalex
entry_matches_remove_input
Match a removal input against an entry (by key, OA ID, DOI, or title substring).
list_selection_names
List all selection names (sorted alphabetically).
load_selection
load_state
looks_like_doi
looks_like_openalex_work_id
resolve_paper
Resolve a paper input string to a SelectionEntry. Tries Zotero first (if available), then OpenAlex. Merges metadata from both.
resolve_selection
Resolve a name-or-index string to a selection name. Accepts 1-based index or case-insensitive exact name match.
save_selection
save_state
selections_dir
Returns the selections directory, allowing PAPERS_DATA_DIR env var override (used by tests). Falls back to dirs::data_dir()/papers/selections.
strip_doi_prefix
validate_name