Changeset 12835


Ignore:
Timestamp:
2006-09-22T16:15:30+12:00 (18 years ago)
Author:
kjdon
Message:

add a default value for label when create a new element

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gems/MetadataElementModel.java

    r12669 r12835  
    3838
    3939import org.greenstone.gatherer.util.XMLTools;
     40import org.greenstone.gatherer.Configuration;
    4041
    4142import org.w3c.dom.Document;
     
    8485    Attribute attr = new Attribute(GEMSConstants.NAME_ATTRIBUTE, name, true);
    8586    attributes.add(attr);
     87    // also add in a default label attribute
     88    attr = getAttributeByNameAndLanguage(GEMSConstants.LABEL_ATTRIBUTE, Configuration.getLanguage());
     89    attr.setValue(name);
    8690
    8791    }
Note: See TracChangeset for help on using the changeset viewer.