Implemented OpenAlex #14020
Conversation
Hey @MartinBuzogan!Thank you for contributing to JabRef! Your help is truly appreciated ❤️. We have automatic checks in place, based on which you will soon get automated feedback if any of them are failing. Please re-check our contribution guide in case of any other doubts related to our contribution workflow. |
| // DOI | ||
| if (item.has("publication_year")) { | ||
| String doi = item.optString("doi"); | ||
| doi = doi.replaceFirst("^https://doi\\.org/", ""); |
There was a problem hiding this comment.
No need to split the url from doi, we have cleanup/converter for this
There was a problem hiding this comment.
Ok, i will remove unnecessary cleanup
| @Test | ||
| void parserParsesSingleWorkObject() throws Exception { | ||
| Parser parser = fetcher.getParser(); | ||
| String json = "{" + |
There was a problem hiding this comment.
I think you can convert this to multi-line string (three quotation marks) intellij should offer an action for it
|
Thanks a lot for the contribution, looks already mostly good. Please have a look at the failing test. |
…s to multi-line strings & applied DoiCleanup instead of removing it manualy
subhramit
left a comment
There was a problem hiding this comment.
Lgtm, thanks!
P.S. (for future) please don't remove the steps to test section from the PR description.
|
After merging the main branch into mine I have issues with some of the pipeline, I don't know where is the problem before it passed all the tests |
|
Seems like an issue with sonatype or jitpack, resolving a snapshot dependency fails. not related to your changes |
* implementation of OpenAlexFetcher , Added UnitTest * updated changelog * updated tests for OpenAlex * Updated WebFetcher to correct SourceCode test & converted parser tests to multi-line strings & applied DoiCleanup instead of removing it manualy * OpenAlexFetcherTest Reformated * Changed annotation NotNull to NonNull
|
Are you interested in implementing the fetcher in #13400 as well? |
* upstream/main: (85 commits) Fix typo in PR template (add missing 'to') (JabRef#14050) New Crowdin updates (JabRef#14049) Switch to new macos intel runner and update arm runner as well (JabRef#14048) Automatic field editor: Add Clear content tab + viewmodel (JabRef#13824) Update dependency org.eclipse.jgit:org.eclipse.jgit.pgm to v7.4.0.202509020913-r (JabRef#14046) Rephrase JabRef-Machine's "Determine issue number" (JabRef#14044) Chore(deps): Bump com.vanniktech.maven.publish from 0.32.0 to 0.34.0 in /jablib (JabRef#14039) Chore(deps): Bump org.mockito:mockito-core in /jablib (JabRef#14038) Chore(deps): Bump jablib/src/main/resources/csl-styles (JabRef#14037) Chore(deps): Bump com.dlsc.pdfviewfx:pdfviewfx in /versions (JabRef#14040) Chore(deps): Bump lucene from 10.3.0 to 10.3.1 in /versions (JabRef#14042) Fix eadr missing (JabRef#14043) Enable update in versions of jablib (JabRef#14036) Update Gradle Wrapper from 9.3.0-jabref-1 to 9.1.0 (JabRef#14033) Implemented OpenAlex (JabRef#14020) Chore(deps): Bump peter-evans/create-or-update-comment from 4 to 5 (JabRef#14023) Chore(deps): Bump org.cyclonedx.bom from 3.0.0-alpha-1 to 3.0.0 (JabRef#14026) Chore(deps): Bump org.junit.jupiter:junit-jupiter in /versions (JabRef#14030) Chore(deps): Bump com.github.andygoossens:gradle-modernizer-plugin (JabRef#14027) Chore(deps): Bump org.mockito:mockito-core in /versions (JabRef#14028) ...
* implementation of OpenAlexFetcher , Added UnitTest * updated changelog * updated tests for OpenAlex * Updated WebFetcher to correct SourceCode test & converted parser tests to multi-line strings & applied DoiCleanup instead of removing it manualy * OpenAlexFetcherTest Reformated * Changed annotation NotNull to NonNull
|
Follow-up PR fixing some issues: #15023 |
Closes #13940
Mandatory checks
CHANGELOG.mdin a way that is understandable for the average user (if change is visible to the user)