Changeset 7306


Ignore:
Timestamp:
2004-05-11T14:34:30+12:00 (20 years ago)
Author:
kjdon
Message:

capitalised a few remaining field names that were lower case

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  
    132132
    133133    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");
    136136    }
    137137    else {
     
    176176      String name = resultSet.getString("NamespaceType");
    177177      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");
    180180      if (location != null && type != null) {
    181181    metsLocation = new METSLocation(type, location);
     
    198198      if (valuesSet != null && valuesSet.first()) {
    199199    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");
    202202
    203203      namespace.addMetadata(label, value);
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/metadata/SimpleNamespace.java

    r6287 r7306  
    286286      GS3SQLInsert insert = new GS3SQLInsert("mdvalues");
    287287      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);
    290290      connection.execute(insert.toString());
    291291    }
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/util/GS3SQLConnection.java

    r7192 r7306  
    261261      namespaces.addProperty("NamespaceID", 64);
    262262      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);
    266266      statement.execute(namespaces.toString());
    267267     
     
    270270      // todo: some unique id for the namespaces item
    271271      metadata.addProperty("NamespaceRef", GS3SQLField.INTEGER_TYPE);
    272       metadata.addProperty("label", 256);
    273       metadata.addProperty("value");
     272      metadata.addProperty("Label", 256);
     273      metadata.addProperty("Value");
    274274      statement.execute(metadata.toString());
    275275   
Note: See TracChangeset for help on using the changeset viewer.