View source for Module:Check bibcode
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
require('strict');
--[[--------------------------< B I B C O D E >--------------------------------------------------------------------
Validates (sort of) a bibcode id.
Format for bibcodes is specified here: http://adsabs.harvard.edu/abs_doc/help_pages/data.html#bibcodes
But, this: 2015arXiv151206696F is apparently valid so apparently, the only things that really matter are length, 19 characters
and first four digits must be a year. This function makes these tests:
length must be 19 characters
characters in position
1–4 must be digits and must represent a year in the range of 1000 – next year
5 must be a letter
6–8 must be letter, digit, ampersand, or dot (ampersand cannot directly precede a dot; &. )
9–18 must be letter, digit, or dot
19 must be a letter or dot
]]
local function bibcode (id)
local err_type;
000
1:0
Template used on this page:
Return to Module:Check bibcode.