From 280d46e9c343f802d9cec108d5229ec5ec120b2c Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 10 Mar 2013 14:52:22 -0400 Subject: v4: html_format, manifest red arrow, next (segment), (broken) link fix, to toc --- data/doc/sisu/CHANGELOG_v4 | 2 ++ lib/sisu/v4/html_format.rb | 15 ++++++++++++--- lib/sisu/v4/manifest.rb | 7 +++---- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/data/doc/sisu/CHANGELOG_v4 b/data/doc/sisu/CHANGELOG_v4 index 9e844a80..73c64a7f 100644 --- a/data/doc/sisu/CHANGELOG_v4 +++ b/data/doc/sisu/CHANGELOG_v4 @@ -28,6 +28,8 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_4.0.13.orig.tar.xz sisu_4.0.13.orig.tar.xz sisu_4.0.13-1.dsc +* v4: html_format, manifest red arrow, next (segment), (broken) link fix, to toc + %% 4.0.12.orig.tar.xz (2013-03-08:09/5) http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_4.0.12 http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/debian/sisu_4.0.12-1 diff --git a/lib/sisu/v4/html_format.rb b/lib/sisu/v4/html_format.rb index d2c12154..1bdd7182 100644 --- a/lib/sisu/v4/html_format.rb +++ b/lib/sisu/v4/html_format.rb @@ -297,6 +297,7 @@ module SiSU_HTML_Format @md=md @o_str ||=SiSU_Env::ProcessingSettings.new(md).output_dir_structure @make=SiSU_Env::ProcessingSettings.new(@md) + @file=SiSU_Env::FileOp.new(@md) end def scroll_head_navigation_band if @make.build.html_top_band? @@ -338,9 +339,17 @@ WOK end end def seg_head_navigation_band(page=:seg) - firstseg=%{ - #{png_nav.nxt} - } if @md.firstseg =~/\S+/ + if page==:manifest + nxt=(@file.output_dir_structure.by_language_code? \ + || @file.output_dir_structure.by_filetype?) \ + ? "../html/#{@md.fnb}/toc#{@md.lang_code_insert}#{Sfx[:html]}" + : "toc#{@md.lang_code_insert}#{Sfx[:html]}" + firstseg=%{ + #{png_nav.nxt}} + elsif @md.firstseg =~/\S+/ + firstseg=%{ + #{png_nav.nxt}} + end %{" - else '' - end + search_form=(make.build.search_form?) \ + ? "" + : '' format_head_toc=SiSU_HTML_Format::HeadToc.new(@md) @manifest[:html] <<<
#{button_home(page)} diff --git a/lib/sisu/v4/manifest.rb b/lib/sisu/v4/manifest.rb index cb34a3d3..80373663 100644 --- a/lib/sisu/v4/manifest.rb +++ b/lib/sisu/v4/manifest.rb @@ -785,10 +785,9 @@ WOK minitoc=SiSU_HTML_MiniToc::TocMini.new(@md,data).songsheet.join("\n") id,file='','' vz=SiSU_Viz::Defaults.new - search_form=if make.build.search_form? - "#{@env.widget_static.search_form}#{@env.widget_static.search_form}