- Timestamp:
- 2004-10-13T14:48:20+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/Subcollection.java
r8243 r8313 28 28 29 29 import org.greenstone.gatherer.Gatherer; 30 import org.greenstone.gatherer.msm.ElementWrapper;31 30 import org.greenstone.gatherer.util.StaticStrings; 32 31 import org.greenstone.gatherer.util.Troolean; … … 154 153 * @return a String which is either the fully qualified name of a metadata element, or filename 155 154 */ 156 public String getSource() { 157 if(source == null &&element != null) { 155 public String getSource() 156 { 157 if (source == null && element != null) { 158 158 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 167 161 return source; 168 162 }
Note:
See TracChangeset
for help on using the changeset viewer.