Changeset 23792
- Timestamp:
- 2011-03-15T17:07:58+13:00 (13 years ago)
- Location:
- main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractGS2DocumentRetrieve.java
r22974 r23792 44 44 import org.apache.log4j.*; 45 45 46 // Apache Commons 47 import org.apache.commons.lang3.*; 48 46 49 /** Implements the generic retrieval and classifier services for GS2 47 50 * collections. … … 150 153 StringTokenizer st = new StringTokenizer(contains, ";"); 151 154 while (st.hasMoreTokens()) { 152 String child_id = st.nextToken().replaceAll("\"", node_id);155 String child_id = StringUtils.replace(st.nextToken(), "\"", node_id); 153 156 children.add(child_id); 154 157 } … … 235 238 236 239 String contains = info.getInfo("contains"); 237 contains = contains.replaceAll("\"", parent_id);240 contains = StringUtils.replace(contains, "\"", parent_id); 238 241 String [] children = contains.split(";"); 239 242 for (int i=0;i<children.length;i++) { … … 475 478 } else { 476 479 String contains = info.getInfo("contains"); 477 contains = contains.replaceAll("\"", parent_id);480 contains = StringUtils.replace(contains, "\"", parent_id); 478 481 String [] children = contains.split(";"); 479 482 for (int i=0;i<children.length;i++) { -
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/GS2MGRetrieve.java
r15326 r23792 33 33 34 34 import org.apache.log4j.*; 35 36 // Apache Commons 37 import org.apache.commons.lang3.*; 35 38 36 39 public class GS2MGRetrieve … … 134 137 if (doc_content!=null) { 135 138 // remove any ctrl-c or ctrl-b 136 doc_content = doc_content.replaceAll ("\u0002|\u0003", "");139 doc_content = StringUtils.replace(doc_content, "\u0002|\u0003", ""); 137 140 // replace _httpimg_ with the correct address 138 141 doc_content = resolveTextMacros (doc_content, doc_id, lang);
Note:
See TracChangeset
for help on using the changeset viewer.