new templates for editing files
[mir.git] / source / mir / entity / Entity.java
index a678d63..b434b77 100755 (executable)
@@ -20,8 +20,16 @@ import mir.misc.*;
  * Base Class of Entities
  * Interfacing TemplateHashModel and TemplateModelRoot to be freemarker compliant
  *
- * @author rk
- * @version 29.6.1999
+ * @version $Revision: 1.8 $ $Date: 2002/06/28 22:56:37 $
+ * @author $Author: mh $
+ *
+ * $Log: Entity.java,v $
+ * Revision 1.8  2002/06/28 22:56:37  mh
+ * fix so that webdb_lastchange appears in contentlist.template as it should
+ *
+ * Revision 1.7  2002/06/28 20:35:38  mh
+ * use some cvs macros/id's
+ *
  *
  */
 
@@ -123,16 +131,20 @@ public class Entity implements TemplateHashModel, TemplateModelRoot
       }
       else if (field.equals("webdb_lastchange_formatted"))
       {
-        if (hasValueForField("webdblast_change"))
+        if (hasValueForField("webdb_lastchange"))
           returnValue=StringUtil.dateToReadableDate(getValue("webdb_lastchange"));
       }
+      else if (field.equals("webdb_create_dc"))
+      {
+        if (hasValueForField("webdb_create"))
+          returnValue=StringUtil.webdbdateToDCDate(getValue("webdb_create"));
+      }
       else
         returnValue = (String)theValuesHash.get(field);
     }
     return returnValue;
   }
 
-
   public boolean hasValueForField(String field)
   {
     if (theValuesHash!=null)