ebsco-discovery-service-api 1.1.2 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/ebsco-discovery-service-api.rb +20 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzQzMzQ2ODI5OWRjMTk5OWMyMWE4M2JlMDQyOTJhOTBkMzI5NWI1Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDZhMWEyYjljMmQzZGRlODcyYmNiYzgwZjNkMjY0OGI2NjM3MmE2YQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDM2NjMxMzE0YWU1ZDRlYWUwMjU1MmJjYmNhNjNiOGI4NzBjNDUyMjY2NzUy
|
10
|
+
YWJlMTM4YTEwYjMzMmRkYTgyOGFmM2M4NzMwZDg2MTk1MzM2ZDg4NWRkMzc1
|
11
|
+
OGY5MGM0NzM2MDk1ZjFlZWY5NGMzODA1ODhjMDY3MjgwNGQzYmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODJlZDllYWJmNWJjNWZhY2RhNmMwNDU3NWYzMDdhYzFkOTliZDg0ZTc0OWE3
|
14
|
+
NDdmMjllZmMwZGEzMjdiYTg2MjU5YzEwMjk1YmIxMGM1ZjBkZjg2MzE5OTJj
|
15
|
+
YWU3MTA3MGZhYTUzMTMzMmMzMzkxNGQyODRjNWI0MjNhOWI0OWY=
|
@@ -7,6 +7,7 @@ require 'json'
|
|
7
7
|
# http://www.lh2cc.net/dse/efrierson/ruby/eds-alpha-demo.zip
|
8
8
|
|
9
9
|
module EDSApi
|
10
|
+
|
10
11
|
API_URL = "http://eds-api.ebscohost.com/"
|
11
12
|
API_URL_S = "https://eds-api.ebscohost.com/"
|
12
13
|
|
@@ -180,6 +181,25 @@ module EDSApi
|
|
180
181
|
end
|
181
182
|
end
|
182
183
|
def search(options, session_token, auth_token, format = :xml)
|
184
|
+
|
185
|
+
# temporary fix while API SI resolves
|
186
|
+
# catches case where user navigates past result page 250 and applies facet/limiter
|
187
|
+
if (options.index('&action=') && (options.index('&action=') > 0))
|
188
|
+
if (options.index('&action=GoToPage(').nil?)
|
189
|
+
if (options.index('&pagenumber=') && (options.index('&pagenumber=') > 0))
|
190
|
+
beginSubstring = options.index('&pagenumber=') + 12
|
191
|
+
currentpage = options[beginSubstring..-1]
|
192
|
+
newOptions = options[0..beginSubstring-1]
|
193
|
+
endSubstring = currentpage.index('&') - 1
|
194
|
+
currentpageInt = currentpage[0..endSubstring]
|
195
|
+
newOptionsEnd = currentpage[endSubstring+1..-1]
|
196
|
+
if Integer(currentpageInt) > 249
|
197
|
+
options = newOptions + "1" + newOptionsEnd
|
198
|
+
end
|
199
|
+
end
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
183
203
|
attempts = 0
|
184
204
|
@session_token = session_token
|
185
205
|
@auth_token = auth_token
|