elibri_onix_generator 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -872,42 +872,14 @@ module Elibri
872
872
  tag(:RelatedProduct) do
873
873
  tag(:ProductRelationCode, Elibri::ONIX::Dict::Release_3_0::ProductRelationType::FACSIMILES)
874
874
  tag(:ProductIdentifier) do
875
- comment "Zawsze #{Elibri::ONIX::Dict::Release_3_0::ProductIDType::PROPRIETARY} - symbol wydawcy", :kind => :onix_related_products
875
+ comment "Zawsze #{Elibri::ONIX::Dict::Release_3_0::ProductIDType::PROPRIETARY} - wewnętrzny kod elibri (record reference)",
876
+ :kind => :onix_related_products
876
877
  tag(:ProductIDType, Elibri::ONIX::Dict::Release_3_0::ProductIDType::PROPRIETARY)
877
- tag(:IDTypeName, facsimile.publisher_name)
878
- tag(:IDValue, facsimile.publisher_symbol)
879
- end
880
-
881
- if facsimile.isbn_value.present?
882
- tag(:ProductIdentifier) do
883
- comment 'Zawsze ISBN-13'
884
- tag(:ProductIDType, Elibri::ONIX::Dict::Release_3_0::ProductIDType::ISBN13)
885
- tag(:IDValue, facsimile.isbn_value)
886
- end
887
- end
888
- end
889
- end
890
-
891
- # Nie powtarzaj w zbiorze produktów podobnych faksymili:
892
- (product.similar_products - product.facsimiles).each do |similar_product|
893
- tag(:RelatedProduct) do
894
- tag(:ProductRelationCode, Elibri::ONIX::Dict::Release_3_0::ProductRelationType::SIMILAR_PRODUCTS)
895
- tag(:ProductIdentifier) do
896
- comment "Zawsze #{Elibri::ONIX::Dict::Release_3_0::ProductIDType::PROPRIETARY} - symbol wydawcy"
897
- tag(:ProductIDType, Elibri::ONIX::Dict::Release_3_0::ProductIDType::PROPRIETARY)
898
- tag(:IDTypeName, similar_product.publisher_name)
899
- tag(:IDValue, similar_product.publisher_symbol)
900
- end
901
-
902
- if similar_product.isbn_value.present?
903
- tag(:ProductIdentifier) do
904
- tag(:ProductIDType, Elibri::ONIX::Dict::Release_3_0::ProductIDType::ISBN13)
905
- tag(:IDValue, similar_product.isbn_value)
906
- end
878
+ tag(:IDTypeName, "elibri")
879
+ tag(:IDValue, facsimile.record_reference)
907
880
  end
908
881
  end
909
882
  end
910
-
911
883
  end
912
884
  end
913
885
 
@@ -1,3 +1,3 @@
1
1
  module ElibriOnixGenerator
2
- VERSION = "0.1"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_onix_generator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- version: "0.1"
9
+ - 1
10
+ version: 0.1.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Piotr Szmielew
@@ -14,7 +15,8 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2012-05-10 00:00:00 Z
18
+ date: 2012-05-16 00:00:00 +02:00
19
+ default_executable:
18
20
  dependencies:
19
21
  - !ruby/object:Gem::Dependency
20
22
  name: builder
@@ -48,6 +50,7 @@ files:
48
50
  - lib/elibri_onix_generator.rb
49
51
  - lib/elibri_onix_generator/version.rb
50
52
  - lib/xml_tags.yml
53
+ has_rdoc: true
51
54
  homepage: ""
52
55
  licenses: []
53
56
 
@@ -77,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
80
  requirements: []
78
81
 
79
82
  rubyforge_project: elibri_onix_generator
80
- rubygems_version: 1.8.21
83
+ rubygems_version: 1.5.2
81
84
  signing_key:
82
85
  specification_version: 3
83
86
  summary: XML Generator used by Elibri gems