COUNTERPROC(1p) | User Contributed Perl Documentation | COUNTERPROC(1p) |
counterproc - process a COUNTER report
counterproc [option...] [file...]
counterproc -h|--help
counterproc -V|--version
counterproc performs common operations on electronic resource reports that conform (more or less) to the COUNTER Codes of Practice, Release 2. These include report validation, correction of many common errors, and extraction of raw usage data.
The action to take is specified as an option, and the file to process is the sole non-option argument. Standard input is processed if no file is specified.
Output includes the (corrected) report, which is printed to standard output, and whatever other output is appropriate for the desired action, which is printed to standard error.
The exit status of counterproc will be 0 if the report is valid, or -1 if the report is not valid.
Note: If none of -c, --validate, -A, or --atomize is specified, the report will be processed using Biblio::COUNTER::Processor::Simple, which prints verbose diagnostic information to standard error and the (corrected) report to standard output.
Biblio::COUNTER::Processor::Validate will be used to check the report, printing a count of errors and warnings to standard error and the (corrected) output to standard output.
Each line of output has the following elements, which appear in the order listed:
Paul Hoffman (nkuitse AT nkuitse DOT com)
Copyright 2008-2009 Paul M. Hoffman.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl:
Biblio::COUNTER
Biblio::COUNTER::Report
Biblio::COUNTER::Report::Processor::Simple
Biblio::COUNTER::Report::Processor::Validate
Biblio::COUNTER::Report::Processor::Atomize
2023-02-04 | perl v5.36.0 |