elibri_onix 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
data/FIELDS.rdoc CHANGED
@@ -41,7 +41,7 @@ inspect_include_fields
41
41
 
42
42
  == Measure
43
43
  === Attributes
44
- type, from, measurement, unit, type_name
44
+ type, measurement, unit, type_name
45
45
  === Relations
46
46
  inspect_include_fields
47
47
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- elibri_onix (0.1.19)
4
+ elibri_onix (0.1.22)
5
5
  activesupport (>= 2.3.5)
6
6
  elibri_onix_dict (>= 0.0.5)
7
7
  i18n
@@ -21,7 +21,7 @@ GEM
21
21
  minitest (3.0.0)
22
22
  mocha (0.11.4)
23
23
  metaclass (~> 0.0.1)
24
- multi_json (1.3.4)
24
+ multi_json (1.3.5)
25
25
  nokogiri (1.5.2)
26
26
  pry (0.9.9.6)
27
27
  coderay (~> 1.0.5)
@@ -16,7 +16,7 @@ module Elibri
16
16
  xml_accessor :identifiers, :as => [ProductIdentifier]
17
17
 
18
18
  ATTRIBUTES = [
19
- :relation_code, :isbn13, :proprietary_identifiers
19
+ :relation_code, :isbn13, :proprietary_identifiers, :record_reference
20
20
  ]
21
21
 
22
22
  RELATIONS = [
@@ -29,6 +29,11 @@ module Elibri
29
29
  identifiers.find {|identifier| identifier.type == 15}.try(:value)
30
30
  end
31
31
 
32
+
33
+ def record_reference
34
+ identifiers.find {|identifier| identifier.type == 01 && identifier.name == elibri}.try(:value)
35
+ end
36
+
32
37
 
33
38
  def proprietary_identifiers
34
39
  Hash.new.tap do |hash|
@@ -1,6 +1,6 @@
1
1
  module Elibri
2
2
  module ONIX
3
- VERSION = "0.1.21"
3
+ VERSION = "0.1.22"
4
4
  Version = VERSION
5
5
  end
6
6
  end
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: 49
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 21
10
- version: 0.1.21
9
+ - 22
10
+ version: 0.1.22
11
11
  platform: ruby
12
12
  authors:
13
13
  - Marcin Urbanski
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-17 00:00:00 +02:00
19
- default_executable:
18
+ date: 2012-05-18 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: activesupport
@@ -252,7 +251,6 @@ files:
252
251
  - test/fixtures/onix_title_with_collection_example.xml
253
252
  - test/fixtures/onix_titles_example.xml
254
253
  - test/helper.rb
255
- has_rdoc: true
256
254
  homepage: http://github.com/elibri/elibri_onix
257
255
  licenses:
258
256
  - MIT
@@ -282,7 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
280
  requirements: []
283
281
 
284
282
  rubyforge_project:
285
- rubygems_version: 1.5.2
283
+ rubygems_version: 1.8.21
286
284
  signing_key:
287
285
  specification_version: 3
288
286
  summary: EDItEUR ONIX format subset implementation used in Elibri publication system