Feature/citation count dropdown#15216
Conversation
|
Hey @aliyasirnac! 👋 Thank you for contributing to JabRef! We have automated checks in place, based on which you will soon get feedback if any of them are failing. We also use Qodo for review assistance. It will update your pull request description with a review help and offer suggestions to improve the pull request. After all automated checks pass, a maintainer will also review your contribution. Once that happens, you can go through their comments in the "Files changed" tab and act on them, or reply to the conversation if you have further inputs. You can read about the whole pull request process in our contribution guide. Please ensure that your pull request is in line with our AI Usage Policy and make necessary disclosures. |
This comment has been minimized.
This comment has been minimized.
Review Summary by QodoAdd citation count fetcher selection dropdown in entry editor
WalkthroughsDescription• Add citation count fetcher selection dropdown to entry editor • Support multiple citation sources: Semantic Scholar, OpenAlex, OpenCitations, scite.ai • Implement CitationCountFetcherType enum for citation count fetching • Integrate SciteAiFetcher as CitationCountFetcher implementation • Persist user's fetcher selection as preference Diagramflowchart LR
A["CitationCountEditor UI"] -->|displays| B["Fetcher ComboBox"]
B -->|selects| C["CitationCountFetcherType"]
C -->|creates| D["CitationCountFetcher"]
D -->|fetches from| E["Multiple Sources"]
E -->|includes| F["Semantic Scholar"]
E -->|includes| G["OpenAlex"]
E -->|includes| H["OpenCitations"]
E -->|includes| I["scite.ai"]
C -->|stored in| J["EntryEditorPreferences"]
J -->|synced with| K["SearchCitationsRelationsService"]
File Changes1. jabgui/src/main/java/org/jabref/gui/fieldeditors/CitationCountEditor.java
|
Code Review by Qodo
1.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…iguration in preferences
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
✅ All tests passed ✅🏷️ Commit: 856595a Learn more about TestLens at testlens.app. |
* upstream/main: (59 commits) Fix 15000 identifier (JabRef#15286) Chore(deps): Bump dev.langchain4j:langchain4j-bom in /versions (JabRef#15305) Supress JavaFX VirtualFlow Info log noise for large libraries (10k+). (JabRef#15298) Chore(deps): Bump commons-logging:commons-logging in /versions (JabRef#15304) Fix merge dialog closing immediately when only one PDF importer returns metadata (JabRef#15127) (JabRef#15287) Fixed nullable eventhandlers (JabRef#15288) New Crowdin updates (JabRef#15285) Fix the ESC key for GlobalSearchResultDialog (JabRef#15259) Remove jbang plugin banner (JabRef#15282) Chore(deps): Bump org.apache.httpcomponents.core5:httpcore5 in /versions (JabRef#15281) Udpate to latest gradle master (JabRef#15279) Migrate to GemsFX Notifications (JabRef#14762) Chore(deps): Bump JetBrains/junie-github-action from 0 to 1 (JabRef#15272) Chore(deps): Bump docker/setup-qemu-action from 3 to 4 (JabRef#15269) Feature/citation count dropdown (JabRef#15216) Update dependency org.apache.maven.plugins:maven-resources-plugin to v3.5.0 (JabRef#15275) Chore(deps): Bump jablib/src/main/resources/csl-styles (JabRef#15273) Fix more security Fix pr_body leakage Chore: add dependency-management.md (JabRef#15278) ...
Related issues and pull requests
Closes #15134
PR Description
This PR adds a fetcher selection dropdown to the CitationCountEditor in the General tab, allowing users to choose which source (Semantic Scholar, OpenAlex, OpenCitations, or scite.ai) is used to fetch the citation count for an entry. A new CitationCountFetcherType enum was introduced to separate citation count fetching from citation relation fetching, and SciteAiFetcher was updated to implement CitationCountFetcher. The selected fetcher is stored as a preference and kept in sync with SearchCitationsRelationsService.
PR screenshot
Steps to test
Checklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)