= RelatonBsi retrieve BSI Standards for bibliographic use using the BibliographicItem model image:https://img.shields.io/gem/v/relaton-bsi.svg["Gem Version", link="https://rubygems.org/gems/relaton-bsi"] image:https://github.com/relaton/relaton-bsi/workflows/rake/badge.svg["Build Status", link="https://github.com/relaton/relaton-bsi/actions?workflow=rake"] image:https://codeclimate.com/github/relaton/relaton-bsi/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/relaton/relaton-bsi"] image:https://img.shields.io/github/issues-pr-raw/relaton/relaton-bsi.svg["Pull Requests", link="https://github.com/relaton/relaton-bsi/pulls"] image:https://img.shields.io/github/commits-since/relaton/relaton-bsi/latest.svg["Commits since latest",link="https://github.com/relaton/relaton-bsi/releases"] RelatonBsi 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-bsi' ---- And then execute: $ bundle install Or install it yourself as: $ gem install relaton-bsi == Usage === Search for a standard using keywords [source,ruby] ---- require 'relaton_bsi' hit_collection = RelatonBsi::BsiBibliography.search("BS EN ISO 8848") => item = hit_collection[1].fetch => # 2021-04-23 Small craft Remote steering systems Small craft - Remote steering systems Navires de plaisance. Appareils à gouverner commandés à distance Navires de plaisance. Appareils à gouverner commandés à distance Kleine Wasserfahrzeuge. Steueranlagen Kleine Wasserfahrzeuge. Steueranlagen https://shop.bsigroup.com/ProductDetail?pid=000000000030415929 BS EN ISO 8848:2017 978 0 539 13462 9 2021-04-14 British Standards Institution BSI https://www.bsigroup.com/ en Static loading, Testing conditions, Dimensions, Distant, Steering control devices, Specimen preparation, Deformation, Steering gear, Impact testing, Installation, Steering wheels, Fasteners, Boats, Vehicle components, Water transport engineering components, Mechanical testing Superseded, Withdrawn 2021 British Standards Institution BSI https://www.bsigroup.com/ BS EN 28848:1993 https://shop.bsigroup.com/ProductDetail/?pid=000000000030046595 London " ---- === Typed links Each BSI document has `src` type link. [source,ruby] ---- item.link => [#, @type="src">] ---- With `bibdata: true` option XML output wrapped with `bibdata` element and `ext` element added. [source,ruby] ---- item.to_xml bibdata: true " 2021-04-23 Small craft ... GME/33 47.080 Small craft " ---- === Get standard by code and year [source,ruby] ---- RelatonBsi::BsiBibliography.get "BS EN ISO 8848:2021" [relaton-bsi] ("BS EN ISO 8848:2021") fetching... [relaton-bsi] ("BS EN ISO 8848:2021") found BS EN ISO 8848:2021 => # # {"id"=>"BSENISO8848-2021", ... RelatonBsi::BsiBibliographicItem.from_hash hash => # #