diff options
Diffstat (limited to 'lib/sisu/current/ao_numbering.rb')
-rw-r--r-- | lib/sisu/current/ao_numbering.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/sisu/current/ao_numbering.rb b/lib/sisu/current/ao_numbering.rb index 9df1479a..31986a86 100644 --- a/lib/sisu/current/ao_numbering.rb +++ b/lib/sisu/current/ao_numbering.rb @@ -58,8 +58,8 @@ module SiSU_AO_Numbering class Numbering attr_accessor :obj,:osp,:ocn,:lv,:name,:index,:comment @@segments_count=0 - def initialize(md,data) - @md,@data=md,data + def initialize(md,data,fnx,process) + @md,@data,@fnx,@process=md,data,fnx,process @obj=@type=@ocn=@lv=@name=@index=@comment=nil @chosen_seg_names=[] end @@ -104,7 +104,9 @@ module SiSU_AO_Numbering data=ocn(data.compact) #watch data=xml(data.compact) data=minor_numbering(data.compact) - data,tags_map,ocn_html_seg_map=name_para_seg_filename(data) + if @process==:complete + data,tags_map,ocn_html_seg_map=name_para_seg_filename(data) + end data=set_heading_top(data) unless @md.set_heading_top [data,tags_map,ocn_html_seg_map] ensure @@ -277,7 +279,7 @@ module SiSU_AO_Numbering @tuned_file=@tuned_file.flatten end def ocn(data) #and auto segment numbering increment - @tuned_file=SiSU_AO_DocumentStructureExtract::OCN.new(@md,data).ocn + @tuned_file=SiSU_AO_DocumentStructureExtract::OCN.new(@md,data,@fnx,@process).ocn @tuned_file end def xml(data) |