COUNTER/Report/Release2/JournalReport1.pm

filter: Statementstmt 40.7% 11 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 3 / 9 Podpod 0.0% 0 / 6 totaltotal 33.3% 14 / 42 CC 1 SCAR 5.1
CC
1
Cov
41%
canonical_report_name
2.0
canonical_report_description
2.0
canonical_report_code
2.0
CRAP 1.7
« COUNTER/Report/Release2/DatabaseReport3.pm ↑ Summary COUNTER/Report/Release2/JournalReport1a.pm »
1 package Biblio::COUNTER::Report::Release2::JournalReport1;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Biblio::COUNTER::Report qw(REQUESTS MAY_BE_BLANK NOT_BLANK);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 @Biblio::COUNTER::Report::Release2::JournalReport1::ISA = qw(Biblio::COUNTER::Report);
9  
10 0 ▶sub canonical_report_name { 'Journal Report 1 (R2)' }
Subroutine canonical_report_name: not called CC=1 SCAR=6.9
Pod undocumented
11 0 ▶sub canonical_report_description { 'Number of Successful Full-Text Article Requests by Month and Journal' };
Subroutine canonical_report_description: not called CC=1 SCAR=6.9
Pod undocumented
12 0 ▶sub canonical_report_code { 'JR1' }
Subroutine canonical_report_code: not called CC=1 SCAR=6.9
Pod undocumented
13 0 ▶sub release_number { 2 }
Subroutine release_number: not called CC=1 SCAR=6.9
Pod undocumented
14  
15 0 ▶sub process_header_rows {
Subroutine process_header_rows: not called CC=1 SCAR=6.9
Pod undocumented
16 0 my ($self) = @_;
17
18 # Report name and title
19 0 $self->begin_row
20 ->check_report_name
21 ->check_report_description
22 ->end_row;
23
24 # Report criteria
25 0 $self->begin_row
26 ->check_report_criteria
27 ->end_row;
28
29 # Date run label
30 0 $self->begin_row
31 ->check_label('Date run:')
32 ->end_row;
33
34 # Date run
35 0 $self->begin_row
36 ->check_date_run
37 ->end_row;
38
39 # Data column labels
40 0 $self->begin_row
41 ->check_blank
42 ->check_label('Publisher', qr/^(?i)pub/)
43 ->check_label('Platform', qr/^(?i)plat/)
44 ->check_label('Print ISSN', qr/^(?i)print issn/)
45 ->check_label('Online ISSN', qr/^(?i)online issn/)
46 ->check_period_labels
47 ->check_label('YTD Total')
48 ->check_label('YTD HTML')
49 ->check_label('YTD PDF')
50 ->end_row;
51
52 # Data summary
53 0 $self->begin_row
54 ->check_label('Total for all journals')
55 ->check_publisher(MAY_BE_BLANK)
56 ->check_platform(MAY_BE_BLANK)
57 ->check_blank
58 ->check_blank
59 ->check_count_by_periods(REQUESTS)
60 ->check_ytd_total(REQUESTS)
61 ->check_ytd_html(REQUESTS)
62 ->check_ytd_pdf(REQUESTS)
63 ->end_row;
64
65 }
66  
67 0 ▶sub process_record {
Subroutine process_record: not called CC=1 SCAR=6.9
Pod undocumented
68 0 my ($self) = @_;
69 0 $self->begin_row
70 ->check_title(NOT_BLANK)
71 ->check_publisher(MAY_BE_BLANK)
72 ->check_platform(NOT_BLANK)
73 ->check_print_issn
74 ->check_online_issn;
75 0 $self->check_count_by_periods(REQUESTS);
76 0 $self->check_ytd_total;
77 0 $self->check_ytd_html
78 ->check_ytd_pdf
79 ->end_row;
80 }
81  
82 1 1;
83  
84 =pod
85  
86 =head1 NAME
87  
88 Biblio::COUNTER::Report::Release2::JournalReport1 - a JR1 (R2) COUNTER report
89  
90 =head1 SYNOPSIS
91  
92 $report = Biblio::COUNTER::Report::Release2::JournalReport1->new(
93 'file' => $file,
94 );
95 $report->process;
96  
97 =cut
« COUNTER/Report/Release2/DatabaseReport3.pm ↑ Summary COUNTER/Report/Release2/JournalReport1a.pm »