aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2009-07-23 12:06:21 -0400
committerRalph Amissah <ralph@amissah.com>2009-07-23 12:06:31 -0400
commit0a0b3e17afda1aca70189729da71c6293e2c2010 (patch)
tree8c6cdf42a4a0451e9b6b19a89ff7781e8bb6ea41 /lib
parenthtml scroll left margin (diff)
manifest, include book index if available
(after all, is usually more interesting than concordance file)
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v1/manifest.rb12
-rw-r--r--lib/sisu/v1/sysenv.rb1
2 files changed, 9 insertions, 4 deletions
diff --git a/lib/sisu/v1/manifest.rb b/lib/sisu/v1/manifest.rb
index 73f3bd18..0d289b56 100644
--- a/lib/sisu/v1/manifest.rb
+++ b/lib/sisu/v1/manifest.rb
@@ -189,6 +189,14 @@ module SiSU_Manifest
id,file='HTML, full length document',@md.fn[:doc]
summarize(id,file,img)
end
+ if FileTest.file?("#@base_path/#{@md.fn[:book_index]}")==true
+ id,file='HTML, index',@md.fn[:book_index]
+ summarize(id,file)
+ end
+ if FileTest.file?("#@base_path/#{@md.fn[:concordance]}")==true
+ id,file='HTML, concordance file',@md.fn[:concordance]
+ summarize(id,file)
+ end
if FileTest.file?("#@base_path/#{@md.fn[:pdf_p_letter]}")==true
img='<img border="0" height="18" width="15" src="../_sisu/image_sys/b_pdf.png" alt="PDF portrait" /> '
id,file="PDF, U.S. letter size, portrait/vertical document (recommended for printing)",@md.fn[:pdf_p_letter]
@@ -265,10 +273,6 @@ module SiSU_Manifest
end
summarize(id,file)
end
- if FileTest.file?("#@base_path/#{@md.fn[:concordance]}")==true
- id,file='Concordance file (HTML - wordmap, alphabetical wordlist)',@md.fn[:concordance]
- summarize(id,file)
- end
if FileTest.file?("#@base_path/#{@md.fns}.tex")==true
id,file='LaTeX (portrait)',"#{@md.fns}.tex"
summarize(id,file)
diff --git a/lib/sisu/v1/sysenv.rb b/lib/sisu/v1/sysenv.rb
index 17f0b6be..c3c2a0ee 100644
--- a/lib/sisu/v1/sysenv.rb
+++ b/lib/sisu/v1/sysenv.rb
@@ -483,6 +483,7 @@ module SiSU_Env
def lang(code)
@fn={
:html => filename(code,'','.html'),
+ :book_index => filename(code,'idx','.html'),
:concordance => filename(code,'concordance','.html'),
:sax => filename(code,'sax','.xml'),
:dom => filename(code,'dom','.xml'),