lib/isodoc/iho/base_convert.rb in metanorma-iho-0.3.13 vs lib/isodoc/iho/base_convert.rb in metanorma-iho-0.4.0
- old
+ new
@@ -68,10 +68,10 @@
def extract_edition(bib)
bib&.at(ns("./edition"))&.text
end
def extract_uri(bib)
- bib.at(ns("./uri"))
+ bib.at(ns("./uri[@type = 'src']")) || bib.at(ns("./uri"))
end
def omit_docid_prefix(prefix)
return true if prefix == "IHO"