From 89d5ace0572e2ec228ef9ba6702e590309f1f086 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 16 Aug 2008 11:09:06 -0400 Subject: html segments, links to concordance file only if made, fix --- lib/sisu/v0/html.rb | 2 +- lib/sisu/v0/html_format.rb | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/lib/sisu/v0/html.rb b/lib/sisu/v0/html.rb index e57b5add..28098f6c 100644 --- a/lib/sisu/v0/html.rb +++ b/lib/sisu/v0/html.rb @@ -359,7 +359,7 @@ WOK else format_toc.lev1 end toc[:seg_mini]=if para =~/^#{Mx[:lv_o]}\d:meta#{Mx[:lv_c]}\s*Document Information/ - format_toc.mini_lev0 + format_toc.mini_tail else format_toc.mini_lev1 end title=if para =~/(#{Mx[:id_o]}~0;(?:\w|[0-6]:)\d+;\w\d+#{Mx[:id_c]}#{Mx[:id_o]}#@dp:#@dp#{Mx[:id_c]})$/ diff --git a/lib/sisu/v0/html_format.rb b/lib/sisu/v0/html_format.rb index 1ee409ab..0bfe580e 100644 --- a/lib/sisu/v0/html_format.rb +++ b/lib/sisu/v0/html_format.rb @@ -764,6 +764,7 @@ WOK scroll=seg='' wgt=Widget.new(@md) #dir=SiSU_Env::Info_env.new(@md.fns) + x=if @md.concord_make %{ @@ -776,6 +777,19 @@ WOK #{wgt.search} #{wgt.home}
} + else + %{ + + + #{wgt.seg(@vz.nav_txt_toc_link)} + #{wgt.scroll(@vz.nav_txt_doc_link)} + #{wgt.pdf}#{wgt.odf} +
+ #{wgt.manifest} + #{wgt.search} + #{wgt.home} +
} + end end def toc_pre_next3 #used with seg_doc_types in seg_nav_band #with pdf & other doc types #knxjs %{ @@ -1510,6 +1524,27 @@ WOK def mini_lev0 #docinfo lev('h0','minitoc') end + def mini_tail +# +# Document Information (metadata) +# + x=if @md.concord_make + %{ +

+ Concordance (wordlist) +

+

+ Manifest (alternative outputs) +

+} + else + %{ +

+ Manifest (alternative outputs) +

+} + end + end end end __END__ -- cgit v1.2.3