elibri_onix 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- data/elibri_onix.gemspec +2 -2
- data/lib/elibri_onix/onix_3_0/product.rb +2 -1
- data/lib/elibri_onix/version.rb +1 -1
- metadata +4 -4
data/elibri_onix.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{elibri_onix}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.16"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Marcin Urbanski"]
|
12
|
-
s.date = %q{2012-05-
|
12
|
+
s.date = %q{2012-05-09}
|
13
13
|
s.description = %q{EDItEUR ONIX format subset implementation used in Elibri publication system}
|
14
14
|
s.email = %q{marcin@urbanski.vdl.pl}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -9,7 +9,7 @@ module Elibri
|
|
9
9
|
attr_accessor :elibri_dialect, :height, :width, :thickness, :weight, :ean, :isbn13, :number_of_pages, :duration,
|
10
10
|
:file_size, :publisher_name, :publisher_id, :imprint_name, :current_state, :reading_age_from, :reading_age_to,
|
11
11
|
:table_of_contents, :description, :reviews, :excerpts, :series, :title, :subtitle, :collection_title,
|
12
|
-
:collection_part, :full_title, :original_title, :trade_title,
|
12
|
+
:collection_part, :full_title, :original_title, :trade_title, :short_description,
|
13
13
|
:elibri_product_category1_id, :elibri_product_category2_id, :preview_exists
|
14
14
|
|
15
15
|
|
@@ -177,6 +177,7 @@ module Elibri
|
|
177
177
|
@reading_age_to = audience_ranges.find {|ar| (ar.qualifier == "18") && (ar.precision == "04")}.try(:value)
|
178
178
|
@table_of_contents = text_contents.find { |t| t.type_name == "table_of_contents" }
|
179
179
|
@description = text_contents.find { |t| t.type_name == "main_description" }
|
180
|
+
@short_description = text_contents.find { |t| t.type_name == "short_description" }
|
180
181
|
@reviews = text_contents.find_all { |t| t.type_name == "review" }
|
181
182
|
@excerpts = text_contents.find_all { |t| t.type_name == "excerpt" }
|
182
183
|
@series = collections.map { |c| [c.title_detail.elements[0].title, c.title_detail.elements[0].part_number] }
|
data/lib/elibri_onix/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elibri_onix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 59
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 16
|
10
|
+
version: 0.1.16
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Marcin Urbanski
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-05-
|
18
|
+
date: 2012-05-09 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|