X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Fstats.mc;h=31a4fe5aef9c2358ea9c115e78569219f811659e;hp=fa9b652ad511d8e86680401520d1d2e913339c28;hb=e928c1b78f0164b9c133baa8aea4716a708b7da8;hpb=5dd9c46e9bd2d6bd99a0d2aa728ed5430aeec3e8 diff --git a/web/htdocs/details/stats.mc b/web/htdocs/details/stats.mc index fa9b652..31a4fe5 100644 --- a/web/htdocs/details/stats.mc +++ b/web/htdocs/details/stats.mc @@ -1,4 +1,4 @@ -%# $Id: stats.mc,v 1.6 2007-01-24 09:28:02 mike Exp $ +%# $Id: stats.mc,v 1.9 2007-11-02 12:49:28 mike Exp $ <%doc> Here are the headings in the Z-Spy version: The ten most commonly supported Bib-1 Use attributes @@ -55,6 +55,9 @@ if (!defined $stats || $reload) { <& table, stats => $stats, data => "domains", title => "Top Domains", headings => [ "Top Domain"] &> +<& table, stats => $stats, data => "implementation", + title => "Implementation", + headings => [ "Name" ], maxrows => 20 &> %# %# <%def table> @@ -62,6 +65,7 @@ if (!defined $stats || $reload) { $stats $data $title +$maxrows => 10 @headings $col3 => undef @@ -79,13 +83,13 @@ $col3 => undef my $hr; $hr = $stats->{$data}; my @sorted = sort { $hr->{$b} <=> $hr->{$a} || $a <=> $b } keys %$hr; -my $n = @sorted; $n = 10 if @sorted > 10; +my $n = @sorted; $n = $maxrows if @sorted > 10; foreach my $i (1..$n) { my $key = $sorted[$i-1]; <% $i %> - <% xml_encode($key, "HUH?") %> + <% xml_encode(substr($key, 0, 54), "HUH?") %> % if (defined $col3) { <% xml_encode(&$col3($key), "HUH2?") %> % }