-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOI improvements #1447
DOI improvements #1447
Conversation
} | ||
|
||
private static double editDistanceIgnoreCase(String a, String b) { | ||
return METRIC_DISTANCE.distance(a.toLowerCase(), b.toLowerCase()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a locale when using toLowerCase.
LGTM |
import net.sf.jabref.model.database.BibDatabase; | ||
import net.sf.jabref.model.entry.BibEntry; | ||
|
||
public class CrossrefFetcherTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewrite this as a real JUnit test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have tests for the Crossref fetcher. This is a "tool" to analyze the accuracy of the algorithm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a short JavaDoc to describe the purpose and the usage of the tool?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I remove it from the git repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know 😉 If it will be useful for further improvements leave it - if it has already done its part remove it.
…ent and fetch afterwards
Thanks for your comments 👍 |
First batch of improvements of the DOI retrieval logic.
more to come: #1424.