Publications
From ACES
Documentation for this module may be created at Module:Publications/doc
local getArgs = require('Module:Arguments').getArgs
local cargo = mw.ext.cargo
local p = {}
local fields = {
"entry", "address", "annote", "author", "booktitle", "chapter", "edition",
"editor", "howpublished", "institution", "journal", "note", "number",
"organization", "pages", "publisher", "school", "series", "title", "type",
"volume", "date", "doi", "issn", "isbn", "url", "pdf"
}
function p._main(args)
local tables = 'publication'
local fields = table.concat(fields, ",")
local args = {
where = nil,
join = nil,
groupBy = nil,
having = nil,
orderBy = 'date',
limit = nil,
offset = nil
}
local results = cargo.query(tables, fields, args)
mw.logObject(results)
end
-- test: =p._main{}
function p.main(frame) return p._main(getArgs(frame)) end
return p