From 61d3ba34b3105de603f272334d1d7b245bf7e01e Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 26 Jul 2010 18:27:00 -0400 Subject: manifest, minitoc configurable (true/false) --- conf/sisu/v2/sisurc.yml | 2 ++ lib/sisu/v2/defaults.rb | 30 +++++++++++++----------------- lib/sisu/v2/manifest.rb | 25 ++++++++++++++++++++++--- lib/sisu/v2/sysenv.rb | 10 ++++++++-- 4 files changed, 45 insertions(+), 22 deletions(-) diff --git a/conf/sisu/v2/sisurc.yml b/conf/sisu/v2/sisurc.yml index 8b1c71e6..cb57891d 100644 --- a/conf/sisu/v2/sisurc.yml +++ b/conf/sisu/v2/sisurc.yml @@ -124,3 +124,5 @@ program_set: # hyperestraier: # flag: true # action: http://search.sisudoc.org/cgi-bin/estseek.cgi? +#manifest: +# minitoc: true diff --git a/lib/sisu/v2/defaults.rb b/lib/sisu/v2/defaults.rb index 020563e3..f53ca7ce 100644 --- a/lib/sisu/v2/defaults.rb +++ b/lib/sisu/v2/defaults.rb @@ -337,10 +337,10 @@ module SiSU_Viz #% text #changed from txt to avoid naming conflicts #FOLLOW def txt_generator %{ - } + } end def txt_generator_comment - %{ } + %{ } end def txt_hp ' SiSU' @@ -359,29 +359,29 @@ module SiSU_Viz URI.parse(uri) end def url_sisu - 'http://www.sisudoc.org/sisu' + 'http://www.sisudoc.org/' end def url_sisudoc 'http://www.sisudoc.org' end def url_footer_signature - 'http://www.sisudoc.org/sisu' + 'http://www.sisudoc.org/' end def url_root '/sisu' #watch end def url_root_http - 'http://www.sisudoc.org/sisu' #watch + 'http://www.sisudoc.org/' #watch end def url_home - 'http://www.sisudoc.org/sisu' # used in pdf header + 'http://www.sisudoc.org/' # used in pdf header end def url_site #used as stub... where there are subdirectories and is different from home url_home - #'http://www.sisudoc.org/sisu' # used in pdf header + #'http://www.sisudoc.org/' # used in pdf header end def url_txt - 'www.sisudoc.org/sisu' + 'www.sisudoc.org/' end def url_path_image_base #used for html image display '../_sisu/image' @@ -1560,7 +1560,7 @@ WOK is software for document structuring, publishing and search,
- www.sisudoc.org/sisu + www.sisudoc.org/ and @@ -1621,16 +1621,13 @@ WOK [not to mention flexibility & choice] use of and adherence to open standards (where practical and fair) and it is software libré.
Get With the Future -
+ Way Better!

WOK end - def widget_wayBetter - widget_way_better - end #% credits def credits_itl_cover_band %{ @@ -1657,7 +1654,6 @@ WOK
#{widget_sisu} - #{widget_way_better}
} end def credits_sisu @@ -1964,13 +1960,13 @@ outputs include: plaintext, html, XHTML, XML, ODF (OpenDocument), EPUB, LaTeX, P SiSU Short Description

-SiSU is a comprehensive future-proofing electronic document management system. Built-in search capabilities allow you to search across multiple documents and highlight matches in an easy-to-follow format. Paragraph numbering system allows you to cite your electronic documents in a consistent manner across multiple file formats. Multiple format outputs allow you to display your documents in plain text, PDF (portrait and horizontal), OpenDocument format, HTML, or e-book reading format (EPUB). Word mapping allows you to easily create word indexes for your documents. Future-proofing flexibility allows you to quickly adapt your documents to newer output formats as needed. All these features are achieved with little or no additional work on your documents - by marking up the documents with a super simplistic markup language, leaving the SiSU engine to handle the heavy-lifting processing. +SiSU is a comprehensive future-proofing electronic document management system. Built-in search capabilities allow you to search across multiple documents and highlight matches in an easy-to-follow format. Paragraph numbering system allows you to cite your electronic documents in a consistent manner across multiple file formats. Multiple format outputs allow you to display your documents in plain text, PDF (portrait and horizontal), OpenDocument format, HTML, or e-book reading format (EPUB). Word mapping allows you to easily create word indexes for your documents. Future-proofing flexibility allows you to quickly adapt your documents to newer output formats as needed. All these and many other features are achieved with little or no additional work on your documents - by marking up the documents with a super simplistic markup language, leaving the SiSU engine to handle the heavy-lifting processing.

-Potential users of SiSU include individual authors who want to publish their books or articles electronically to reach a broad audience or any organizations with a medium or large set of electronic documents to centrally manage, especially governmental organizations which may prefer to keep their documents in easily accessible yet non-proprietary formats. +Potential users of SiSU include individual authors who want to publish their books or articles electronically to reach a broad audience, web publishers who want to provide multiple channels of access to their electronic documents, or any organizations which centrally manage a medium or large set of electronic documents, especially governmental organizations which may prefer to keep their documents in easily accessible yet non-proprietary formats.

-SiSU is an Open Source project led by Ralph Amissah (ralph.amissah@gmail.com) and can be contacted at sisu@lists.sisudoc.org. SiSU is licensed under the GNU General Public License. +SiSU is an Open Source project initiated and led by Ralph Amissah (ralph.amissah@gmail.com) and can be contacted at sisu@lists.sisudoc.org. SiSU is licensed under the GNU General Public License.

For less markup than the most elementary HTML you can have more. diff --git a/lib/sisu/v2/manifest.rb b/lib/sisu/v2/manifest.rb index 7be18b19..aca64e40 100644 --- a/lib/sisu/v2/manifest.rb +++ b/lib/sisu/v2/manifest.rb @@ -589,14 +589,23 @@ module SiSU_Manifest banner_table=if vz.banner_home_button_only !~ /http:\/\/www\.jus\.uio\.no\/sisu/ \ and vz.banner_home_button_only !~ /sisu\.home\.png/ < -#{vz.banner_band}

#{@brace_url.xml_open}#{@base_url}/#{file}#{@brace_url.xml_close}

#{@env.widget_static.search_form}SiSU --> + + + +
#{vz.banner_band}

#{@brace_url.xml_open}#{@base_url}/#{file}#{@brace_url.xml_close}

#{@env.widget_static.search_form}
WOK +#< +##{vz.banner_band}

#{@brace_url.xml_open}#{@base_url}/#{file}#{@brace_url.xml_close}

#{@env.widget_static.search_form}SiSU --> +# +#WOK else < -SiSU -->

#{@brace_url.xml_open}#{@base_url}/#{file}#{@brace_url.xml_close}

#{@env.widget_static.search_form} +SiSU --> +

#{@brace_url.xml_open}#{@base_url}/#{file}#{@brace_url.xml_close}

+#{@env.widget_static.search_form} WOK end @@ -616,10 +625,20 @@ SiSU manifest: #{@md.title.full} #{banner_table} +WOK + if @env.manifest_minitoc? + @manifest[:html] <<< #{minitoc.to_s}
+WOK + else + @manifest[:html] <<< +WOK + end + @manifest[:html] <<<#{@translate.manifest_description}

#{@md.title.full}

#{@md.author}

diff --git a/lib/sisu/v2/sysenv.rb b/lib/sisu/v2/sysenv.rb index 8f330343..f45ccdee 100644 --- a/lib/sisu/v2/sysenv.rb +++ b/lib/sisu/v2/sysenv.rb @@ -935,6 +935,13 @@ module SiSU_Env def defaults #multiple default directories @default_dir ||=@sys.default_dir #DEFAULT_DIR end + def manifest_minitoc? + flag=if defined? @rc['manifest']['minitoc'] \ + and not @rc['manifest']['minitoc'].nil? + @rc['manifest']['minitoc'] + else false + end + end def widget #needs (md) #move @rc=SiSU_Env::Get_init.instance.yamlrc @ad=SiSU_Env::Get_init.instance.ads @@ -955,8 +962,7 @@ module SiSU_Env and @rc['promo'].length > 0 @flag[:rc]=true true - else - false + else false end @flag end -- cgit v1.2.3