Skip to content

Commit

Permalink
code reivew comments and docstring updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ghukill committed Aug 4, 2023
1 parent 0f282ae commit 86c4ea2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion transmogrifier/sources/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,12 @@ def get_required_fields(self, xml: Tag) -> dict:
xml: A BeautifulSoup Tag representing a single OAI-PMH XML record.
"""
source_record_id = self.get_source_record_id(xml)
title = self.get_valid_title(source_record_id, xml)

# run methods to generate required fields
source_link = self.get_source_link(self.source_base_url, source_record_id, xml)
timdex_record_id = self.get_timdex_record_id(self.source, source_record_id, xml)
title = self.get_valid_title(source_record_id, xml)

return {
"source": self.source_name,
"source_link": source_link,
Expand Down Expand Up @@ -209,6 +212,8 @@ def get_source_link(
source_base_url: Source base URL.
source_record_id: Record identifier for the source record.
xml: A BeautifulSoup Tag representing a single XML record.
- not used by default implementation, but could be useful for subclass
overrides
"""
return source_base_url + source_record_id

Expand Down

0 comments on commit 86c4ea2

Please sign in to comment.