lib/relaton_iana/parser.rb in relaton-iana-1.19.0 vs lib/relaton_iana/parser.rb in relaton-iana-1.19.1

- old
+ new

@@ -59,11 +59,11 @@ # @return [Array<RelatonBib::TypedUri>] link # def parse_link if @rootdoc then @rootdoc.link else - uri = URI.join @xml.namespace.href.sub(/(?<=[^\/])$/, "/"), @xml[:id] - [RelatonBib::TypedUri.new(type: "src", content: uri.to_s)] + uri = URI.join "https://www.iana.org/assignments/", @xml[:id] + [RelatonBib::TypedUri.new(type: "self", content: uri.to_s)] end end # # Parse docidentifier