From 3b21673cc9eb03e780e9a19ea769b3b1bcd7a64d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriele=20H=C3=B6fler?= Date: Fri, 7 Jun 2019 14:24:48 +0200 Subject: [PATCH] onbsru: More inline-documentation --- sru/onbsru.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sru/onbsru.py b/sru/onbsru.py index f9f34be..335b38b 100644 --- a/sru/onbsru.py +++ b/sru/onbsru.py @@ -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 = { -- GitLab