module documentation

Define the home view and a maintenance view.

Class AuthorName Model for an author name.
Class Publication Model for a publication.
Function add_lycosystem_repos_to_context Add infos about the repositories of the lycosystem to the context.
Function add_publications_to_context Add resolved references of publicationsto the context, given a list of DOIs.
Function fetch_works_from_doi Get the reference from a DOI using Crossref.
Function index Return the landing page HTML.
Function maintenance Redirect to maintenance page when lyprox.settings.MAINTENANCE is True.
Variable logger Undocumented
def add_lycosystem_repos_to_context(context: dict[str, Any], repo_ids_and_img_paths: list[tuple[str, str]], ref: str = 'main') -> dict[str, Any]:

Add infos about the repositories of the lycosystem to the context.

def add_publications_to_context(context: dict[str, Any], dois: list[str]) -> dict[str, Any]:

Add resolved references of publicationsto the context, given a list of DOIs.

@JOBLIB_MEMORY.cache
def fetch_works_from_doi(crossref: Crossref, doi: str) -> WorksContainer | None:

Get the reference from a DOI using Crossref.

This function is cached to avoid hitting the Crossref API too often.

def index(request):

Return the landing page HTML.

This adds the installed apps to the context where the add_to_navbar attribute is set to True.

It also adds the publications stored in a YAML file to the context.

def maintenance(request):

Redirect to maintenance page when lyprox.settings.MAINTENANCE is True.

logger =

Undocumented