- Timestamp:
- 2004-05-17T12:05:11+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/BasicCollectionConfiguration.java
r6850 r7340 59 59 private String maintainer; 60 60 private String name; 61 62 private String site; // used for gs3 colls 61 63 62 64 public BasicCollectionConfiguration(File file) { … … 222 224 } 223 225 226 /** set the site for this coll */ 227 public void setSite(String site) { 228 this.site = site; 229 } 230 231 224 232 /** Display the title for this collection. */ 225 233 public String toString() { 226 return getName() + StaticStrings.SPACE_CHARACTER + StaticStrings.OPEN_PARENTHESIS_CHARACTER + getShortName() + StaticStrings.CLOSE_PARENTHESIS_CHARACTER; 234 if (this.site == null) { 235 return getName() + StaticStrings.SPACE_CHARACTER + StaticStrings.OPEN_PARENTHESIS_CHARACTER + getShortName() + StaticStrings.CLOSE_PARENTHESIS_CHARACTER; 236 } else { 237 return getName() + StaticStrings.SPACE_CHARACTER + StaticStrings.OPEN_PARENTHESIS_CHARACTER + getShortName()+", "+this.site + StaticStrings.CLOSE_PARENTHESIS_CHARACTER; 238 } 227 239 } 228 240 }
Note:
See TracChangeset
for help on using the changeset viewer.