cdmbl 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cdmbl/extractor.rb +0 -1
- data/lib/cdmbl/oai_request.rb +3 -4
- data/lib/cdmbl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0f4d7eaf7431fec406529b5fc904372d88aee7e
|
4
|
+
data.tar.gz: 488ed93432759365ef29c22694174bd95877e2b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20e7af0da4b89fa46e8612c196f61a3d633e386d5b830eba0308dcf6db156b6103e4456e3ae4cc3a68448ef6dc98136a19ef7f7a6d095e4cf2daa419dac26286
|
7
|
+
data.tar.gz: 7aca903cd1a245a514ec39a5b0fc6e7d896c8b79dfa72d481b082868d550b85b14214ca94660a6ad54465797559d2dae10fffc68bd5d61d7c541775d6342a321
|
data/lib/cdmbl/extractor.rb
CHANGED
data/lib/cdmbl/oai_request.rb
CHANGED
@@ -12,7 +12,6 @@ module CDMBL
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def identifiers
|
15
|
-
Rails.logger.info("===============#{first_batch_uri}===============")
|
16
15
|
(resumption_token) ? request(batch_uri) : request(first_batch_uri)
|
17
16
|
end
|
18
17
|
|
@@ -23,15 +22,15 @@ module CDMBL
|
|
23
22
|
private
|
24
23
|
|
25
24
|
def first_batch_uri
|
26
|
-
"#{base_uri}
|
25
|
+
"#{base_uri}?verb=ListIdentifiers&metadataPrefix=oai_dc&from=#{from}"
|
27
26
|
end
|
28
27
|
|
29
28
|
def batch_uri
|
30
|
-
"#{base_uri}
|
29
|
+
"#{base_uri}?verb=ListIdentifiers&resumptionToken=#{resumption_token}"
|
31
30
|
end
|
32
31
|
|
33
32
|
def sets_uri
|
34
|
-
"
|
33
|
+
"#{base_uri}?verb=ListSets"
|
35
34
|
end
|
36
35
|
|
37
36
|
def request(location)
|
data/lib/cdmbl/version.rb
CHANGED