Class: Isobib::IsoBibliography
- Inherits:
-
Object
- Object
- Isobib::IsoBibliography
- Defined in:
- lib/isobib/iso_bibliography.rb
Overview
Class methods for search ISO standards.
Class Method Summary collapse
-
.get(code, year, opts) ⇒ String
Relaton XML serialisation of reference.
- .search(text) ⇒ Isobib::HitPages
- .search_and_fetch(text) ⇒ Array<IsoBibliographicItem>
Class Method Details
.get(code, year, opts) ⇒ String
Returns Relaton XML serialisation of reference.
27 28 29 30 31 32 33 34 35 |
# File 'lib/isobib/iso_bibliography.rb', line 27 def get(code, year, opts) return iev.to_xml if code.casecmp("IEV") == 0 code += "-1" if opts[:all_parts] ret = isobib_get1(code, year, opts) return nil if ret.nil? ret.to_most_recent_reference if !year ret.to_all_parts if opts[:all_parts] ret.to_xml end |
.search(text) ⇒ Isobib::HitPages
13 14 15 |
# File 'lib/isobib/iso_bibliography.rb', line 13 def search(text) HitPages.new text end |