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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70f04be786881cb0542cb8e3dff046e50ab1ffc8
4
- data.tar.gz: 33d233fb6924a52ade310ccac6a9912c0cf68759
3
+ metadata.gz: c17fd0149e1c6e4b01280791868f0a45ebf365d6
4
+ data.tar.gz: 7a666e06804b6d9593445ddea620074d1e6bd407
5
5
  SHA512:
6
- metadata.gz: 7146432b73be3d2649aa9e426ef608f70a2e1f56b195ffaf1027d9a89f2a6944cf2035cbe805b2b1513e40f7f3c1e92f886a6b0645d03c6627bfe9788c3fc1b1
7
- data.tar.gz: 2207215ef45d61654a668a955e81ac27e34ca508a6e8bffcabca56647c7a66ccf767c0fc4a6d98ae69e07aec58ca4cd2f5c8d3550bce9aa59db90b9bc18d1325
6
+ metadata.gz: 35981f46a98f1f2c06228cad42cef538cc68e0f6d4a8b01852c0f79b24f25933e26ec199981e65941da1bb8962d435494f181300cc95f5165fc3425086dc6aaf
7
+ data.tar.gz: 8e38a08ae0f3499e86cf99c873b429dffe57cd429d63507264451c03781830c19d067a1806786d5a5dcbcc4ba5310c2b93e3b2a8bfec88486d24e847243d342f
data/exe/miniharvest CHANGED
@@ -4,4 +4,5 @@ require 'miniharvest'
4
4
  mh = MiniHarvest::MiniHarvest.new
5
5
  mh.oai_base_uri = ARGV[0]
6
6
  mh.set = ARGV[1]
7
- puts mh.get_records(mh.initial_request)
7
+ mh.from = ARGV[2]
8
+ mh.get_records(mh.initial_request)
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
@@ -1,3 +1,3 @@
1
1
  module MiniHarvest
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miniharvest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Little