Content deleted Content added
rm old code for others |
translator doesn't go in others |
||
Line 24:
biorxiv = {id="P3951", maxvals=1},
isbn = {id="P212", maxvals=1}, -- ISBN 13
illustrator = {id="P110", maxvals=0}, -- goes to "others" section▼
composer = {id="P86", maxvals=0}, -- goes to "others" section▼
chapter = {id="P792", maxvals=1},
["date"] = {id="P577", maxvals=1},
Line 32 ⟶ 30:
title = {id="P1476", maxvals=1},
url = {id="P953", maxvals=1}, -- full work available at
pages = {id="P304", maxvals=1},
translator = {id="P655", maxvals=0}, -- does **not** go to "others" section!
▲ illustrator = {id="P110", maxvals=0}, -- goes to "others" section
▲ composer = {id="P86", maxvals=0}, -- goes to "others" section
animator = {id="P6942", maxvals=0}, -- goes to "others" section
director = {id="P57", maxvals=0}, -- goes to "others" section
screenwriter = {id="P58", maxvals=0}, -- goes to "others" section
}
Line 219 ⟶ 223:
citeq_args.biorxiv = "10.1101/" .. citeq_args.biorxiv
end
-- best way to make a list is to use a table
▲ oth[#oth+1] = citeq_args.others
oth[#oth+1] = citeq_args.animator and ("Animator: " .. citeq_args.animator)
oth[#oth+1] = citeq_args.director and ("Director: " .. citeq_args.director)
oth[#oth+1] = citeq_args.screenwriter and ("Screenwriter: " .. citeq_args.screenwriter)
citeq_args.others = table.concat(oth, ". ")
end
citeq_args.illustrator = nil
▲ oth[#oth+1] = citeq_args.composer and ("Composer: " .. citeq_args.composer)
citeq_args.composer = nil
citeq_args.animator = nil
▲ -- any more go here
citeq_args.
citeq_args.screenwriter = nil
citeq_args.isbn = getValue( {"P957", ps = 1, qid = citeq_args.qid, maxvals=0, citeq_args.isbn } ) -- try ISBN 10
|