Changeset 18151 for other-projects/trunk/greenstone3-extension
- Timestamp:
- 2008-12-08T17:11:40+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/trunk/greenstone3-extension/mat/src/org/greenstone/gsdl3_extension/mat/servlet/MetadataStats.java
r18107 r18151 124 124 String os = "linux"; 125 125 126 if(System.getProperty("os.name").toLowerCase(). contains("windows")){127 gsdl3Home = gsdl3Home.replace ("\\", "/");126 if(System.getProperty("os.name").toLowerCase().indexOf("windows")!=-1){ 127 gsdl3Home = gsdl3Home.replaceAll("\\", "/"); 128 128 os = "windows"; 129 129 } 130 130 String metadataSetHome = gspath.removeLastLink(gsdl3Home)+fileSeparator+"gli"+fileSeparator+"metadata"; 131 131 if(os.equals("windows")){ 132 metadataSetHome = metadataSetHome.replace ("/", "\\");132 metadataSetHome = metadataSetHome.replaceAll("/", "\\"); 133 133 } 134 134 … … 302 302 String part = st.nextToken(";"); 303 303 304 if(part. contains("<contains>")){305 part = part.replace ("<contains>", "");306 } 307 else if(part. contains("<thistype>")){304 if(part.indexOf("<contains>")!=-1){ 305 part = part.replaceAll("<contains>", ""); 306 } 307 else if(part.indexOf("<thistype>")!=-1){ 308 308 int location = part.indexOf("<thistype>"); 309 309 part = part.substring(0,location-1);
Note:
See TracChangeset
for help on using the changeset viewer.