Method: RelatonGb::GbBibliographicItem#to_xml
- Defined in:
- lib/relaton_gb/gb_bibliographic_item.rb
#to_xml(**opts) ⇒ String
Returns XML.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/relaton_gb/gb_bibliographic_item.rb', line 58 def to_xml(**opts) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity super(**opts) do |b| if opts[:bibdata] && has_ext? ext = b.ext do doctype&.to_xml b b.horizontal horizontal unless horizontal.nil? # b.docsubtype docsubtype if docsubtype committee&.to_xml b ics.each { |i| i.to_xml b } structuredidentifier&.to_xml b b.stagename stagename if stagename render_gbxml(b) end ext["schema-version"] = ext_schema unless opts[:embedded] end end end |