MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _doi_url

Function _doi_url

deployments/desktop/shared/agents.py:212–221  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

210 return text
211
212
213def _doi_url(value: Any) -> str:
214 text = str(value or "").strip()
215 if not text:
216 return ""
217 if text.startswith(("http://", "https://")):
218 return text
219 if text.lower().startswith("doi.org/"):
220 return f"https://{text}"
221 doi = _doi_value(text)
222 return f"https://doi.org/{doi}" if doi else ""
223
224

Callers 2

_paper_urlFunction · 0.85
_report_abs_urlFunction · 0.85

Calls 1

_doi_valueFunction · 0.85

Tested by

no test coverage detected