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 +4 -4
- data/README.md +1 -0
- data/lib/cdmbl/extractor.rb +1 -0
- data/lib/cdmbl/oai_request.rb +4 -3
- data/lib/cdmbl/transformer.rb +2 -3
- data/lib/cdmbl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48502d2d45023a03df1bb78ef376bca9f1be4977
|
4
|
+
data.tar.gz: ee88711b42d87772d6bb2e91a2c0876c2c0adb72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/cdmbl/extractor.rb
CHANGED
data/lib/cdmbl/oai_request.rb
CHANGED
@@ -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}
|
26
|
+
"#{base_uri}&verb=ListIdentifiers&metadataPrefix=oai_dc&from=#{from}"
|
26
27
|
end
|
27
28
|
|
28
29
|
def batch_uri
|
29
|
-
"#{base_uri}
|
30
|
+
"#{base_uri}&verb=ListIdentifiers&resumptionToken=#{resumption_token}"
|
30
31
|
end
|
31
32
|
|
32
33
|
def sets_uri
|
33
|
-
"
|
34
|
+
"http://reflections.mndigital.org/oai/oai.php?verb=ListSets"
|
34
35
|
end
|
35
36
|
|
36
37
|
def request(location)
|
data/lib/cdmbl/transformer.rb
CHANGED
@@ -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: '
|
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
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.
|
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-
|
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
|