Changes
fixed COinS metadata to not end with "&" but use leading "&rft...=" form.
-- These data form a COinS tag (see <http://ocoins.info/>) which allows automated tools to parse the citation information.
local OCinSdata = {}-- COinS metadata excluding id, bibcode, doi, etc. OCinSdata.local ctx_ver = "Z39.88-2004"
OCinSdata.rft_val_fmt = "info:ofi/fmt:kev:mtx:"
OCinSdata.rfr_id = "info:sid/en.wikipedia.org:" .. config.fullpagename
end
end
local OCinSids = {}-- COinS data only for id, bibcode, doi, pmid, etc.
OCinSids["info:arxiv"] = ARXIV
OCinSids["info:asin"] = ASIN
OCinSids["info:ssrn"] = SSRN
OCinSids["info:zbl"] = ZBL
local OCinStitle = "ctx_ver=" .. ctx_ver -- such as "Z39.88-2004"
for name,value in pairs(OCinSids) do
OCinStitle = OCinStitle .. "&rft_id=" .. mw.url.encode(name .. "/" .. value) .. "&"
end
for name,value in pairs(OCinSdata) do
OCinStitle = OCinStitle .. mw"&" .url.encode(name .. "=" .. mw.url.encode(value) .. "&"
end
--19Oct2012 Fixed to show ";" between authors & coauthors.
--19Oct2012 Fixed to omit "." after coauthors.
--19Oct2012 20Oct2012 Fixed COinS data to not urlencode all, as "ctx_ver=Z39.88-2004"--20Oct2012 Fixed COinS to not end with "&" but use leading "&rft...=" form.--20Oct2012 ?--19Oct2012 20Oct2012 ?
--
--End