Biblio-COUNTER
view release on metacpan or search on metacpan
lib/Biblio/COUNTER.pm view on Meta::CPAN
L<Spreadsheet::ParseExcel::Simple|Spreadsheet::ParseExcel::Simple>.
(XML formats may be handled in a future version of this module.)
Some terminology notes are in order:
=over 4
=item B<name>
The B<name> of a report fully denotes the report's type and the version
of the COUNTER Codes of Practice that defines it. For example,
C<Journal Report 1 (R2)>. COUNTER sometimes refers to this as the
report I<title>.
=item B<description>
This is the phrase, also defined by the COUNTER Codes of Practice, that
describes the contents of a report. For example, B<Journal Report 1>
is described as C<Number of Successful Full-Text Article Requests by
Month and Journal>.
=item B<code>
This is the term I use for the short name that identifies the type,
B<but not the version>, of a COUNTER report. For example, C<JR1> is the code
for B<Journal Report 1> reports.
=item B<metric>
A metric is a particular measure of usage (or non-usage), including the
number of searches or sessions in a database or the number of full-text
articles in a journal downloaded successfully.
=back
=head1 METHODS
=over 4
=item B<report>(I<$how>, [I<%args>])
Create a new report instance.
Set I<$how> to a glob ref (e.g., C<\*STDIN>) to specify a filehandle
from which an existing report will be read.
Specify a report name in I<$how> (e.g., C<Database Report 2 (R2)>) to
instantiate a new, empty report. (Report generation is not yet implemented.)
I<%args> may contain any of the following:
=over 4
=item B<treat_blank_counts_as_zero>
If set to a true value, a blank cell where a count was expected is
treated as if it contained a zero; otherwise, blank counts are silently
ignored (the default).
=item B<change_not_available_to_blank>
If set to a true value (the default), the value C<n/a>) in a count
field will be changed to the empty string. It will B<never> be treated
as if it were zero, regardless of the B<treat_blank_counts_as_zero>
setting.
=item B<callback>
Get or set a reference to a hash of (I<$event>, I<$code>) pairs
specifying what to do for each of the events described under
L<CALLBACKS>.
Each I<$code> must be a coderef, not the name of a function or method.
If an event is not specified in this hash, then the default action for the
event will be taken.
=back
=item B<name>
Get or set the report's name: this is the official name defined by the COUNTER
codes of practice. See L<REPORTS SUPPORTED> for a complete list of the
reports supported by this verison of L<Biblio::COUNTER|Biblio::COUNTER>.
=item B<code>
Get or set the report's code: this is the short string (e.g., C<JR1>)
that identifies the type, B<but not the version>, of a COUNTER report.
=item B<description>
Get or set the report's description: this is the official description
defined by the COUNTER codes of practice. For example, the C<Journal
Report 1 (R2)> report has the description C<Number of Successful
Full-Text Article Requests by Month and Journal>.
=item B<date_run>
Get or set the date on which the report was run. The date, if valid, is in
the ISO8601 standard form C<YYYY-MM-DD>.
=item B<criteria>
Get or set the report criteria. This is a free text field.
=item B<periods>
Get or set the periods for which the report contains counts. To
simplify things, periods are returned (and must be set) in the ISO 8601
standard form C<YYYY-MM>.
=item B<publisher>
Get or set the publisher common to all of the resources in the report.
=item B<platform>
Get or set the platform common to all of the resources in the report.
( run in 2.674 seconds using v1.01-cache-2.11-cpan-302cb4679cc )