libis-services 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/libis/services/rosetta/collection_handler.rb +1 -1
- data/lib/libis/services/version.rb +1 -1
- data/spec/primo_limo_spec.rb +10 -4
- data/spec/rosetta_oai_spec.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 318010003c7113812cdd946fbcf1fa08d17c2cf1
|
|
4
|
+
data.tar.gz: 9de9e7e1704b2c88802712b7026d3f0f30c657c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2796791d1a98c0925200f0396c0403cafb425b4a981506138e092c1c68947b431c9dd0fe2579a553fcf6221e54e6d96dab31b8a78a51ab802934cbc781b4e257
|
|
7
|
+
data.tar.gz: 6144003a1920af9fe1d3252c4997765298a3aef69e7fce567ee69450e12d76c5cc65e79c0b423fc50f789a8cb5bab9bf68247006b42220862c4ad2a4511016c4
|
|
@@ -34,7 +34,7 @@ module Libis
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
def update(collection_info)
|
|
37
|
-
collection_info = collection_info.
|
|
37
|
+
collection_info = collection_info.to_hash.cleanup if collection_info.is_a? CollectionInfo
|
|
38
38
|
call :update_collection, pds_handle: @pds_handle, collection: collection_info
|
|
39
39
|
end
|
|
40
40
|
|
data/spec/primo_limo_spec.rb
CHANGED
|
@@ -114,8 +114,11 @@ describe 'Primo Limo service' do
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
it 'get record' do
|
|
117
|
-
result = subject.get_marc('32LIBIS_ALMA_DS71174288370001471')
|
|
118
|
-
|
|
117
|
+
result = subject.get_marc('32LIBIS_ALMA_DS71174288370001471')
|
|
118
|
+
if result.is_a?(Libis::Tools::XmlDocument)
|
|
119
|
+
result = result.to_hash(:convert_tags_to => lambda { |tag| tag.snakecase.to_sym })
|
|
120
|
+
check_container(record, result[:record])
|
|
121
|
+
end
|
|
119
122
|
end
|
|
120
123
|
|
|
121
124
|
end
|
|
@@ -354,8 +357,11 @@ describe 'Primo Limo service' do
|
|
|
354
357
|
}
|
|
355
358
|
|
|
356
359
|
it 'get record' do
|
|
357
|
-
result = subject.get_pnx('32LIBIS_ALMA_DS71174288370001471')
|
|
358
|
-
|
|
360
|
+
result = subject.get_pnx('32LIBIS_ALMA_DS71174288370001471')
|
|
361
|
+
if result.is_a?(Libis::Tools::XmlDocument)
|
|
362
|
+
result = result.to_hash(:convert_tags_to => lambda { |tag| tag.snakecase.to_sym })
|
|
363
|
+
check_container(record, result[:record])
|
|
364
|
+
end
|
|
359
365
|
end
|
|
360
366
|
|
|
361
367
|
end
|
data/spec/rosetta_oai_spec.rb
CHANGED
|
@@ -19,15 +19,15 @@ describe 'Rosetta OAI-PMH Service' do
|
|
|
19
19
|
|
|
20
20
|
let(:expected_collections) {
|
|
21
21
|
[
|
|
22
|
-
'
|
|
23
|
-
'
|
|
22
|
+
'Kerk & Leven',
|
|
23
|
+
'Kerk en leven. Bisdom Antwerpen (0991).',
|
|
24
24
|
]
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
let(:expected_records) {
|
|
28
28
|
[
|
|
29
29
|
{
|
|
30
|
-
id: 'oai:d4I1-pubam:
|
|
30
|
+
id: 'oai:d4I1-pubam:IE405650',
|
|
31
31
|
}
|
|
32
32
|
]
|
|
33
33
|
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: libis-services
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kris Dekeyser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-01-
|
|
11
|
+
date: 2016-01-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
298
298
|
version: '0'
|
|
299
299
|
requirements: []
|
|
300
300
|
rubyforge_project:
|
|
301
|
-
rubygems_version: 2.
|
|
301
|
+
rubygems_version: 2.4.8
|
|
302
302
|
signing_key:
|
|
303
303
|
specification_version: 4
|
|
304
304
|
summary: LIBIS Services toolbox.
|