Changeset 5834
- Timestamp:
- 2003-11-13T14:04:29+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/CollectionConfiguration.java
r5816 r5834 71 71 temp = tokenizer.nextToken(); 72 72 // check for language 73 String language = " ";73 String language = "en"; // assume the no-lang ones are english, but we shouldn't really do this. 74 74 if(temp.startsWith("[") && temp.endsWith("]")) { 75 75 language = temp.substring(temp.indexOf("=") + 1, temp.length() - 1); … … 82 82 Gatherer.println("we have found a starting quote but not an ending quote, so now read lines until we get to an end quote"); 83 83 StringBuffer value_raw = new StringBuffer(temp.substring(1)); 84 // add the new line back in 85 value_raw.append(StaticStrings.NEW_LINE_CHAR); 84 86 int pos = value_raw.indexOf(start_string); 85 87 int old_pos = 0; … … 111 113 if (name==null || language.equalsIgnoreCase(Gatherer.dictionary.getLanguage())) { 112 114 name= Utility.decodeGreenstone(temp); 115 // should we use Codec here too? 116 113 117 } 114 118 115 119 } else if (meta_type.equalsIgnoreCase("collectionextra")) { 116 120 if (description == null|| language.equalsIgnoreCase(Gatherer.dictionary.getLanguage())) { 117 description = Utility.decodeGreenstone(temp);121 //description = Utility.decodeGreenstone(temp); 118 122 // or should we use codec?? 119 //description = Codec.transform(temp, Codec.GREENSTONE_TO_TEXT);123 description = Codec.transform(temp, Codec.GREENSTONE_TO_TEXT); 120 124 } 121 125 }
Note:
See TracChangeset
for help on using the changeset viewer.