miniharvest 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/miniharvest +2 -1
- data/lib/miniharvest.rb +3 -3
- data/lib/miniharvest/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: c17fd0149e1c6e4b01280791868f0a45ebf365d6
|
4
|
+
data.tar.gz: 7a666e06804b6d9593445ddea620074d1e6bd407
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35981f46a98f1f2c06228cad42cef538cc68e0f6d4a8b01852c0f79b24f25933e26ec199981e65941da1bb8962d435494f181300cc95f5165fc3425086dc6aaf
|
7
|
+
data.tar.gz: 8e38a08ae0f3499e86cf99c873b429dffe57cd429d63507264451c03781830c19d067a1806786d5a5dcbcc4ba5310c2b93e3b2a8bfec88486d24e847243d342f
|
data/exe/miniharvest
CHANGED
data/lib/miniharvest.rb
CHANGED
@@ -9,7 +9,7 @@ module MiniHarvest
|
|
9
9
|
|
10
10
|
@@marc_collection = Nokogiri::XML('<collection xmlns="http://www.loc.gov/MARC21/slim">')
|
11
11
|
|
12
|
-
attr_accessor :oai_base_uri, :set
|
12
|
+
attr_accessor :oai_base_uri, :set, :from
|
13
13
|
|
14
14
|
def append_to_collection(records)
|
15
15
|
@@marc_collection.at('collection').add_child(records)
|
@@ -32,7 +32,7 @@ module MiniHarvest
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def initial_request
|
35
|
-
params = { :verb => 'ListRecords', :set => self.set, :metadataPrefix => 'marc21' }
|
35
|
+
params = { :verb => 'ListRecords', :set => self.set, :metadataPrefix => 'marc21', :from => self.from }
|
36
36
|
res = oai_request(self.oai_base_uri,params)
|
37
37
|
get_records(process_request(res))
|
38
38
|
end
|
@@ -45,7 +45,7 @@ module MiniHarvest
|
|
45
45
|
get_records(resumption_token)
|
46
46
|
else
|
47
47
|
puts @@marc_collection.to_s
|
48
|
-
return
|
48
|
+
return
|
49
49
|
end
|
50
50
|
end
|
51
51
|
end
|
data/lib/miniharvest/version.rb
CHANGED