This repository has been archived by the owner. It is now read-only.
forked from InCommon/inc-meta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the MDUI statistics generator into /charting
With this change, the MDUI charting is based on the cached monthly aggregate rather than being dependent on the current registered metadata on the day the script happens to be run. This means it can be run retrospectively as far back as 2012, when we started including registrationAuthority metadata.
- Loading branch information
Showing
3 changed files
with
63 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| #!/usr/bin/env perl -w | ||
|
|
||
| # | ||
| # mdui.pl | ||
| # | ||
| use lib "../build"; | ||
| use Xalan; | ||
| use Months; | ||
|
|
||
| # Parse command line arguments | ||
| use Getopt::Long; | ||
| my $allMonths; | ||
| my $oneYear; | ||
| GetOptions('all' => \$allMonths, 'year' => \$oneYear); | ||
|
|
||
| # By default, only show results for the most recent month | ||
| if ($allMonths) { | ||
| # leave table intact | ||
| } elsif ($oneYear) { | ||
| # reduce months table to just the last 12 entries | ||
| @months = @months[-12..-1]; | ||
| } else { | ||
| # reduce months table to one element | ||
| @months = @months[-1..-1]; | ||
| } | ||
|
|
||
| # ingest files | ||
| foreach $month (@months) { | ||
| print "Processing $month\n"; | ||
|
|
||
| my $command = xalanCall . " -IN cache/$month.xml -XSL statistics_mdui.xsl"; | ||
| # print "command is $command\n"; | ||
| system($command); # || print "ignoring claimed failure in sub command\n"; | ||
| # print "Xalan run on $fn\n"; | ||
| print "\n"; | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters