73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# File 'lib/isodoc/presentation_function/index.rb', line 73
def index_entries2(words, index, secondary)
ret = index_entries_head(words[secondary],
index.dig(words[secondary], nil),
index_entries_opt)
words3 = index[words[secondary]]&.keys&.compact
&.each_with_object({}) { |w, v| v[w.downcase] = w }
unless words3.empty?
ret += "<ul>"
words3.keys.localize(@lang.to_sym).sort.to_a.each do |w|
ret += (index_entries_head(words3[w],
index[words[secondary]][words3[w]],
index_entries_opt) + "</li>")
end
ret += "</ul>"
end
"#{ret}</li>"
end
|