Commit ef052b3
fix: add DOI to prefix_mapping in _get_not_found_ids
The `_get_not_found_ids` method was missing DOI from its
`prefix_mapping` dict. When a paper was looked up using a
DOI-prefixed ID (e.g., `DOI:10.1145/792550.792552`), the method
would add only the bare DOI value to `found_ids` (without the
`DOI:` prefix), causing the input ID to never match. This resulted
in a false "IDs not found" warning for every DOI-prefixed lookup,
even when the paper was successfully returned.
Also changed the matching logic to always add bare external ID
values alongside prefixed forms, so both `DOI:10.1145/...` and
`10.1145/...` inputs match correctly. This is consistent with
how the Semantic Scholar API accepts both forms.
Co-Authored-By: Claude Opus 4.6 <[email protected]>1 parent 93bc2ca commit ef052b3
2 files changed
Lines changed: 27 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| |||
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
| 245 | + | |
244 | 246 | | |
245 | 247 | | |
246 | 248 | | |
247 | | - | |
248 | | - | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
287 | 299 | | |
288 | 300 | | |
289 | 301 | | |
| |||
829 | 841 | | |
830 | 842 | | |
831 | 843 | | |
832 | | - | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
833 | 857 | | |
834 | 858 | | |
835 | 859 | | |
| |||
0 commit comments