-
Notifications
You must be signed in to change notification settings - Fork 15
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
Upgrade note field if containing url #216
Upgrade note field if containing url #216
Comments
79c4dba80a copied .github/workflows/merge.yaml .github/workflows/sheldon.yaml from styles 444eafb731 copied .github/workflows/sheldon.yaml from styles 810aad5bbc Add Hindi locale file (#216) 81e7a4db3e copied .github/workflows/sheldon.yaml from styles 01e105d03f copied .github/workflows/sheldon.yaml from styles 5e7a243493 copied .github/workflows/sheldon.yaml from styles 0cc2f75795 copied .github/workflows/sheldon.yaml from styles 01ccfd6e97 Update locales.json 5627bdaadb Update locales.json af8f991570 Stop notifying 8827 port on Zotero servers (#215) 3ad32f0fb9 copied .github/workflows/merge.yaml from styles git-subtree-dir: buildres/csl/csl-locales git-subtree-split: 79c4dba80a16ad71a1ef462dcdba4db48e4f77ba
hello @koppor, can I get assigned? |
Hello there, |
Hello there @koppor, Alexandra Stathopoulou |
Hello @koppor, |
@Alexandra-Stath I'd propose,
I apologize in advance if someone else overrides this later. From my point-of-view, this makes the most sense. |
Hello @k3KAW8Pnf7mkmdSMPHz27
Shall we consider that case? Thank you for the feedback. |
Because many fields in bibtex aren't well defined, the note field is one of them, e.g., https://www.bibtex.com/f/note-field/ essentially argues it is a field to store any relevant information that did not fit in any other field. Additionally, If you search around a bit, you'll find posts like https://tex.stackexchange.com/a/57990 proposing it as an option for multiple URLs, which means someone is going to use it in that way for sure. |
Thank you for the quick response. |
In case the URL field contains something, no action should be taken. -- JabRef should not destroy data.
In my opptionen, The whole operation is intended for mass cleanup - without requiring manual inspection after the action. The text "Move ..." is also used by the other actions above. They are (hopefully) not destroying anything either... I opted for "Move" to indicate that the URL is disappearing from the note field after the action. Thus, I ask for keeping the original text. (And in the devcall or other sessions, we should discuss the whole dialog and the wording)
With one exeption: In case the URL field is empty, move the first found url - and keep the second. -- This one is optional - if implemented, please also add test cases. The test cases should cover
Thus, the latex command |
In case url field contains the same URL with the one in note, then wouldn't it be proper at least to remove the url from the note? |
Agree! Thank you for thinking about that edge case! -- It is similar to the Move DOI behavior! |
I have just opened the pull request regarding the issue. |
Discussion with @demetres12 - ´visited 2007-09-15 Excerpt from biblatex manual: Will be a follow-up PR! |
So we are looking for |
Interesting question. Handling I like that JabRef tries to be precise about the things it does. There is no "magic cleanup" doing "something useful". This "visited" cleanup is something very special. I didn't encounter any bibtex file containging Without any empirical data, I vote for handling the Please use |
Agree. On the one hand JabRef needs to be precise and cover several unexpected cases a user may perform, but on the other hand this could lead to overkill (in our case of the cleanup activities).
Actually, I'm worried about the chance a user for unknown reasons include in the URL field info about date, but as you mentioned, there is no need for an additional check on URL field. |
You can add an integrity check. UI: https://docs.jabref.org/finding-sorting-and-cleaning-entries/checkintegrity While reading that code, I found org.jabref.logic.integrity.UrlChecker. You can modify it to return more warnings (not a URL, containing more than an URL, containing \url{...). |
@koppor |
What is easier to implement? 😅 I think, keeping would be better Does JabRef have a date cleanup? Converting all dates? NormalizeDateFormat. Then a user can do that a separate step... |
should become
The conversion should be named "Move URLs in note field to url field".
Should be placed as third the upper part of the cleanup dialog: https://docs.jabref.org/finding-sorting-and-cleaning-entries/cleanupentries
One can look at jabRef/jabref/src/main/java/org/jabref/logic/cleanup/EprintCleanup.java for an impression, how the implementation should like. There is also a test case: jjabRef/jabref/src/test/java/org/jabref/logic/cleanup/EprintCleanupTest.java
Please use
@ParameterizedTest
if possible (and doing more than one test, which is recommended).The text was updated successfully, but these errors were encountered: