You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add CROSSREF_MODE=local support via LocalCrossrefAdapter (#1095)
* Add CROSSREF_MODE=local support via LocalCrossrefAdapter
- Extract _CrossrefHttpClient wrapping the existing aiohttp logic
- Add module-level create_crossref_client() factory: returns
LocalCrossrefAdapter when CROSSREF_MODE=local, otherwise the HTTP client
- _search_by_issn() now delegates to the factory instead of calling
_get_journal_by_issn() directly
- aletheia-crossref-adapter is an optional dependency; ImportError is
raised with a clear message if CROSSREF_MODE=local but the package
is not installed
* Fix mypy type errors in crossref_analyzer local-mode integration
- Add dict[str, str] type params to _CrossrefHttpClient.__init__ headers
- Add return type annotation to create_crossref_client factory function
- Add explicit result type annotation to suppress no-any-return error
- Add mypy ignore_missing_imports override for aletheia_crossref_adapter
---------
Co-authored-by: Andreas Florath <Andreas.Florath@telekom.de>
0 commit comments