-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from pitthsls/turnaways
Turnaways support
- Loading branch information
Showing
8 changed files
with
102 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Book Report 3 (R4),"Access Denied to Content Items by Month, Title and Category",,,,,,,,,,,,, | ||
University of Maximegalon,,,,,,,,,,,,,, | ||
BlahBlah,,,,,,,,,,,,,, | ||
Period covered by Report:,,,,,,,,,,,,,, | ||
2012-01-01 to 2012-06-30,,,,,,,,,,,,,, | ||
Date run:,,,,,,,,,,,,,, | ||
2012-07-09,,,,,,,,,,,,,, | ||
,Publisher,Platform,Book DOI,Propriatary Identifier,ISBN,ISSN,Access Denied Category,Reporting Period Total,Jan-2012,Feb-2012,Mar-2012,Apr-2012,May-2012,Jun-2012 | ||
Total for all titles,Megadodo Publications,HHGTTG Online,,,,,Access denied: concurrent/simultaneous user license limit exceeded,14,4,0,2,2,3,3 | ||
Total for all titles,Megadodo Publications,HHGTTG Online,,,,,Access denied: content item not licensed,30,10,3,9,1,4,3 | ||
Hitchhikers Guide to the Galaxy,Megadodo Publications,HHGTTG Online,,,9787490833809,1900-1000,Access denied: concurrent/simultaneous user license limit exceeded,14,4,0,2,2,3,3 | ||
Hitchhikers Guide to the Galaxy,Megadodo Publications,HHGTTG Online,,,9787490833809,1900-1000,Access denied: content item not licensed,0,0,0,0,0,0,0 | ||
Öfake Book,Megadodo Publications,HHGTTG Online,,,9783572324031,,Access denied: concurrent/simultaneous user license limit exceeded,0,0,0,0,0,0,0 | ||
Öfake Book,Megadodo Publications,HHGTTG Online,,,9783572324031,,Access denied: content item not licensed,30,10,3,9,1,4,3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"Journal Report 2 (R4)","Access denied to Full-text Articles by Month, Journal and Category" | ||
"University of Maximegalon" | ||
"" | ||
"Period covered by Report:" | ||
"2011-01-01 to 2011-12-31" | ||
"Date run:" | ||
2012-02-21 | ||
Journal,Publisher,Platform,"Journal DOI","Proprietary Identifier","Print ISSN","Online ISSN","Access Denied Category","Reporting Period Total","Reporting Period HTML","Reporting Period PDF",Jan-2011,Feb-2011,Mar-2011,Apr-2011,May-2011,Jun-2011,Jul-2011,Aug-2011,Sep-2011,Oct-2011,Nov-2011,Dec-2011 | ||
"Total for all journals","Maximegalon University Press",MJO,,,,,16,0,16,2,1,0,0,0,5,1,1,0,5,1,0 | ||
"Abstracts of Working Papers in Economics","Maximegalon University Press",MJO,,,0951-0079,0951-0079,Access denied: concurrent/simultaneous user license limit exceeded,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0 | ||
"Acta Numerica","Maximegalon University Press",MJO,,,0962-4929,1474-0508,Access denied: concurrent/simultaneous user license limit exceeded,16,0,16,2,1,0,0,0,5,1,1,0,5,1,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"""Test parsing of COUNTER 4 BR3 report (turnaways)""" | ||
|
||
import datetime | ||
|
||
|
||
def test_metric(br3_report): | ||
assert br3_report.metric is None # Multiple metrics per report | ||
|
||
|
||
def test_type(br3_report): | ||
assert br3_report.report_type == u"BR3" | ||
|
||
|
||
def test_data(br3_report): | ||
i = iter(br3_report) | ||
row = next(i) | ||
item = next(iter(row)) | ||
assert item == ( | ||
datetime.date(2012, 1, 1), | ||
u"Access denied: concurrent/simultaneous user license limit exceeded", | ||
4, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"""Test parsing of COUNTER 4 JR2 report (turnaways)""" | ||
|
||
import datetime | ||
|
||
|
||
def test_metric(jr2_report): | ||
assert jr2_report.metric is None # Multiple metrics per report | ||
|
||
|
||
def test_type(jr2_report): | ||
assert jr2_report.report_type == u"JR2" | ||
|
||
|
||
def test_data(jr2_report): | ||
i = iter(jr2_report) | ||
row = next(i) | ||
item = next(iter(row)) | ||
assert item == ( | ||
datetime.date(2011, 1, 1), | ||
u"Access denied: concurrent/simultaneous user license limit exceeded", | ||
3, | ||
) |