Skip to content

Add search to return article and books for biodiversity (#8539)#8680

Merged
koppor merged 21 commits into
JabRef:mainfrom
Jonathan-Oliveira:add-new-websearch-options
May 9, 2022
Merged

Add search to return article and books for biodiversity (#8539)#8680
koppor merged 21 commits into
JabRef:mainfrom
Jonathan-Oliveira:add-new-websearch-options

Conversation

@Jonathan-Oliveira

@Jonathan-Oliveira Jonathan-Oliveira commented Apr 15, 2022

Copy link
Copy Markdown
Contributor

The present pull request partially solves the #8539, where any search for an author works.

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

@Siedlerchr Siedlerchr changed the title Add search by author to return article and books (#8539) Add search by author to return article and books for biodiversity (#8539) Apr 15, 2022
@Siedlerchr

Copy link
Copy Markdown
Member

Thanks for your contribution, on a quick look, the code already looks good. Will take a detailed look tomorrow.

@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Apr 18, 2022
@koppor

koppor commented Apr 18, 2022

Copy link
Copy Markdown
Member

Seems that we need an API key. Can you please add a short note to fetchers.md?

Comment thread src/main/java/org/jabref/logic/importer/fetcher/BiodiversityLibrary.java Outdated

@koppor koppor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR. Basing on the IEEE fetcher was risky, since that fetcher is a complicated one. I have some code remarks while reading it.

Comment thread src/test/java/org/jabref/logic/importer/fetcher/BiodiversityLibraryTest.java Outdated
@koppor koppor removed the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Apr 18, 2022
@koppor

koppor commented Apr 18, 2022

Copy link
Copy Markdown
Member

zbMath and jstor look simpler to be usable as basis.

@Jonathan-Oliveira

Copy link
Copy Markdown
Contributor Author

Thanks for reviewing, I'll make the changes

@koppor koppor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some more code comments.

Comment thread src/main/java/org/jabref/logic/importer/fetcher/BiodiversityLibrary.java Outdated
Comment thread src/main/java/org/jabref/logic/importer/fetcher/BiodiversityLibrary.java Outdated
Comment thread src/main/java/org/jabref/logic/importer/fetcher/BiodiversityLibrary.java Outdated
Comment thread src/main/java/org/jabref/logic/importer/fetcher/BiodiversityLibrary.java Outdated
Comment thread src/main/java/org/jabref/logic/importer/fetcher/BiodiversityLibrary.java Outdated
@koppor

koppor commented Apr 25, 2022

Copy link
Copy Markdown
Member

The API key should also be customizable as implemented at #7720.

@Siedlerchr

Copy link
Copy Markdown
Member

@Jonathan-Oliveira What's the status here? It would be nice if you could finish the PR

@Jonathan-Oliveira Jonathan-Oliveira force-pushed the add-new-websearch-options branch 3 times, most recently from 51d7f75 to 4eee171 Compare May 7, 2022 20:49
@Jonathan-Oliveira Jonathan-Oliveira force-pushed the add-new-websearch-options branch from 4eee171 to 8564f5e Compare May 7, 2022 21:48
@Jonathan-Oliveira

Jonathan-Oliveira commented May 7, 2022

Copy link
Copy Markdown
Contributor Author

@Siedlerchr I was able to fix most of the comments, it's just missing a better documentation in fetchres.md.

Siedlerchr and others added 9 commits May 9, 2022 21:42
…ira/jabref into add-new-websearch-options

* 'add-new-websearch-options' of github.com:Jonathan-Oliveira/jabref:
  parameterized test, normalized var names
Co-authored-by: Christoph <siedlerkiller@gmail.com>
Co-authored-by: Oliver Kopp <kopp.dev@gmail.com>
fix fetchers.md
@koppor

koppor commented May 9, 2022

Copy link
Copy Markdown
Member

We took the liberty to work on this PR in our developers call. We switched from plain-author searching to "search for everything". We used PublicationSearch from https://www.biodiversitylibrary.org/docs/api3.html.

We also converted (some) test cases to ParamterizedTests.

@Siedlerchr

Siedlerchr commented May 9, 2022

Copy link
Copy Markdown
Member

@Jonathan-Oliveira Thanks for your work on this! We also implemented the option to support the new Customize Api Key interface, so the Key can be put into the preferences.

@koppor koppor changed the title Add search by author to return article and books for biodiversity (#8539) Add search to return article and books for biodiversity (#8539) May 9, 2022
@koppor koppor merged commit 68278c5 into JabRef:main May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants