Changes
Added processing of more parameters.
local Coauthors = args.coauthor or args.coauthors
local Year = args.year or args.publicationdate or ""
local Date = args.date or ((args.day or "") .. (args.month or "") .. Year)
local Title = args.title or args.encyclopedia
local Chapter = args.chapter or args.article
local Language = args.language
local Format = args.format
local ISBN= args.isbn or args.ISBN local DOI= args.doi or args.DOI local ID = args.id or args.ID or args.pmid or arms.PMID
local Authors = args.authors
local Editors = args.editors
local Ref = args.ref or args.Ref
if ( Date == nil ) then
Date = Year
if ( Date ~= nil ) then
if ( args.month ~= nil ) then
Date = args.month .. " " .. Date
if ( args.day ~= nil ) then Date = args.day .. " " .. Date end
end
end
end
if ( Journal ~= nil ) then
Chapter = Title
if ( Pages ~= nil ) then Pages = " :" .. Pages else Pages = "" end
if ( Series ~= nil ) then Series = " " .. Series .. "." else Series = "" end
if ( Format ~= nil ) then Format = " (" .. Format .. ")" else Format = "" end
if ( ID ~= nil ) then ID = " " .. ID else ID = "" end
if ( Authors == nil ) then
Authors = authorprefix(Surname1, Given1, Authorlink1, "")
Editors = ""
end
local text = Authors .. "(" .. Date .. ")." .. Chapter .. Editors .. Title .. Format .. Edition .. Language .. Volume .. Issue .. Pages .. Series .. PublicationPlace .. Publisher .. ISBN .. DOI .. ID .. URL
if ( Ref ~= nil ) then
local id = Ref