- Timestamp:
- 2007-08-09T16:19:12+12:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/collection/CollectionManager.java
r14322 r14358 1405 1405 Document new_cfg_doc = XMLTools.parseXMLFile(new_cfg); 1406 1406 Element collection_config = new_cfg_doc.getDocumentElement(); 1407 1407 1408 1408 Node browseNode = XMLTools.getChildByTagNameIndexed(collection_config, StaticStrings.BROWSE_STR, 0); 1409 1409 NodeList classifier_children = ((Element)browseNode).getElementsByTagName(StaticStrings.CLASSIFIER_STR); … … 1470 1470 option_element.setAttribute(StaticStrings.VALUE_ATTRIBUTE, sort); 1471 1471 } 1472 else if(name_str.equals("buttonname") && buttonname == "") { 1473 option_element.setAttribute(StaticStrings.VALUE_ATTRIBUTE, metadata); 1474 } 1475 else if(buttonname == null) { 1472 else if(name_str.equals("buttonname") && (buttonname == "" || buttonname == null)) { 1476 1473 // No buttonname has been specified. Lets create one using the metadata as its value 1477 1474 Element option = new_cfg_doc.createElement(StaticStrings.OPTION_STR); … … 1482 1479 } 1483 1480 } 1484 1485 1481 } 1486 1482
Note:
See TracChangeset
for help on using the changeset viewer.