c&d: po4a (& git) revisited, revisit
[software/sisu] / lib / sisu / current / ao_numbering.rb
index 9df1479a56312f53849f107d5f8cac714aa66c57..31986a86a330d030f996bb0dcb9d056d2baf6fae 100644 (file)
@@ -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)