added the config value to the template data
authorjohn <john>
Wed, 27 Mar 2002 15:07:09 +0000 (15:07 +0000)
committerjohn <john>
Wed, 27 Mar 2002 15:07:09 +0000 (15:07 +0000)
telling the pdf generate where to get local
files from
(assumes all images are stored locally indefinitely, perhaps
unwarranted.....)

source/mir/misc/HTMLTemplateProcessor.java

index cf5e0ae..fcbcad5 100755 (executable)
@@ -30,6 +30,7 @@ public final class HTMLTemplateProcessor {
   private static String               audioHost;
   private static String               videoHost;
   private static String               imageHost;
+  private static String               imagePath;
   private static String               openAction;
   protected static String producerDocRoot =
                MirConfig.getProp("Producer.DocRoot");
@@ -64,6 +65,7 @@ public final class HTMLTemplateProcessor {
     videoHost = MirConfig.getProp("Producer.VideoHost");
     audioHost = MirConfig.getProp("Producer.AudioHost");
     imageHost = MirConfig.getProp("Producer.Image.Host");
+    imagePath = MirConfig.getProp("Producer.Image.Path");
     producerDocRoot = MirConfig.getProp("Producer.DocRoot");
     producerStorageRoot = MirConfig.getProp("Producer.StorageRoot");
   }
@@ -238,6 +240,7 @@ public final class HTMLTemplateProcessor {
                configHash.put("videoHost", new SimpleScalar(videoHost));
                configHash.put("audioHost", new SimpleScalar(audioHost));
                configHash.put("imageHost", new SimpleScalar(imageHost));
+               configHash.put("imagePath", new SimpleScalar(imagePath));
                configHash.put("mirVersion", new SimpleScalar(MirConfig.getProp("Mir.Version")));
                // this conform to updated freemarker syntax
                configHash.put("compressWhitespace", new freemarker.template.utility.CompressWhitespace() );