From d5841fafda125436e9182192af4402dab6ce0938 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 16 Dec 2008 00:32:09 -0500 Subject: manpage, help include: sisu --harvest *.ss[tm] --- lib/sisu/v0/help.rb | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) (limited to 'lib') diff --git a/lib/sisu/v0/help.rb b/lib/sisu/v0/help.rb index 67263b68..c3fbf399 100644 --- a/lib/sisu/v0/help.rb +++ b/lib/sisu/v0/help.rb @@ -246,23 +246,23 @@ WOK def commands print < Date: Tue, 16 Dec 2008 00:34:26 -0500 Subject: minor touches --- lib/sisu/v0/db_create.rb | 2 ++ lib/sisu/v0/defaults.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/sisu/v0/db_create.rb b/lib/sisu/v0/db_create.rb index df1e91df..627019be 100644 --- a/lib/sisu/v0/db_create.rb +++ b/lib/sisu/v0/db_create.rb @@ -327,6 +327,8 @@ module SiSU_DB_create IS 'document subtitle'; COMMENT ON COLUMN metadata.creator IS 'metadata creator (dublin core element 2)'; + COMMENT ON COLUMN metadata.author + IS 'metadata author (dublin core element 2)'; COMMENT ON COLUMN metadata.illustrator IS 'metadata illustrator'; COMMENT ON COLUMN metadata.translator diff --git a/lib/sisu/v0/defaults.rb b/lib/sisu/v0/defaults.rb index 07958e9b..6ccd0ef9 100644 --- a/lib/sisu/v0/defaults.rb +++ b/lib/sisu/v0/defaults.rb @@ -1690,7 +1690,7 @@ ODF (OpenDocument), LaTeX, PDF, SQL (PostgreSQL and SQLite), and for search - + Date: Tue, 16 Dec 2008 00:36:16 -0500 Subject: i18n, fix related to variable renaming likely bug introduced: fb1e1bf0cb8a2202eda1ab254b01b997df60a6db (with comment: metadata, variable renaming (requires testing)) --- lib/sisu/v0/i18n.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/sisu/v0/i18n.rb b/lib/sisu/v0/i18n.rb index 0b53e78d..1c983519 100644 --- a/lib/sisu/v0/i18n.rb +++ b/lib/sisu/v0/i18n.rb @@ -343,7 +343,7 @@ module SiSU_Translate def author 'Author' end - def creator #dc + def author #dc 'Creator' end def contributor #dc @@ -554,7 +554,7 @@ module SiSU_Translate def author 'Auteur' end - def creator #dc + def author #dc 'Auteur' end def contributor #dc @@ -762,7 +762,7 @@ module SiSU_Translate def subtitle 'Untertitel' end - def creator + def author 'Autor' end def contributor #dc @@ -970,7 +970,7 @@ module SiSU_Translate def subtitle 'Subtítulo' end - def creator #dc + def author #dc 'Creador' end def contributor #dc @@ -1178,7 +1178,7 @@ module SiSU_Translate def subtitle 'Sottotitolo' end - def creator #dc + def author #dc 'Autore' end def contributor #dc @@ -1386,7 +1386,7 @@ module SiSU_Translate def subtitle 'Alaotsikko' end - def creator #dc + def author #dc 'tekijä' end def contributor #dc -- cgit v1.2.3 From ea4fafffc7da800b846944113fd45ad330decf2b Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 16 Dec 2008 00:38:40 -0500 Subject: harvest_authors, sort authors works --- lib/sisu/v0/harvest_authors.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/sisu/v0/harvest_authors.rb b/lib/sisu/v0/harvest_authors.rb index 9678e4f7..a9a2be03 100644 --- a/lib/sisu/v0/harvest_authors.rb +++ b/lib/sisu/v0/harvest_authors.rb @@ -293,11 +293,17 @@ WOK @output[:html_mnt] << x end @output[:html] << x + works=[] a[1][:md].each do |x| - if @output[:html_mnt].class == File - @output[:html_mnt] << %{

[src]  #{x[:date]} #{x[:title]}, #{x[:author][:authors_s]} -- [#{x[:file]}.sst]

} + work=[ "#{x[:date]} #{x[:title]}", %{

#{x[:date]} #{x[:title]}, #{x[:author][:authors_s]}

} ] + works<<=if @output[:html_mnt].class == File + work.concat([%{

[src]  #{x[:date]} #{x[:title]}, #{x[:author][:authors_s]} -- [#{x[:file]}.sst]

}]) + else work end - @output[:html] << %{

#{x[:date]} #{x[:title]}, #{x[:author][:authors_s]}

} + end + works.sort_by {|x| x[0]}.each do |x| + @output[:html] << x[1] + @output[:html_mnt] << x[2] if @output[:html_mnt].class == File end end end -- cgit v1.2.3