Template:Index/author
From Metabolomics.JP
(Difference between revisions)
Line 9: | Line 9: | ||
|} | |} | ||
<hr> | <hr> | ||
− | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
− | ! Author || #articles || earliest<br>paper || latest<br>paper || peak year || | + | ! Author || #articles || earliest<br>paper || latest<br>paper || peak<br>year || major<br>coauthors |
{{#repeat:TableRow6/author|6| | {{#repeat:TableRow6/author|6| | ||
{{#cdr: | {{#cdr: | ||
− | |||
{{#lua: | {{#lua: | ||
local key = stdin:match("%w+"); | local key = stdin:match("%w+"); | ||
Line 46: | Line 44: | ||
local latest = 0; | local latest = 0; | ||
for k,v in pairs(tmp) do | for k,v in pairs(tmp) do | ||
+ | --check earliest and latest publications | ||
if (earliest > v) then earliest = v; end | if (earliest > v) then earliest = v; end | ||
if (latest < v) then latest = v; end | if (latest < v) then latest = v; end | ||
Line 55: | Line 54: | ||
end | end | ||
end | end | ||
+ | --check major coauthors | ||
+ | local coAu = {}; | ||
+ | for names, ja, yr in string.gmatch(k,"([%a:_']+),([%w\._]+),([%d]+),") do | ||
+ | for name in string.gmatch(names,"([%a_']+)") do | ||
+ | if (coAu[name] == nil) then | ||
+ | coAu[name] = 1; | ||
+ | else | ||
+ | coAu[name] = coAu[name] + 1; | ||
+ | end | ||
+ | end | ||
+ | end | ||
end | end | ||
local peak = 0; | local peak = 0; | ||
Line 61: | Line 71: | ||
if (v > peak) then peakY = k; peak = v; end | if (v > peak) then peakY = k; peak = v; end | ||
end | end | ||
+ | local auL = ""; | ||
+ | if (count > 4) then | ||
+ | for k,v in pairs(coAu) do | ||
+ | if (v >= 3) then auL = auL .. ":" .. k; end | ||
+ | end | ||
ret = ret .. "&&" .. name .. | ret = ret .. "&&" .. name .. | ||
"&&" .. count .. "&&" .. earliest .. "&&" .. latest .. | "&&" .. count .. "&&" .. earliest .. "&&" .. latest .. | ||
− | "&&" .. | + | "&&" .. peakY .. "&&" .. auL .. "\n"; |
end | end | ||
print(ret); | print(ret); | ||
| {{{1|Z}}} {{#SearchTitle:.*|Reference}} | | {{{1|Z}}} {{#SearchTitle:.*|Reference}} | ||
}} | }} | ||
− | |||
− | |||
|&&}} | |&&}} | ||
|&&}} | |&&}} | ||
|} | |} | ||
− | + | ||
[[#top]] | [[#top]] |
Revision as of 15:30, 6 October 2008
著者名のインデクス {{{1}}} 値(文字列) {{{2}}} ページタイトル (FL/LB/..)
This page is automatically generated using Persist function (Last updated: 20081006153002).
[[Index:{{{2}}}|Back to Index]] |
Author | #articles | earliest paper |
latest paper |
peak year |
major coauthors |
---|