File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
from kb .nl .collections import SETS
12
12
from kb .nl .helpers import etree
13
13
14
- SRU_BASEURL = 'http ://jsru.kb.nl/sru/sru'
14
+ SRU_BASEURL = 'https ://jsru.kb.nl/sru/sru'
15
15
SRU_BASEURL += '?version=1.2&maximumRecords=%i'
16
16
SRU_BASEURL += '&operation=searchRetrieve'
17
17
SRU_BASEURL += '&startRecord=%i'
@@ -37,7 +37,7 @@ def records(self):
37
37
# TODO: distinguish by xsi:type
38
38
@property
39
39
def identifiers (self ):
40
- baseurl = 'http ://resolver.kb.nl/resolve?urn='
40
+ baseurl = 'https ://resolver.kb.nl/resolve?urn='
41
41
result = [r .text .replace (baseurl , '' ) for r in self .record_data .iter () if
42
42
r .tag .endswith ('identifier' ) and r .text .find (':' ) > - 1 ]
43
43
return result
@@ -124,7 +124,7 @@ def next(self):
124
124
125
125
126
126
class sru ():
127
- DEBUG = False
127
+ DEBUG = True
128
128
129
129
collection = False
130
130
maximumrecords = 50
@@ -170,7 +170,7 @@ def run_query(self):
170
170
url = SRU_BASEURL % (self .maximumrecords , self .startrecord ,
171
171
self .recordschema , self .collection , self .query )
172
172
if self .DEBUG :
173
- sys . stdout . write ( url )
173
+ print ( "run_query: %s" % url )
174
174
175
175
r = requests .get (url )
176
176
You can’t perform that action at this time.
0 commit comments