lib/asciidoctor/gb/converter.rb in metanorma-gb-1.2.4 vs lib/asciidoctor/gb/converter.rb in metanorma-gb-1.3.0
- old
+ new
@@ -182,15 +182,10 @@
end
def fetch_ref(xml, code, year, **opts)
code = "CN(#{code})" if !/^CN\(/.match(code) &&
/^#{GBCODE}[^A-Za-z]/.match(code)
- hit = @bibdb&.fetch(code, year, opts)
- return nil if hit.nil?
- xml.parent.add_child(Asciidoctor::Standoc::Utils::smart_render_xml(hit))
- xml
- rescue Algolia::AlgoliaProtocolError
- nil # Render reference without an Internet connection.
+ super
end
def cleanup(xmldoc)
lang = xmldoc.at("//language")&.text
@agencyclass = GbAgencies::Agencies.new(lang, {}, "")