Skip to content

Commit 42d7f44

Browse files
committed
https://github.com/metanorma/metanorma-itu/issues/492
1 parent 9b22677 commit 42d7f44

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/isodoc/itu/ref.rb

-15
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,6 @@ def pref_ref_code(bibitem)
5555
ret
5656
end
5757

58-
def titlecase(str)
59-
str.gsub(/ |_|-/, " ").split(/ /).map(&:capitalize).join(" ")
60-
end
61-
62-
def doctype_title(id)
63-
type = id.parent&.at(ns("./ext/doctype"))&.text || "recommendation"
64-
if type == "recommendation" &&
65-
/^(?<prefix>ITU-[A-Z][  ][A-Z])[  .-]Sup[a-z]*\.[  ]?(?<num>\d+)$/ =~ id.text
66-
"#{prefix}-series Recommendations – Supplement #{num}"
67-
else
68-
d = docid_prefix(id["type"], id.text.sub(/^\[/, "").sub(/\]$/, ""))
69-
"#{titlecase(type)} #{d}"
70-
end
71-
end
72-
7358
def unbracket(ident)
7459
if ident.respond_to?(:size)
7560
ident.map { |x| unbracket1(x) }.join("&#xA0;| ")

0 commit comments

Comments
 (0)