COUNTERPROC(1p)
π COUNTERPROC(1p) π
okay so bestie, this is the manual page for counterproc, part of the User Contributed Perl Documentation family. it's giving "i process COUNTER reports and i do it gorgeously." let's get into it β¨
πΈ NAME πΈ
counterproc β process a COUNTER report. that's it, that's the whole job, and she does it flawlessly π
β¨ SYNOPSIS β¨
counterproc [option...] [file...]
counterproc -h|--help
counterproc -V|--version
π¦ DESCRIPTION π¦
so counterproc does all the common little tasks you'd want to do on electronic resource reports that conform (more or less, bestie, we're being honest here) to the COUNTER Codes of Practice, Release 2. that includes:
- report validation β
- correcting a bunch of common errors π§
- extracting raw usage data π
the action you want is specified as an option, and the file you want processed is the sole non-option argument. no file? no problem β standard input gets processed instead. iconic.
about the output, because this part matters:
- the (corrected) report goes to standard output
- whatever other output is appropriate for the action you picked goes to standard error
so don't get it twisted, they're on different streams. π
π DIAGNOSTICS π
the exit status of counterproc will be 0 if the report is valid, or -1 if the report is not valid. that's the whole vibe check. fr fr.
π OPTIONS π
ok so real talk: if none of-c,--validate,-A, or--atomizeis specified, the report gets processed usingBiblio::COUNTER::Processor::Simple, which prints verbose diagnostic information to standard error and the (corrected) report to standard output. just so you know what you're walking into. π
-c,--validateβ Validate the input.
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. it's giving "here's what's wrong with your report, no filter." π«Ά
-A,--atomizeβ Extract data from the report, producing a single tab-delimited line for each datum. the data lines are preceded by a single line containing column headers. π
each line of output has the following elements, which appear in the order listed:
codeβ The short code that indicates the type of the report (e.g.,"JR1"or"DB3").fileβ The name of the file containing the report. Set to"-"if processing standard input.processorβ The<Biblio::COUNTER::Processor::Atomize|Biblio::COUNTER::Processor::Atomize>instance. (Just ignore this.)reportβ The instance of the appropriate subclass of<Biblio::COUNTER::Report|Biblio::COUNTER::Report>. (Ignore this, too.)periodβ A string of the formYYYY-mmdenoting the period in question.metricβ The type of event counted ("requests","sessions","searches", or"turnaways").countβ The count itself.platformβ The platform on which the resource was provided.titleβ The resource title.publisherβ The resource's publisher. May be the empty string.print_issn(journal reports only) β The journal's print ISSN.online_issn(journal reports only) β The journal's online ISSN.isbn(book reports only) β The book's ISBN.
-v,--verboseβ Be verbose. The effect of this depends on the action to be taken. (mysterious, we love that for her β¨)-h,--helpβ Print help information and exit. π-V,--versionβ Print the version number and exit. If the-vor--verboseoption is specified, print out additional information. π-M,--manualβ View the manual page forcounterproc. π-L,--licenseβ View the license under whichcounterprocis distributed. π
π AUTHOR π
Paul Hoffman (nkuitse AT nkuitse DOT com)
π COPYRIGHT π
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:
- the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version;
or
- the "Artistic License".
For the full text of these licenses, see the script file itself or enter the command counterproc -L.
π§ SEE ALSO π§
Biblio::COUNTERBiblio::COUNTER::ReportBiblio::COUNTER::Report::Processor::SimpleBiblio::COUNTER::Report::Processor::ValidateBiblio::COUNTER::Report::Processor::Atomize
and that's the whole page bestie π this one's running on perl v5.36.0 and it's dated 2023-02-04, so go forth and process those reports, you absolute main character. mwah πβ¨
π¦ where this page comes from
- debian bookworm: libbiblio-counter-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libbiblio-counter-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbiblio-counter-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libbiblio-counter-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libbiblio-counter-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms