User:Headbomb/Bibcode bot

Basics
Bibcode format is in


 * is the 4-digit code for the year
 * is the5-letter code for the journal. The complete list of code/journal is given below. It is based on, which I've filtered and prettified. The codes are not necessarily unique (AcESn and AcElS both stand for Acta Electronica Sinica, for example).
 * is the 4-digit code for volumes. Volume 45 is  Volume 1 is
 * is the 4-digit code for the starting page. Page 34 is  Page 1 is   For pages greater than 9999, the   column (see below) is used.
 * is the section-letter. Certain sections have their dedicated journal code (PhRvL for Physical Review Letters), others do not (Astrophysical Journal Letters is ApJ.., with )
 * is the first letter of the first author's last name. For a paper written by John Smith, this is S. For a paper written by John Adams and William Shatner, this is A.

A bot can check for a citation such a

And determine the bibcode from the details. In this case,

YYYYJJJJJVVVVMPPPPA 1974AJ.....79..819H

If works (this can be verified with ), then the bot should add 1974AJ.....79..819H. If not, then the bot should abort. In the case of journals with multiple codes, it should try them sequentially. AKA for it should try  (which doesn't work) then  (which does work).

Likewise, from a bibcode, you can fill in a citation template.


 * &rarr;


 * This links contains some details about the ADSABS database API, I think
 * List of API query parameters

Popular journal list
For the most popular journal, here's a list of things to match

Arxiv
Ignore these for now

astro.ph. ArXiv cs... ArXiv cond.mat. ArXiv arXiv       ArXiv gr.qc       ArXiv hep.ex... ArXiv hep.lat.. ArXiv hep.ph... ArXiv hep.th... ArXiv math.ph.. ArXiv math. ArXiv nlin. ArXiv nucl.ex.. ArXiv nucl.th.. ArXiv physics.. ArXiv quant.ph. ArXiv