From c178ea4793a493e2bc8cea815f7bf2960ba76290 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 15 Dec 2006 10:37:16 +0000 Subject: [PATCH] Use new $stats->print() method. --- bin/irspy-stats.pl | 5 ++--- web/htdocs/details/stats.mc | 7 ++++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/irspy-stats.pl b/bin/irspy-stats.pl index 24a2393..2711a65 100755 --- a/bin/irspy-stats.pl +++ b/bin/irspy-stats.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -# $Id: irspy-stats.pl,v 1.1 2006-12-14 17:35:13 mike Exp $ +# $Id: irspy-stats.pl,v 1.2 2006-12-15 10:37:16 mike Exp $ # # perl -I ../lib irspy-stats.pl localhost:3313/IR-Explain---1 @@ -15,5 +15,4 @@ if (@ARGV > 2) { my($dbname, $query) = @ARGV; my $stats = new ZOOM::IRSpy::Stats($dbname, $query); -use Data::Dumper; -print Dumper($stats); +$stats->print(); diff --git a/web/htdocs/details/stats.mc b/web/htdocs/details/stats.mc index 354cb54..2522ede 100644 --- a/web/htdocs/details/stats.mc +++ b/web/htdocs/details/stats.mc @@ -1,4 +1,4 @@ -%# $Id: stats.mc,v 1.1 2006-12-14 17:35:44 mike Exp $ +%# $Id: stats.mc,v 1.2 2006-12-15 10:37:29 mike Exp $ <%doc> Here are the headings in the Z-Spy version: The ten most commonly supported Bib-1 Use attributes @@ -19,6 +19,7 @@ least resistance and look at all the records by hand. <%perl> my $stats = new ZOOM::IRSpy::Stats("localhost:3313/IR-Explain---1"); -use Data::Dumper; -print "
", xml_encode(Dumper($stats)), "
\n"; +print "
";
+$stats->print();
+print "
\n"; -- 1.7.10.4