From: john Date: Sun, 14 Apr 2002 22:57:02 +0000 (+0000) Subject: every entity now has a webdb_create_dc value X-Git-Tag: prexmlproducerconfig~113 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=670b45e98b08f279d6b6c2f07b161fd2ecd6e41b;p=mir.git every entity now has a webdb_create_dc value (dc=dublin core). should be useful for many types of syndication --- diff --git a/source/mir/entity/Entity.java b/source/mir/entity/Entity.java index a678d63c..a30bade9 100755 --- a/source/mir/entity/Entity.java +++ b/source/mir/entity/Entity.java @@ -126,6 +126,11 @@ public class Entity implements TemplateHashModel, TemplateModelRoot if (hasValueForField("webdblast_change")) 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); }