elibri_onix 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elibri_onix/onix_3_0/product.rb +3 -1
- data/lib/elibri_onix/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d69912737892405619e73b9ddeac017b128bac8b1919a437c3105b5287b3e49e
|
4
|
+
data.tar.gz: f3f5d46f1409ca1f0383b0aa177a729ee8019b9a1baf7bd1067cf2b5d0458cf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01119d48727fbbaee300efe03479dd8a9fd30998916d9d3c0ad042ca7438c99ffbfc9e6eee3772d90b584c3ed32411b8eda35e9ba8853b6ea0ef1e194ad11e8a
|
7
|
+
data.tar.gz: 6280ee4543ed1c16b8b9a716bb3db38a75c6457d78b96e505affcb175e89140d0f0a9212cf0ac975b4f87b14f579518a42faea3a81703c7d1902e2467b9d5c39
|
@@ -295,7 +295,9 @@ module Elibri
|
|
295
295
|
def descriptive_details_setup(data)
|
296
296
|
@product_composition = data.at_xpath('xmlns:ProductComposition').try(:text)
|
297
297
|
@product_form = data.at_xpath('xmlns:ProductForm').try(:text)
|
298
|
-
|
298
|
+
if Elibri::ONIX::Dict::Release_3_0::ProductFormCode::find_by_onix_code(@product_form)
|
299
|
+
@product_form_name = Elibri::ONIX::Dict::Release_3_0::ProductFormCode::find_by_onix_code(@product_form).name(:en).downcase
|
300
|
+
end
|
299
301
|
@measures = data.xpath('xmlns:Measure').map { |measure_data| Measure.new(measure_data) }
|
300
302
|
@title_details = data.xpath('xmlns:TitleDetail').map { |title_data| TitleDetail.new(title_data) }
|
301
303
|
@collections = data.xpath('xmlns:Collection').map { |collection_data| Collection.new(collection_data) }
|
data/lib/elibri_onix/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elibri_onix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcin Urbanski
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-04-
|
12
|
+
date: 2019-04-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -113,14 +113,14 @@ dependencies:
|
|
113
113
|
name: bundler
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- - "
|
116
|
+
- - ">"
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '1.7'
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- - "
|
123
|
+
- - ">"
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '1.7'
|
126
126
|
- !ruby/object:Gem::Dependency
|
@@ -280,7 +280,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
280
280
|
- !ruby/object:Gem::Version
|
281
281
|
version: '0'
|
282
282
|
requirements: []
|
283
|
-
|
283
|
+
rubyforge_project:
|
284
|
+
rubygems_version: 2.7.9
|
284
285
|
signing_key:
|
285
286
|
specification_version: 4
|
286
287
|
summary: EDItEUR ONIX format subset implementation used in Elibri publication system
|