Changes
added Agency to handle "agency=xx".
local AccessDate = args["access-date"] or args.accessdate
local ArchiveDate = args["archive-date"] or args.archivedate
local Agency = args.agency
local DeadURL = args.deadurl
local Language = args.language or args["in"]
if ( Format ~= nil ) then Format = " (" .. Format .. ")" else Format = "" end
if ( OrigYear ~= nil ) then OrigYear = " " .. OrigYear else OrigYear = "" end
if ( Agency ~= nil ) then Agency = " " .. Agency .. "." else Agency = "" end
if ( Date ~= nil ) then Date = Date else Date = "" end
if ( Via ~= nil ) then Via = " — via " .. Via else Via = "" end
else Authors = Authors .. ". " end
if ( "" ~= Editors ) then Editors = " in " .. Editors .. "." end
text = Authors .. Coauthors .. " "..Date .. Chapter .. Others .. Editors .. tcommon .. Publisher .. Agency .. idcommon
elseif ( "" ~= Editors) then
Editors = Editors .. " (eds.)"
if ( "" ~= Date ) then Date = " (" .. Date .. "). "
else Editors = Editors .. ". " end
text = Editors .. Date .. Chapter .. tcommon .. Publisher .. Agency .. idcommon
else
if ( "" ~= Date ) then Date = " " .. Date .. "." end
text = Chapter .. tcommon .. Publisher .. Agency .. Date .. idcommon
end
--19Oct2012 Fixed to omit "." after coauthors.
--20Oct2012 Fixed COinS data to not urlencode all, as "ctx_ver=Z39.88-2004"
--20Oct2012 Fixed COinS to not end with as "&" but use leading lead "&rft...=" form.
--20Oct2012 Fixed COinS to not url.encode page's "rfr_id=..." pagename.
--20Oct2012 Fixed COinS data when "web" to default to rft.genre "book".
--05Nov2012 Add a span wrapper even when there is no Ref parameter
--15Feb2013 Added Agency for "agency=xx".
--
--End