-
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 #94 from pitthsls/turnaways
more turnaways support
- Loading branch information
Showing
12 changed files
with
352 additions
and
17 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
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,18 @@ | ||
Report_Name "Journal Access Denied " | ||
Report_ID TR_J2 | ||
Release 5 | ||
Institution_Name Sample University | ||
Institution_ID isni=1234567890 | ||
Metric_Types Limit_Exceeded; No_License | ||
Report_Filters Data_Type=Journal; Access_Method=Regular | ||
Report_Attributes | ||
Exceptions | ||
Reporting_Period 2017-01-01 to 2017-06-30 | ||
Created 2017-05-25 | ||
Created_By Platform X | ||
|
||
Title Publisher Publisher_ID Platform DOI Proprietary_ID Print_ISSN Online_ISSN URI Metric_Type Reporting_ Period_Total Jan-2017 Feb-2017 Mar-2017 Apr-2017 May-2017 Jun-2017 | ||
Journal A Publisher X isni=1234123412341234 PlatformX "/12.1.0.1/1111.2.222 " pubx:jnlA 1111-22222 1111-1223 Limit_Exceeded 3 3 | ||
Journal A Publisher X isni=1234123412341234 PlatformX /12.1.0.1/1111.2.222 pubx:jnlA 1111-22222 1111-1223 No_License | ||
Journal B Publisher X isni=1234123412341234 PlatformX /12.1.0.1/1111.2.211 pubx:jnlB 1111-22211 1111-1213 Limit_Exceeded | ||
Journal B Publisher X isni=1234123412341234 PlatformX /12.1.0.1/1111.2.211 pubx:jnlB 1111-22211 1111-1213 No_License |
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,18 @@ | ||
"""Test parsing of COUNTER 5 TRJ2 report (turnaways)""" | ||
|
||
import datetime | ||
|
||
|
||
def test_metric(trj2_report): | ||
assert trj2_report.metric is None # Multiple metrics per report | ||
|
||
|
||
def test_type(trj2_report): | ||
assert trj2_report.report_type == u"TR_J2" | ||
|
||
|
||
def test_data(trj2_report): | ||
i = iter(trj2_report) | ||
row = next(i) | ||
item = next(iter(row)) | ||
assert item == (datetime.date(2017, 1, 1), u"Limit_Exceeded", 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
Oops, something went wrong.