cdmbl 0.1.2 → 0.2.0

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: f7e429cb47c7da0c901fa8a8ce4442dabb7026b2
4
- data.tar.gz: f74c3d1a4fc3c3ddef1a24b1e9970732adbd128d
3
+ metadata.gz: 48502d2d45023a03df1bb78ef376bca9f1be4977
4
+ data.tar.gz: ee88711b42d87772d6bb2e91a2c0876c2c0adb72
5
5
  SHA512:
6
- metadata.gz: 15106e790243ea1fef442e615753c2066cbacafc872599acfa15e00ad94ec08a52123d156a3c2aa0d7b2227850aa38829c298ad42b58963ec88eb0cddda67a13
7
- data.tar.gz: 53b1164b69cb53d145c6f4945db87b30ecd0c2123ee4f77ecf1d7185400cb5ee5bc2532e5343e81374544f27dd1698ee0e088a9e57c86bbc72e0af2dee4833cf
6
+ metadata.gz: 6b36549f3fc364a2aa1e00ddd55899dbbdcf102997929fd55506c571bd06addba143cb99ebc7a802c59df554dde91eb518a8bfaf132758274acf63876b91d6a1
7
+ data.tar.gz: e0e08c16ed335a2bc7a948772b1d36d11e6b70c9926e04f6f2348714deff84e00e67c259ebaf2594b4800acf1d95fdd7d403ab12866c8fd68a300ba2afb2f771
data/README.md CHANGED
@@ -135,3 +135,4 @@ CDMBL could be expanded to include some features from the [MDL](https://github.c
135
135
  * Asyncronous thumbnail caching (e.g. https://github.com/UMNLibraries/mdl_search/blob/master/app/controllers/catalog_controller.rb#L34)
136
136
  * A (very simple) model to keep track of indexing runs (used like this: https://github.com/UMNLibraries/mdl_search/blob/master/lib/tasks/ingester.rake#L6)
137
137
  * A template to over-write the standard BL catalog controller to make use of the CDM solr fields?
138
+ * The [react-borealis viewer](https://github.com/UMNLibraries/react-borealis)
@@ -65,6 +65,7 @@ module CDMBL
65
65
  end
66
66
 
67
67
  def cdm_request(collection, id)
68
+ Rails.logger.info("-----------Ingesting:#{collection}/#{id}-----------")
68
69
  cdm_item.new(base_url: cdm_endpoint, collection: collection, id: id).metadata
69
70
  end
70
71
 
@@ -12,6 +12,7 @@ module CDMBL
12
12
  end
13
13
 
14
14
  def identifiers
15
+ Rails.logger.info("===============#{first_batch_uri}===============")
15
16
  (resumption_token) ? request(batch_uri) : request(first_batch_uri)
16
17
  end
17
18
 
@@ -22,15 +23,15 @@ module CDMBL
22
23
  private
23
24
 
24
25
  def first_batch_uri
25
- "#{base_uri}?verb=ListIdentifiers&metadataPrefix=oai_dc&from=#{from}"
26
+ "#{base_uri}&verb=ListIdentifiers&metadataPrefix=oai_dc&from=#{from}"
26
27
  end
27
28
 
28
29
  def batch_uri
29
- "#{base_uri}?verb=ListIdentifiers&resumptionToken=#{resumption_token}"
30
+ "#{base_uri}&verb=ListIdentifiers&resumptionToken=#{resumption_token}"
30
31
  end
31
32
 
32
33
  def sets_uri
33
- "#{base_uri}?verb=ListSets"
34
+ "http://reflections.mndigital.org/oai/oai.php?verb=ListSets"
34
35
  end
35
36
 
36
37
  def request(location)
@@ -75,7 +75,7 @@ module CDMBL
75
75
  {dest_path: 'topic_teim', origin_path: 'genera', formatters: [StripFormatter, SplitFormatter, StripFormatter]},
76
76
  {dest_path: 'topic_ssim', origin_path: 'genera', formatters: [Titlieze, StripFormatter, SplitFormatter, StripFormatter]},
77
77
  {dest_path: 'topic_unstem_search', origin_path: 'genera', formatters: [StripSemicolonFormatter, StripFormatter]},
78
- {dest_path: 'type_ssi', origin_path: 'type', formatters: [Titlieze, StripSemicolonFormatter]},
78
+ {dest_path: 'type_ssi', origin_path: 'type', formatters: [Titlieze, StripSemicolonFormatter, StripFormatter]},
79
79
  {dest_path: 'physical_format_ssi', origin_path: 'physic', formatters: [StripSemicolonFormatter]},
80
80
  {dest_path: 'physical_format_tei', origin_path: 'physic', formatters: [StripSemicolonFormatter]},
81
81
  {dest_path: 'formal_subject_unstem_search', origin_path: 'specif', formatters: [StripFormatter]},
@@ -139,8 +139,7 @@ module CDMBL
139
139
  {dest_path: 'geographic_feature_ssim', origin_path: 'geogra', formatters: [Titlieze, StripFormatter, SplitFormatter, StripFormatter]},
140
140
  {dest_path: 'geographic_feature_teim', origin_path: 'geogra', formatters: [StripFormatter]},
141
141
  {dest_path: 'geographic_feature_unstem_search', origin_path: 'geogra', formatters: [StripFormatter]},
142
- {dest_path: 'compound_objects_ts', origin_path: 'compound_objects', formatters: [ToJsonFormatter]},
143
- {dest_path: 'image_ids_ssim', origin_path: 'compound_objects', formatters: [ImageId]},
142
+ {dest_path: 'compound_objects_ts', origin_path: 'page', formatters: [ToJsonFormatter]}
144
143
  ]
145
144
  end
146
145
  end
data/lib/cdmbl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module CDMBL
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cdmbl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - chadfennell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-05 00:00:00.000000000 Z
11
+ date: 2016-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hash_at_path