= RelatonItu: retrieve ITU Standards for bibliographic use using the BibliographicItem model image:https://img.shields.io/gem/v/relaton-bib.svg["Gem Version", link="https://rubygems.org/gems/relaton-bib"] image:https://travis-ci.com/metanorma/relaton-bib.svg?branch=master["Build Status", link="https://travis-ci.com/metanorma/relaton-bib"] image:https://ci.appveyor.com/api/projects/status/fd39m2762jo8ve04?svg=true["Appveyor Build Status", link="https://ci.appveyor.com/project/ribose/relaton-bib"] RelatonItu 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-bib' ---- And then execute: $ bundle Or install it yourself as: $ gem install relaton-bib == Usage === Search for a standard using keywords [source,ruby] ---- require 'relaton_bib' hit_collection = RelatonItu::ItuBibliography.search("ITU-T L.163") => [, , , , , , , , , ] item = hit_collection[1].fetch => # " 2019-06-07 ITU-T J.163 (12/2007): Dynamic quality of service for the provision of real-time services over cable television networks using cable modems ITU-T J.163 (12/2007): Dynamic quality of service for the provision of real-time services over cable television networks using cable modems https://www.itu.int/net4/ITU-T/search/api/redirection?dest=http%3A%2F%2Fhandle.itu.int%2F11.1002%2F1000%2F9306-en&position=9&page=1 https://www.itu.int/rec/T-REC-J.163-200712-I ITU-T J.163 (12/2007) 2007 International Telecommunication Union ITU www.itu.int 4 en ITU-T Recommendation J.163 addresses requirements for a client device to obtain access to network resources. In particular, it specifies a comprehensive mechanism for a client device to request a specific quality of service from the DOCSIS network. Extensive examples illustrate the use of this Recommendation. The scope of this Recommendation is to define the QoS architecture for the "Access" portion of the IPCablecom network, provided to requesting applications on a per-flow basis. The access portion of the network is defined to be between the multimedia terminal adapter (MTA) and the cable modem termination system (CMTS), including the DOCSIS network. The method of QoS allocation over the backbone is unspecified in this Recommendation. Interface to the managed IP backbone and issues related to IP multicast are not within the scope of this Recommendation. This Recommendation also recognizes that per-flow reservations may be required within the customer premises, and the protocol developed addresses this potential need. Published 2007 International Telecommunication Union ITU www.itu.int J Suppl. 1 (11/1998) J Suppl. 2 (11/1998) J Suppl. 3 (11/1998) J Suppl. 5 (09/1999) J Suppl. 6 (09/2016) " ---- With `bibdata: true` option XML output wrapped with `bibdata` element and `ext` element added. [source,ruby] ---- item.to_xml bibdata: true => " 2019-06-07 ... recommendation T ITU-T Study Group 9 SG " ---- === Get code, and year [source,ruby] ---- RelatonItu::ItuBibliography.get("ITU-T L.163", "2018", {}) fetching ITU-T L.163... => # {"id"=>"ITU-T L.163 (11/2018)", ... bib_hash = RelatonItu::HashConverter.hash_to_bib hash => {:id=>"ITU-T L.163 (11/2018)", ... RelatonItu::ItuBibliographicItem.new bib_hash => #