Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
catalogue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labs-team
catalogue
Commits
3b21673c
Commit
3b21673c
authored
6 years ago
by
gabriele-h
Browse files
Options
Downloads
Patches
Plain Diff
onbsru: More inline-documentation
parent
a1e4c59b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sru/onbsru.py
+6
-1
6 additions, 1 deletion
sru/onbsru.py
with
6 additions
and
1 deletion
sru/onbsru.py
+
6
−
1
View file @
3b21673c
...
...
@@ -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
=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment