module documentation
Define the home view and a maintenance view.
| Class | |
Model for an author name. |
| Class | |
Model for a publication. |
| Function | add |
Add infos about the repositories of the lycosystem to the context. |
| Function | add |
Add resolved references of publicationsto the context, given a list of DOIs. |
| Function | fetch |
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.
@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.