Wikipedia:Bots/Requests for approval/Bibcode Bot 2
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was
Approved.
Operator: Headbomb (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 20:58, Wednesday, October 4, 2017 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python/pywikipedia
Source code available: Ask
Function overview: Update old bibcodes to current bibcodes
Links to relevant discussions (where appropriate):
Edit period(s): Couple of times a month
Estimated number of pages affected: ~100-1000
Namespace(s): Mainspace/Template/Wikikpedia spaces mostly
Exclusion compliant (Yes/No): No
Function details:
Some citations have old/outdated bibcodes, e.g.
- Johansen, A.; Jacquet, E.; Cuzzi, J. N.; Morbidelli, A.; Gounelle, M. (2015). "New Paradigms For Asteroid Formation". In Michel, P.; DeMeo, F.; Bottke, W. (eds.). Asteroids IV. Space Science Series. University of Arizona Press. p. 471. arXiv:1505.02941. Bibcode:2015arXiv150502941J. doi:10.2458/azu_uapress_9780816532131-ch025. ISBN 978-0-8165-3213-1.
The bot will query the ADSABS database with the listed bibcode (Bibcode:2015arXiv150502941J) and compare with the bibcode listed on ADSABS (Bibcode:2015aste.book..471J). If the bibcodes are different, then will should update the bibcode to the one found on the ADSABS database.
- Johansen, A.; Jacquet, E.; Cuzzi, J. N.; Morbidelli, A.; Gounelle, M. (2015). "New Paradigms For Asteroid Formation". In Michel, P.; DeMeo, F.; Bottke, W. (eds.). Asteroids IV. Space Science Series. University of Arizona Press. p. 471. arXiv:1505.02941. Bibcode:2015aste.book..471J. doi:10.2458/azu_uapress_9780816532131-ch025. ISBN 978-0-8165-3213-1.
This will mostly affect 'temporary' bibcodes like those based on arxiv preprints, but will also update other 'old' bibcodes to 'modern' ones.
Don't really see this as substantially different than the first BRFA, but I figured I'd file one for good form. I figure speedy approval is appropriate, since I'll be doing testing once I get the updated code from User:Δ anyway.
Discussion
edit- Hmmm...So why exactly do these conversion need to be done? If the old links are still functional, why change them?—CYBERPOWER (Message) 23:09, 4 October 2017 (UTC)[reply]
- Because they're not the canonical bibcode (the principle of least astonishment applies), and old ones eventually gets deprecated. Headbomb {t · c · p · b} 23:11, 4 October 2017 (UTC)[reply]
- (edit conflict)Alright then. No disrespect to beta, but this should still go through a trial.
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.—CYBERPOWER (Message) 23:14, 4 October 2017 (UTC)[reply]
- Fair enough. Might be tricky to do a clean run of 50 bibcode updates, but I can do a run that'll find something to update during its 50 edits. Headbomb {t · c · p · b} 23:17, 4 October 2017 (UTC)[reply]
- This is currently on hold due to ADSADS database issues. Investigating. But the bot code did work. See contribs search for "updating" in the edit summaries. The first 10 or so edits had a bug related to ampersands (e.g. [1]) but that's been fixed. Headbomb {t · c · p · b} 21:46, 8 October 2017 (UTC)[reply]
- Fair enough. Might be tricky to do a clean run of 50 bibcode updates, but I can do a run that'll find something to update during its 50 edits. Headbomb {t · c · p · b} 23:17, 4 October 2017 (UTC)[reply]
- (edit conflict)Alright then. No disrespect to beta, but this should still go through a trial.
Approved.—CYBERPOWER (Trick or Treat) 16:34, 17 October 2017 (UTC)[reply]
- The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.