indy.nl update
authorzapata <zapata>
Tue, 9 Jul 2002 03:22:27 +0000 (03:22 +0000)
committerzapata <zapata>
Tue, 9 Jul 2002 03:22:27 +0000 (03:22 +0000)
source/mirlocal/indymedia.nl/IndyNLProducerLocalizer.java

index 590422e..09ac9c7 100755 (executable)
@@ -432,14 +432,17 @@ public class IndyNLProducerLocalizer extends MirBasicProducerLocalizer {
     try {
       enumeratingNode =
               new EntityEnumeratingProducerNode( "content", model, "content",
+                new CompositeProducerNode( new ProducerNode[] {
                   new GeneratingProducerNode(
                       "/producer/indymedia.nl/static.template",
                       "${config.storageRoot}/${language.code}/static/${content.edittitle}.shtml"
-                  )
-                );
+                  ),
+                  new ContentMarkingProducerNode( "content" )
+                })
+              );
 
-      enumeratingNode.addVerb( "all", "is_published='1' and to_article_type=${articletype.static} and to_language=${language.id} and edittitle<>'' and not edittitle is null", "" );
-      enumeratingNode.addVerb( "new", "is_published='1' and is_produced='f' and to_article_type=${articletype.static} and to_language=${language.id} and edittitle<>'' and not edittitle is null", "" );
+      enumeratingNode.addVerb( "all", "is_published='1' and to_article_type=${articletype.static} and to_language in (${language.id}, 0) and edittitle<>'' and not edittitle is null", "" );
+      enumeratingNode.addVerb( "new", "is_published='1' and is_produced='f' and to_article_type=${articletype.static} and to_language in (${language.id}, 0) and edittitle<>'' and not edittitle is null", "" );
 
       aFactoriesMap.put("staticarticles", new NodedProducerFactory(
           new EntityEnumeratingProducerNode( "language", model, "language", "code in ('nl', 'en')", "",