Method: IsoDoc::PresentationXMLConvert#extract_indexterms

Defined in:
lib/isodoc/presentation_function/index.rb

#extract_indexterms(terms) ⇒ Object

attributes are decoded into UTF-8, elements in extract_indexsee are still in entities



149
150
151
152
153
154
155
156
157
158
# File 'lib/isodoc/presentation_function/index.rb', line 149

def extract_indexterms(terms)
  terms.each_with_object({}) do |t, v|
    term, term2, term3 = extract_indexterms_init(t)
    to = t["to"] ? "to='#{t['to']}' " : ""
    index2bookmark(t)
    term_hash_init(v, term, term2, term3, :xref)
    v[term][term2][term3][:xref] << "<xref target='#{t['id']}' " \
                                    "#{to}pagenumber='true'/>"
  end
end