Skip to content
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

Cleanup actions. Move action for issue, number, eid, pages fields. #8413

Open
1 of 4 tasks
ThiloteE opened this issue Jan 10, 2022 · 4 comments
Open
1 of 4 tasks

Cleanup actions. Move action for issue, number, eid, pages fields. #8413

ThiloteE opened this issue Jan 10, 2022 · 4 comments

Comments

@ThiloteE
Copy link
Member

ThiloteE commented Jan 10, 2022

Came up during #8372

Specifically, here: #8372 (comment)

Desired solution

Edited:

  • A) (Manual trigger) Move data from number field (present in Bibtex AND Biblatex) to issue field (only present in Biblatex) and also create action that can do the reverse.
    • Why? - Many people in the past put wrong stuff into the issue and numbers field. Allow them to correct their mistakes.
    • How? - Clean up action for this
  • B) (Automated) Move seasons from number field to the issue field (e.g. via RegEx).
    • Do this during conversion from Bibtex to Biblatex.
    • Do the reverse move during conversion from Biblatex to Bibtex, but check if the number field is empty.
    • Maybe integrity check for this instead of clean up action
  • C) (Manual trigger) Move data from pages field to eid field and also allow to do the reverse.
    • Why? - Bibtex does have no eid field, so some journals put the article number into the pages field. The eid field does not exist in Bibtex library mode, so it will be good if we could do the reverse in case people want to convert their library from Biblatex to Bibtex.
  • D) (Semi automatic) Create action that detects and moves article number from pages field to eid field, if the eid field is empty.
    • Why? - Bibtex does have no eid field, so some journals put the article number into the pages field.
    • How? - Write a RegEx that detects page ranges for this. Only move article numbers, not the page numbers or page ranges.
@tobiasdiez
Copy link
Member

tobiasdiez commented Jan 10, 2022

According to the biblatex docs you reference to, the issue field:

This field is intended for journals whose individual issues
are identified by a designation such as ‘Spring’ or ‘Summer’ rather than the month
or a number. The placement of issue is similar to month and number. Integer
ranges and short designators are better written to the number field.

So I think biblatex and bibtex are not too different there, and the number field is what should be used more often.

But maybe we can add an integrity check that checks if things like "Spring" are in number and proposes to move to issue; and conversely if a number is in issue and the number field is empty, then propose to move to number.

@ThiloteE
Copy link
Member Author

ThiloteE commented Jan 11, 2022

Thank you Tobias, sounds good 👍

Also relevant here: "Moving the issue number to issue and article number to number would not be my preference, because the issue number is traditionally number and the article number is eid in biblatex"

The long answer: plk/biblatex#726 (comment)

  • The extraction of seasons from number to issue sounds pretty riskless.
  • Conversely, moving from issue field towards number field or towards eid field should probably be a manual trigger, not automatic. It would be a lot harder to write a RegEx that differentiates between number and eid.

@ThiloteE ThiloteE changed the title Cleanup entries: convert number field (bibtex) to issue field (Biblatex)? Cleanup actions. Move action for issue, number, eid, pages fields. Jan 13, 2022
@JabRef JabRef deleted a comment from ThiloteE Mar 10, 2022
@ThiloteE
Copy link
Member Author

ThiloteE commented Jun 4, 2022

A and C will or could be solved by #6536 (comment)

@HoussemNasri
Copy link
Member

Option A is already possible within 'Manage field names & content' e.g. to move data from 'number' to 'issue':

  1. Choose 'number' as the field name from the Combobox.
  2. Select the 'Rename field to:' radio button and enter 'issue' in the adjacent text field.
  3. Tick 'Overwrite existing field values'
  4. Click 'OK'

@koppor koppor moved this to Low priority in Features & Enhancements Nov 7, 2022
@github-project-automation github-project-automation bot moved this to Normal priority in Prioritization Nov 13, 2024
@calixtus calixtus moved this from Normal priority to Low priority in Prioritization Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Low priority
Development

No branches or pull requests

3 participants