Skip to content

Commit

Permalink
slight tweaks to missing journals reporting to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Aug 4, 2022
1 parent f482aa0 commit 4279414
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion openalex.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def recompute_journal_metadata():
class MissingJournalMetadata(object):
def __init__(self, issn_l):
self.issn_l = issn_l
# print("in MissingJournalMetadata missing journal {} from openalex: https://api.openalex.org/venues/issn:{}".format(issn_l, issn_l))
print("in MissingJournalMetadata missing journal {} from openalex: https://api.openalex.org/venues/issn:{}".format(issn_l, issn_l))
super(MissingJournalMetadata, self).__init__()

@cached_property
Expand Down
3 changes: 0 additions & 3 deletions package_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ def normalize_issn(issn, warn_if_blank=False):
issn = issn[0:4] + "-" + issn[4:8]
if issn not in oa_issns:
print(f"Missing journal in normalize_issn {issn} from OpenAlex: https://api.openalex.org/venues/issn:{issn}")
# journalsdb is no longer
# r = requests.post("https://api.journalsdb.org/missing_journal", json={"issn": issn})
# print("Error: Response posting about missing journal {}: {}".format(r.status_code, r.json()["message"]))
return ParseWarning.unknown_issn
return issn
elif re.match(r"^[A-Z0-9]{4}-\d{3}(?:X|\d)$", issn):
Expand Down

0 comments on commit 4279414

Please sign in to comment.