Skip to content

Commit

Permalink
move cover image processing to standoc: metanorma/metanorma-jis#227
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Oct 25, 2024
1 parent a529376 commit e377a2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
16 changes: 0 additions & 16 deletions lib/metanorma/itu/cleanup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,6 @@ def biblio_reorder(xmldoc)
biblio_reorder1(r)
end
end

def bibdata_cleanup(xmldoc)
super
coverpage_images(xmldoc)
end

def coverpage_images(xmldoc)
%w(coverpage-image).each do |n|
xmldoc.xpath("//bibdata/ext/#{n}").each do |x|
ins = add_misc_container(xmldoc)
ins << "<presentation-metadata><name>#{n}</name>" \
"<value>#{x.remove.children.to_xml}</value>" \
"</presentation-metadata>"
end
end
end
end
end
end
18 changes: 1 addition & 17 deletions lib/metanorma/itu/front.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,24 +213,8 @@ def personal_role(node, contrib, suffix)
end
end

def metadata_coverpage_images(node, xml)
%w(coverpage-image).each do |n|
if a = node.attr(n)
xml.send n do |c|
a.split(",").each do |x|
c.image src: x
end
end
end
end
end

def metadata_ext(node, xml)
metadata_doctype(node, xml)
metadata_subdoctype(node, xml)
metadata_flavor(node, xml)
metadata_committee(node, xml)
metadata_ics(node, xml)
super
metadata_recommendationstatus(node, xml)
metadata_ip_notice(node, xml)
metadata_techreport(node, xml)
Expand Down

0 comments on commit e377a2b

Please sign in to comment.