Changeset 4029 for trunk/gsdl3
- Timestamp:
- 2003-03-28T11:56:08+12:00 (21 years ago)
- Location:
- trunk/gsdl3/src/java/org/greenstone
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gdbm/GDBMWrapper.java
r3978 r4029 143 143 /** translates oids containing .pr, .fc, .lc, .ns, .ps into proper oids 144 144 * a suffix is expected to be present so test before using 145 * TODO: fc, lc, ns, ps 145 * TODO: fc, lc, ns, ps, .rt*/ 146 146 public String translateOID(String oid) { 147 147 … … 160 160 } else if (suff.equals("ns")) { 161 161 } else if (suff.equals("ps")) { 162 } else if (suff.equals("rt")) { 163 return OID.getTop(top); 162 164 } 163 165 return oid; -
trunk/gsdl3/src/java/org/greenstone/gsdl3/util/OID.java
r3898 r4029 46 46 return "\""+oid.substring(pos); 47 47 } 48 /** returns true if oid uses .fc, .lc, .pr, .ns, .ps */48 /** returns true if oid uses .fc, .lc, .pr, .ns, .ps .rt (root) */ 49 49 public static boolean needsTranslating(String oid) { 50 50 String tail = oid.substring(oid.length()-3); 51 51 return (tail.equals(".fc") || tail.equals(".lc") || tail.equals(".pr") 52 || tail.equals(".ns") || tail.equals(".ps") );52 || tail.equals(".ns") || tail.equals(".ps") || tail.equals(".rt")); 53 53 } 54 54 /** strips suffix from end */ … … 56 56 String tail = oid.substring(oid.length()-3); 57 57 while (tail.equals(".fc") || tail.equals(".lc") || tail.equals(".pr") 58 || tail.equals(".ns") || tail.equals(".ps") ) {58 || tail.equals(".ns") || tail.equals(".ps") || tail.equals(".rt")) { 59 59 oid = oid.substring(0, oid.length()-3); 60 60 tail = oid.substring(oid.length()-3);
Note:
See TracChangeset
for help on using the changeset viewer.