Template:CountryTable
From Metabolomics.JP
(Difference between revisions)
Line 2: | Line 2: | ||
<th colspan=2>Top 5 institutes in this country (total {{#count:{{{1|}}}}} authors)</th> | <th colspan=2>Top 5 institutes in this country (total {{#count:{{{1|}}}}} authors)</th> | ||
<tr><td> | <tr><td> | ||
− | + | {{#repeat:List_Country/inst_rank|1| | |
{{#lua: | {{#lua: | ||
local auCount = {}; | local auCount = {}; | ||
local afCount = {}; | local afCount = {}; | ||
local au, inst; | local au, inst; | ||
− | |||
for au, inst, cy in stdin:gmatch("&?&?([%w\. ]+)&&([%w\., ]+)&&([^\n]+)") do | for au, inst, cy in stdin:gmatch("&?&?([%w\. ]+)&&([%w\., ]+)&&([^\n]+)") do | ||
if (inst ~= nil) then | if (inst ~= nil) then | ||
if (auCount[inst] == nil) then | if (auCount[inst] == nil) then | ||
auCount[inst] = 1; | auCount[inst] = 1; | ||
− | |||
else | else | ||
auCount[inst] = auCount[inst] + 1; | auCount[inst] = auCount[inst] + 1; | ||
Line 22: | Line 20: | ||
for inst, num in pairs(auCount) do | for inst, num in pairs(auCount) do | ||
table.insert(list, num); | table.insert(list, num); | ||
− | |||
− | |||
if (hash[num] == nil) then | if (hash[num] == nil) then | ||
hash[num] = inst; | hash[num] = inst; | ||
Line 46: | Line 42: | ||
print(output); | print(output); | ||
|{{{1|}}} }} | |{{{1|}}} }} | ||
− | + | |&&}} | |
</td> | </td> | ||
Revision as of 00:12, 16 September 2008
Top 5 institutes in this country (total 0 authors) |
---|
Author | Affiliation | Country |
---|