= RelatonCen retrieve CEN Standards for bibliographic use using the BibliographicItem model image:https://img.shields.io/gem/v/relaton-cen.svg["Gem Version", link="https://rubygems.org/gems/relaton-cen"] image:https://github.com/relaton/relaton-cen/workflows/rake/badge.svg["Build Status", link="https://github.com/relaton/relaton-cen/actions?workflow=rake"] image:https://codeclimate.com/github/relaton/relaton-cen/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/relaton/relaton-cen"] image:https://img.shields.io/github/issues-pr-raw/relaton/relaton-cen.svg["Pull Requests", link="https://github.com/relaton/relaton-cen/pulls"] image:https://img.shields.io/github/commits-since/relaton/relaton-cen/latest.svg["Commits since latest",link="https://github.com/relaton/relaton-cen/releases"] RelatonCen is a Ruby gem that implements the https://github.com/metanorma/metanorma-model-iso#iso-bibliographic-item[IsoBibliographicItem model]. == Installation Add this line to your application's Gemfile: [source,ruby] ---- gem 'relaton-cen' ---- And then execute: $ bundle install Or install it yourself as: $ gem install relaton-cen == Usage === Search for a standard using keywords [source,ruby] ---- require 'relaton_cen' hit_collection = RelatonCen::CenBibliography.search("CEN ISO/TS 21003-7") => item = hit_collection[0].fetch => # 2021-05-30 Multilayer piping systems for hot and cold water installations inside buildings Part 7: Guidance for the assessment of conformity (ISO/TS 21003-7:2019) Multilayer piping systems for hot and cold water installations inside buildings - Part 7: Guidance for the assessment of conformity (ISO/TS 21003-7:2019) https://standards.cen.eu/dyn/www/f?p=204:110:0::::FSP_PROJECT,FSP_ORG_ID:68120,6137&cs=124CA2347A9843B3165EE35F066A30B7C CEN ISO/TS 21003-7:2019 2019-03-28 2019-05-29 2019-08-31 en This document gives requirements and guidance for the assessment of conformity of compounds, products, and assemblies in accordance with the applicable part(s) of ISO 21003 intended to be included in the manufacturer's quality plan as part of the quality management system and for the establishment of certification procedures. In conjunction with the other parts of ISO 21003 (see Foreword), this document is applicable to multilayer piping systems intended to be used for hot and cold water installations within buildings for the conveyance of water, whether or not intended for human consumption (domestic systems) and for heating systems, under design pressures and temperatures appropriate to the class of application (see ISO 21003-1:2008, Table 1). Published 2019 European Committee for Standardization CEN https://cen.eu CEN ISO/TS 21003-7:2008/A1:2010 https://standards.cen.eu/dyn/www/f?p=CENWEB:110:0::::FSP_PROJECT:34670&cs=1739483DB0A85EDABBC435CE39F54C548 CEN ISO/TS 21003-7:2008 https://standards.cen.eu/dyn/www/f?p=CENWEB:110:0::::FSP_PROJECT:29120&cs=157CFB37153811CB6097F253DF9B57B89 ISO 17456 https://standards.cen.eu/dyn/www/f?p=204:111:0::::FSP_PROJECT_CROSSREF,FSP_PROJECT:ISO-SPACE-17456,68120&cs=1FD4205F9B0E21546A862E6AEB321BD3D ISO 21003-1 https://standards.cen.eu/dyn/www/f?p=204:111:0::::FSP_PROJECT_CROSSREF,FSP_PROJECT:ISO-SPACE-21003-1,68120&cs=1E3BAF63C2639CA9E5C4B5F6B7F300413 ISO 21003-2 https://standards.cen.eu/dyn/www/f?p=204:111:0::::FSP_PROJECT_CROSSREF,FSP_PROJECT:ISO-SPACE-21003-2,68120&cs=14788DF9FA188AC4B4ECBD949EB95F25C ISO 21003-3 https://standards.cen.eu/dyn/www/f?p=204:111:0::::FSP_PROJECT_CROSSREF,FSP_PROJECT:ISO-SPACE-21003-3,68120&cs=1DF2256C557AAF0DDCF7D85765E85640B ISO 21003-5 https://standards.cen.eu/dyn/www/f?p=204:111:0::::FSP_PROJECT_CROSSREF,FSP_PROJECT:ISO-SPACE-21003-5,68120&cs=196D7C9FE2A53D9185BE4E4A2DEE23636 London " ---- With `bibdata: true` option XML output wrapped with `bibdata` element and `ext` element added. [source,ruby] ---- puts item.to_xml(bibdata: true) "bibdata type="standard"> 2021-05-30 Multilayer piping systems for hot and cold water installations inside buildings ... international-standard Plastics piping systems and ducting systems 23.040.20 Plastics pipes 91.140.60 Water supply systems 21003 " ---- === Typed links Each CEN document has `src` type link. [source,ruby] ---- item.link => [#, @type="src">] ---- === Get code, and year [source,ruby] ---- elatonCen::CenBibliography.get "CEN ISO/TS 21003-7:2019" [relaton-cen] ("CEN ISO/TS 21003-7") fetching... [relaton-cen] ("CEN ISO/TS 21003-7") found CEN ISO/TS 21003-7:2019 => # # {"id"=>"CENISO/TS21003-7-2019", ... RelatonIsoBib::IsoBibliographicItem.from_hash hash => # #