mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
. Added support for "displayLabelId" attribute in Advanced Search meta-data config (as requested on the forums)
. Handling of missing content (reader.exists()) in TemplateNode . JavaDoc improvements to Template changes code from yestarday git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2008 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -168,8 +168,17 @@ public class UISearchCustomProperties extends SelfRenderingComponent implements
|
||||
// if we found a def, then we can build components to represent it
|
||||
if (propDef != null)
|
||||
{
|
||||
// TODO: add display label I18N message support to configelement and here
|
||||
String label = propDef.getTitle() != null ? propDef.getTitle() : propDef.getName().getLocalName();
|
||||
// resolve display label I18N message
|
||||
String label;
|
||||
if (property.LabelId != null && property.LabelId.length() != 0)
|
||||
{
|
||||
label = Application.getMessage(context, property.LabelId);
|
||||
}
|
||||
else
|
||||
{
|
||||
// or use dictionary label or QName as last resort
|
||||
label = propDef.getTitle() != null ? propDef.getTitle() : propDef.getName().getLocalName();
|
||||
}
|
||||
|
||||
// special handling for Date and DateTime
|
||||
DataTypeDefinition dataTypeDef = propDef.getDataType();
|
||||
|
Reference in New Issue
Block a user