Skip to content

Commit

Permalink
relaton-render update
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Mar 8, 2024
1 parent 76eb2a4 commit 82732dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/isodoc/ietf/section.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def set_pis(node, doc)
def rfc_attributes(docxml)
# t = Time.now.getutc
obs = xpath_comma(docxml
.xpath(ns("//bibdata/relation[@type = 'obsoletes']/bibitem/docidentifier")))
.xpath(ns("//bibdata/relation[@type = 'obsoletes']/bibitem/docidentifier[not(@scope)]")))
upd = xpath_comma(docxml
.xpath(ns("//bibdata/relation[@type = 'updates']/bibitem/docidentifier")))
.xpath(ns("//bibdata/relation[@type = 'updates']/bibitem/docidentifier[not(@scope)]")))
{
docName: @meta.get[:doctype] == "Internet Draft" ? @meta.get[:docnumber] : nil,
number: @meta.get[:doctype].casecmp?("rfc") ? @meta.get[:docnumber] : nil,
Expand Down
2 changes: 1 addition & 1 deletion lib/metanorma/ietf/validate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def submission_validate(doc)
def image_validate(doc)
doc.xpath("//image").each do |i|
i["mimetype"] == "image/svg+xml" and next
@log.add("MIME", i, "image #{i['src'][0, 40]} is not SVG!",
@log.add("Images", i, "image #{i['src'][0, 40]} is not SVG!",
severity: 1)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/relaton/render/fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def nameformat(names)
end

# do not format months
def dateformat(date, _hash)
def dateformat(date, _hash, _type)
date.nil? and return nil
date_range(date)
end
Expand Down

0 comments on commit 82732dc

Please sign in to comment.