X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=source%2Fmir%2Fentity%2FEntity.java;h=b434b771161328be7be668e5d84230beb87018ad;hb=d5ed3a90068eeeac3c3b91e0f1048c1f0b1618a2;hp=a678d63c62c3259503f0f88dc83deba1e36b8473;hpb=400cce90fa5b349c9114788bbe92a01bdad8432e;p=mir.git diff --git a/source/mir/entity/Entity.java b/source/mir/entity/Entity.java index a678d63c..b434b771 100755 --- a/source/mir/entity/Entity.java +++ b/source/mir/entity/Entity.java @@ -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)