File Coverage

blib/lib/Biblio/COUNTER/Report/Release2/JournalReport1a.pm
Criterion Covered Total %
statement 9 24 37.5
branch n/a
condition n/a
subroutine 3 9 33.3
pod 0 6 0.0
total 12 39 30.7


line stmt bran cond sub pod time code
1             package Biblio::COUNTER::Report::Release2::JournalReport1a;
2              
3 1     1   1946 use strict;
  1         3  
  1         56  
4 1     1   6 use warnings;
  1         2  
  1         39  
5              
6 1     1   8 use Biblio::COUNTER::Report qw(REQUESTS TURNAWAYS MAY_BE_BLANK NOT_BLANK);
  1         2  
  1         1194  
7              
8             @Biblio::COUNTER::Report::Release2::JournalReport1a::ISA = qw(Biblio::COUNTER::Report);
9              
10 0     0 0   sub canonical_report_name { 'Journal Report 1a (R2)' }
11 0     0 0   sub canonical_report_description { 'Number of Successful Full-Text Article Requests from an Archive by Month and Journal' };
12 0     0 0   sub canonical_report_code { 'JR1a' }
13 0     0 0   sub release_number { 2 }
14              
15             sub process_header_rows {
16 0     0 0   my ($self) = @_;
17            
18             # Report name and description
19 0           $self->begin_row
20             ->check_report_name
21             ->check_report_description
22             ->end_row;
23            
24             # Archive title
25 0           $self->begin_row
26             ->check_title(NOT_BLANK)
27             ->end_row;
28            
29             # Period covered
30 0           $self->begin_row
31             ->check_period_covered
32             ->end_row;
33            
34             # Report criteria
35 0           $self->begin_row
36             ->check_report_criteria
37             ->end_row;
38            
39             # Date run label
40 0           $self->begin_row
41             ->check_label('Date run:')
42             ->end_row;
43            
44             # Date run
45 0           $self->begin_row
46             ->check_date_run
47             ->end_row;
48            
49             # Data column labels
50 0           $self->begin_row
51             ->check_blank
52             ->check_label('Publisher', qr/^(?i)pub/)
53             ->check_label('Platform', qr/^(?i)plat/)
54             ->check_label('Print ISSN', qr/^(?i)print issn/)
55             ->check_label('Online ISSN', qr/^(?i)online issn/)
56             ->check_period_labels
57             ->check_label('YTD Total')
58             ->check_label('YTD HTML')
59             ->check_label('YTD PDF')
60             ->end_row;
61            
62             # Data summary
63 0           $self->begin_row
64             ->check_label('Total for all journals')
65             ->check_publisher(MAY_BE_BLANK)
66             ->check_platform(MAY_BE_BLANK)
67             ->check_blank
68             ->check_blank
69             ->check_count_by_periods(REQUESTS)
70             ->check_ytd_total(REQUESTS)
71             ->check_ytd_html(REQUESTS)
72             ->check_ytd_pdf(REQUESTS)
73             ->end_row;
74             }
75              
76             sub process_record {
77 0     0 0   my ($self) = @_;
78 0           $self->begin_row
79             ->check_title(NOT_BLANK)
80             ->check_publisher(NOT_BLANK)
81             ->check_platform(NOT_BLANK)
82             ->check_print_issn
83             ->check_online_issn
84             ->check_count_by_periods(REQUESTS)
85             ->check_ytd_total
86             ->check_ytd_html
87             ->check_ytd_pdf
88             ->end_row;
89             }
90              
91             1;
92              
93             =pod
94              
95             =head1 NAME
96              
97             Biblio::COUNTER::Report::Release2::JournalReport1 - a JR1a (R2) COUNTER report
98              
99             =head1 SYNOPSIS
100              
101             $report = Biblio::COUNTER::Report::Release2::JournalReport1a->new(
102             'file' => $file,
103             );
104             $report->process;
105              
106             =cut