local followQid = wdib._followQid
local getPropertyIDs = wdib._getPropertyIDs
local getQualifierValue = wdib._getQualifierValue
-- debug
local frame = mw.getCurrentFrame()
if type(getQualifierValue) == nil then
local error = "getQualifierValue was nil"
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', error, '</syntaxhighlight>'}));
else
local error = "getQualifierValue was: " .. type(getQualifierValue)
return frame:preprocess (table.concat ({'<syntaxhighlight lang="wikitext" inline="1">', error, '</syntaxhighlight>'}));
end
local i18n = {
local arxiv = citeq_args.arxiv
if arxiv then
-- try getting arXiv classification (only one value accepted)
arxiv_class = getQualifierValuegetValue( {"P818" , pval = arxiv, qual = "P820", qid = qid, maxvals = 1, rank="best" , qualsonly=true} ) ▼
if type(getQualifierValue) == nil then
citeq_args.error = "getQualifierValue was nil"
citeq_args.class = arxiv_class ▼
else
▲ arxiv_class = getQualifierValue( {"P818", pval = arxiv, qual = "P820", qid = qid, maxvals = 1, rank="best"} )
▲ citeq_args.class = arxiv_class
end
end
end
|