Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ source "https://rubygems.org"
# Specify your gem's dependencies in relaton_cen.gemspec
gemspec

gem "lutaml-model", github: "lutaml/lutaml-model", branch: "main"
gem "relaton-bib", github: "relaton/relaton-bib", branch: "upd-lutaml-model-to-0-8-0"

gem "equivalent-xml", "~> 0.6"
gem "pry-byebug"
gem "rake", "~> 13.0"
Expand Down
1 change: 1 addition & 0 deletions lib/relaton/cen/model/bibdata.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module Relaton
module Cen
class Bibdata < Item
model ItemData
include Bib::BibdataShared
end
end
Expand Down
1 change: 1 addition & 0 deletions lib/relaton/cen/model/bibitem.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module Relaton
module Cen
class Bibitem < Item
model ItemData
include Bib::BibitemShared
end
end
Expand Down
5 changes: 1 addition & 4 deletions lib/relaton/cen/model/ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
module Relaton
module Cen
class Ext < Bib::Ext
attribute :schema_version, method: :get_schema_version
attribute :structuredidentifier, StructuredIdentifier, collection: true, initialize_empty: true

def get_schema_version
Relaton.schema_versions["relaton-model-cen"]
end
def get_schema_version = Relaton.schema_versions["relaton-model-cen"]
end
end
end
12 changes: 10 additions & 2 deletions spec/fixtures/bibdata.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<bibdata type="standard" schema-version="v1.5.6">
<fetched>2025-12-15</fetched>
<fetched>2026-04-16</fetched>
<title language="en" script="Latn" type="title-main">Multilayer piping systems for hot and cold water installations inside buildings</title>
<title language="en" script="Latn" type="title-part">Part 7: Guidance for the assessment of conformity (ISO/TS 21003-7:2019)</title>
<title language="en" script="Latn" type="main">Multilayer piping systems for hot and cold water installations inside buildings - Part 7: Guidance for the assessment of conformity (ISO/TS 21003-7:2019)</title>
Expand All @@ -11,6 +11,10 @@
</role>
<organization>
<name>European Committee for Standardization</name>
<subdivision type="technical-committee" subtype="TC">
<name>Plastics piping systems and ducting systems</name>
<identifier type="number">155</identifier>
</subdivision>
<abbreviation>CEN</abbreviation>
<uri>https://cen.eu</uri>
</organization>
Expand Down Expand Up @@ -94,6 +98,10 @@
</role>
<organization>
<name>European Committee for Standardization</name>
<subdivision type="technical-committee" subtype="TC">
<name>Plastics piping systems and ducting systems</name>
<identifier type="number">155</identifier>
</subdivision>
<abbreviation>CEN</abbreviation>
<uri>https://cen.eu</uri>
</organization>
Expand Down Expand Up @@ -182,4 +190,4 @@ In conjunction with the other parts of ISO 21003 (see Foreword), this document i
<partnumber>7</partnumber>
</structuredidentifier>
</ext>
</bibdata>
</bibdata>
9 changes: 5 additions & 4 deletions spec/fixtures/item.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ status:
content: Published
copyright:
- owner:
organization:
- organization:
name:
- content: European Committee for Standardization
abbreviation:
content: CEN
uri:
content: https://cen.eu
- content: https://cen.eu
from: '2019'
relation:
- type: obsoletes
Expand All @@ -60,7 +60,8 @@ relation:
- content: https://standards.cen.eu/dyn/www/f?p=CENWEB:110:0::::FSP_PROJECT:34670&cs=1739483DB0A85EDABBC435CE39F54C548
type: src
type: standard
formattedref: CEN ISO/TS 21003-7:2008/A1:2010
formattedref:
content: CEN ISO/TS 21003-7:2008/A1:2010
place:
- formatted_place: London
fetched: '2021-05-21'
Expand All @@ -76,7 +77,7 @@ ext:
- code: 91.140.60
text: Water supply systems
structuredidentifier:
type: international-standard
- type: international-standard
agency:
- CEN
docnumber: "21003"
Expand Down
42 changes: 21 additions & 21 deletions spec/vcr_cassettes/cen_iso_ts_21003_7.yml

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions spec/vcr_cassettes/cr_12101_5_2000.yml

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions spec/vcr_cassettes/cwa_14050_21_2000.yml

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions spec/vcr_cassettes/en_1325.yml

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions spec/vcr_cassettes/en_13306.yml

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions spec/vcr_cassettes/en_285_2015_a1_2021.yml

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions spec/vcr_cassettes/env_1993_1_1.yml

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions spec/vcr_cassettes/hd_1215_2_1988.yml

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions spec/vcr_cassettes/not_found.yml

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions spec/vcr_cassettes/subcommittee.yml

Large diffs are not rendered by default.

Loading