Skip to content
Snippets Groups Projects
Commit 3b21673c authored by gabriele-h's avatar gabriele-h
Browse files

onbsru: More inline-documentation

parent a1e4c59b
Branches
No related tags found
No related merge requests found
......@@ -14,12 +14,17 @@ class OnbRecordRetriever(almasru.RecordRetriever):
xml_format: str = 'marcxml'):
super().__init__(subdomain, inst_code, xml_format)
# Create alias for querying AC-numbers
def by_ac_num(self, ac_num: str):
return self.by_marc_009(ac_num)
def get_pids_for_ac(self, ac_num: str):
def get_pids_for_ac(self, ac_num: str) -> list:
"""
Extract all PIDs from XML based on MARC 856 4 2.
PIDs are identifiers migrated from a legacy system.
:param ac_num: ID used in Austrian Library Network
:return: List of identifiers.
"""
namespaces = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment