diff --git a/lib/epubmaker/epubcommon.rb b/lib/epubmaker/epubcommon.rb index 615c21a3f..d0e66ff8b 100644 --- a/lib/epubmaker/epubcommon.rb +++ b/lib/epubmaker/epubcommon.rb @@ -236,7 +236,7 @@ def colophon end @body << %Q[ \n] - @body << %w[aut csl trl dsr ill edt pbl prt pht].map{ |role| + @body << @producer.params["colophon_order"].map{ |role| if @producer.params[role] %Q[ \n] else diff --git a/lib/epubmaker/producer.rb b/lib/epubmaker/producer.rb index 76aebf3bc..11371bde3 100644 --- a/lib/epubmaker/producer.rb +++ b/lib/epubmaker/producer.rb @@ -218,6 +218,7 @@ def complement "originaltitlefile" => nil, "profile" => nil, "colophon" => nil, + "colophon_order" => %w[aut csl trl dsr ill edt pbl prt pht], "epubmaker" => { "flattoc" => nil, "flattocindent" => true,
#{@producer.res.v(role)}#{CGI.escapeHTML(@producer.params[role].join(", "))}