Ignore:
Timestamp:
2004-10-13T14:48:20+13:00 (20 years ago)
Author:
mdewsnip
Message:

Finally committing the (many) changes to the GLI to use the new metadata code... I hope this doesn't have too many bugs in it and committing it now doesn't stuff anyone up! (Katherine said I could commit it, so blame her if anything goes wrong).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/Subcollection.java

    r8243 r8313  
    2828
    2929import org.greenstone.gatherer.Gatherer;
    30 import org.greenstone.gatherer.msm.ElementWrapper;
    3130import org.greenstone.gatherer.util.StaticStrings;
    3231import org.greenstone.gatherer.util.Troolean;
     
    154153     * @return a String which is either the fully qualified name of a metadata element, or filename
    155154     */
    156     public String getSource() {
    157     if(source == null &&element != null) {
     155    public String getSource()
     156    {
     157    if (source == null && element != null) {
    158158        source = element.getAttribute(StaticStrings.CONTENT_ATTRIBUTE);
    159         // If this is a metadata element then retrieve the appropriate ElementWrapper and use the language specific name
    160         if(!source.equals(StaticStrings.FILENAME_STR)) {
    161         ElementWrapper element_wrapper = Gatherer.c_man.getCollection().msm.getElement(source);
    162         if(element_wrapper != null) {
    163             source = element_wrapper.toString();
    164         }
    165         }
    166     }
     159    }
     160
    167161    return source;
    168162    }
Note: See TracChangeset for help on using the changeset viewer.