Changeset 4488
- Timestamp:
- 2003-06-05T13:30:13+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/msm/MetadataSet.java
r4404 r4488 364 364 for(int i = 0; i < elements.getLength(); i++) { 365 365 Element element = (Element) elements.item(i); 366 366 ///ystem.err.println("Compare to: " + element.getAttribute("name")); 367 367 if(element.getAttribute("name").equals(name)) { 368 368 return element; … … 394 394 public String getName() { 395 395 if(name == null) { 396 396 // Determine the code. 397 397 String language_code = Gatherer.dictionary.getLanguage(); 398 398 // Recover all Name elements 399 399 NodeList names = document.getElementsByTagName("Name"); 400 400 // Iterate through the available names looking for the appropriate one. Also make note of the first name, then overwrite it with any english one. 401 401 boolean found = false; 402 402 for(int i = 0; !found && i < names.getLength(); i++) {
Note:
See TracChangeset
for help on using the changeset viewer.