language fix
[mir.git] / source / mircoders / producer / ProducerNavigation.java
index 841e26e..2d8d1a8 100755 (executable)
@@ -29,7 +29,7 @@ public class ProducerNavigation extends Producer {
   public void handle(PrintWriter htmlout, EntityUsers user, boolean forced, boolean sync)
     throws mir.module.ModuleException, mir.storage.StorageObjectException {
 
-    printHTML(htmlout, "Producer.Navigation: started");
+        printHTML(htmlout, "Producer.Navigation: started");
 
                long                sessionConnectTime = 0;
                long                startTime = (new java.util.Date()).getTime();
@@ -42,15 +42,17 @@ public class ProducerNavigation extends Producer {
                EntityList          entityList;
                SimpleHash          naviPageModel;
 
-               // get the topiclist
-               entityList = topicsModule.getByWhereClause("","title",-1);
-               SimpleList topicList = HTMLTemplateProcessor.makeSimpleList(entityList);
+        // get the imclinks
+        entityList = linksImcsModule.getByWhereClause("", "sortpriority, title", -1);
+        EntityList theParentList = linksImcsModule.getByWhereClause("to_parent_id=NULL", "sortpriority, title", -1);
 
                // put the informations into the navipagemodel
                naviPageModel = new SimpleHash();
-               naviPageModel.put("topics", topicList);
+               naviPageModel.put("topics", topicsModule.getTopicsList());
+        naviPageModel.put("imclist", entityList);
+        naviPageModel.put("parentlist", theParentList);
 
-               htmlFileName = producerDocRoot + "/navigation.inc";
+               htmlFileName = "/navigation.inc";
 
                produce(naviPageTemplate, htmlFileName, naviPageModel, new LineFilterWriter(htmlout));
 
@@ -64,4 +66,4 @@ public class ProducerNavigation extends Producer {
                }
        }
 
-}
\ No newline at end of file
+}