Changes
Jump to navigation
Jump to search
Added URL parameter processing.
local Chapter = args.chapter or args.article
local URL = args.archiveurl or args.url
local ChapterURL = args.chapterurl
local Series = args.series
local Volume = args.volume
local Editors = args.editors
local Ref = args.ref or args.Ref
if ( Chapter ~= nil ) then Chapter = " \"" .. Chapter .. "\"" if ( ChapterURL ~= nil ) then Chapter = "[" .. ChapterURL .. " " .. Chapter .. "]" elseif ( URL ~= nil ) then Chapter = "[" .. URL .. " " .. Chapter .." ]" URL = nil end Chapter = " " .. Chapter .. "." else Chapter = "" end if ( Title ~= nil ) then if ( URL ~= nil ) then Title = "[" .. URL .. " " .. Title .. "]" URL = nil end Title = " ''" .. Title .. "''." else Title = "" end
if ( Publisher ~= nil ) then Publisher = " " .. Publisher .. "." else Publisher = "" end
if ( PublicationPlace ~= nil ) then PublicationPlace = " " .. PublicationPlace .. ":" else PublicationPlace = "" end
if ( Language ~= nil ) then Language = " (in " .. Language .. ")" else Language = "" end
if ( ISBN ~= nil ) then ISBN = " ISBN " .. ISBN else ISBN = "" end
if ( DOI ~= nil ) then DOI = " " .. doi(frame, DOI) else DOI = "" end
if ( URL ~= nil ) then URL = " " .. URL else URL = "" end
if ( Authors == nil ) then
Authors = authorprefix(Surname1, Given1, Authorlink1, "")
Authors = Authors .. authorprefix(Surname9, Given9, Authorlink9, "; ") .. " "
end
if ( Editors =~= nil ) then Editors = "in " .. Editors .. "."
else
Editors = " in " .. Editors .. "."
end
local text = Authors .. "(" .. Date .. ")." .. Chapter .. Editors .. Title .. Language .. PublicationPlace .. Publisher .. ISBN .. DOI .. URL
if ( Ref ~= nil ) then
local id = Ref