Skip to content

Commit 11b9370

Browse files
committed
added annotation property
1 parent c9d071c commit 11b9370

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

kb/nl/api/sru.py

+7
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ def title(self):
5050
return [r.text for r in self.record_data.iter() if
5151
r.tag.endswith('title')][0]
5252

53+
# Following properties occur in GGC
54+
55+
@property
56+
def annotation(self):
57+
return [r.text for r in self.record_data.iter() if
58+
r.tag.endswith('annotation')][0]
59+
5360

5461
class record():
5562
def __init__(self, record_data, sru):

0 commit comments

Comments
 (0)