Changeset 7306
- Timestamp:
- 2004-05-11T14:34:30+12:00 (20 years ago)
- Location:
- trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/metadata/METSNamespace.java
r6103 r7306 132 132 133 133 if (this.location != null) { 134 action.addValue(" fileLoc", this.location.getLocation().toString());135 action.addValue(" fileType", "URL");134 action.addValue("FileLoc", this.location.getLocation().toString()); 135 action.addValue("FileType", "URL"); 136 136 } 137 137 else { … … 176 176 String name = resultSet.getString("NamespaceType"); 177 177 String id = resultSet.getString("NamespaceRef"); 178 String location = resultSet.getString(" fileLoc");179 String type = resultSet.getString(" fileType");178 String location = resultSet.getString("FileLoc"); 179 String type = resultSet.getString("FileType"); 180 180 if (location != null && type != null) { 181 181 metsLocation = new METSLocation(type, location); … … 198 198 if (valuesSet != null && valuesSet.first()) { 199 199 do { 200 String label = valuesSet.getString(" label");201 String value = valuesSet.getString(" value");200 String label = valuesSet.getString("Label"); 201 String value = valuesSet.getString("Value"); 202 202 203 203 namespace.addMetadata(label, value); -
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/metadata/SimpleNamespace.java
r6287 r7306 286 286 GS3SQLInsert insert = new GS3SQLInsert("mdvalues"); 287 287 insert.addValue("NamespaceRef", sqlId, GS3SQLField.INTEGER_TYPE); 288 insert.addValue(" label", thisKey);289 insert.addValue(" value", value);288 insert.addValue("Label", thisKey); 289 insert.addValue("Value", value); 290 290 connection.execute(insert.toString()); 291 291 } -
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/util/GS3SQLConnection.java
r7192 r7306 261 261 namespaces.addProperty("NamespaceID", 64); 262 262 namespaces.addProperty("NamespaceType", 64); 263 namespaces.addProperty(" fileType", 64);264 namespaces.addProperty(" fileLoc");265 namespaces.addProperty(" creator", 128);263 namespaces.addProperty("FileType", 64); 264 namespaces.addProperty("FileLoc"); 265 namespaces.addProperty("Creator", 128); 266 266 statement.execute(namespaces.toString()); 267 267 … … 270 270 // todo: some unique id for the namespaces item 271 271 metadata.addProperty("NamespaceRef", GS3SQLField.INTEGER_TYPE); 272 metadata.addProperty(" label", 256);273 metadata.addProperty(" value");272 metadata.addProperty("Label", 256); 273 metadata.addProperty("Value"); 274 274 statement.execute(metadata.toString()); 275 275
Note:
See TracChangeset
for help on using the changeset viewer.