From f88fb6e87d39a5cd0df8fb1e8195b96d898fea58 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 12 Mar 2013 20:18:13 -0400 Subject: v4: manifest, link to harvest authors & topics if available, else cosmeitc --- data/doc/sisu/CHANGELOG_v4 | 2 ++ lib/sisu/v4/manifest.rb | 21 ++++++++++++++------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/data/doc/sisu/CHANGELOG_v4 b/data/doc/sisu/CHANGELOG_v4 index ad01d58f..0da67946 100644 --- a/data/doc/sisu/CHANGELOG_v4 +++ b/data/doc/sisu/CHANGELOG_v4 @@ -32,6 +32,8 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_4.0.13.orig.tar.xz * v4: terminal reporting, cosmetic +* v4: manifest, link to harvest authors & topics if available, else cosmeitc + %% 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/manifest.rb b/lib/sisu/v4/manifest.rb index 80373663..c8103a0a 100644 --- a/lib/sisu/v4/manifest.rb +++ b/lib/sisu/v4/manifest.rb @@ -113,11 +113,9 @@ module SiSU_Manifest @fnb=md.fnb @base_url="#{@env.url.root}/#{@fnb}" @o_str=SiSU_Env::FileOp.new(md).output_dir_structure - @image_path=if @o_str.dump_or_redirect? - './image' - else - %{#{@f.path_rel_links.html_scroll_2}_sisu/image_sys} - end + @image_path=(@o_str.dump_or_redirect?) \ + ? './image' + : %{#{@f.path_rel_links.html_scroll_2}_sisu/image_sys} @base_path=@f.output_path.manifest.dir @@dg ||=SiSU_Env::InfoEnv.new.digest.type @dg=@@dg @@ -825,10 +823,18 @@ WOK
WOK end + harvest=(FileTest.file?("#{@f.output_path.manifest.dir}/authors.html") \ + && FileTest.file?("#{@f.output_path.manifest.dir}/topics.html")) \ + ? %{

other document manifests: [authors] [topics]

} + : '' + manifest_title=%{

#{@translate.manifest_description}

#{harvest}} @manifest[:html] <<<#{@translate.manifest_description} -

#{@md.title.full}

+ +

#{@md.title.full}

#{@md.author}

+ WOK published_versions -- cgit v1.2.3