Project

General

Profile

« Previous | Next » 

Revision 792

Added by bojilova over 23 years ago

don't need to override the old meta_file_id tags with docid without rev
since Morpho inserts docids before sending the docs to Metacat

View differences:

src/edu/ucsb/nceas/metacat/DBSAXNode.java
126 126
        } else {
127 127
          pstmt.setLong(4, getRootNodeID());
128 128
          pstmt.setLong(5, getNodeID());
129
          if ( nodetype == "TEXT" && getTagName().equals("meta_file_id") ) {
130
            pstmt.setString(6, getDocID());
131
          } else {
129
          // DON'T NEED to OVERRIDE THE meta_file_id TAGS with docid without rev
130
          // SINCE THE CLIENT INSERTS docids BEFORE SENDING THE doc TO METACAT
131
          //if ( nodetype == "TEXT" && getTagName().equals("meta_file_id") ) {
132
          //  pstmt.setString(6, getDocID());
133
          //} else {
132 134
            pstmt.setString(6, data);
133
          }  
135
          //}  
134 136
          pstmt.setInt(7, incChildNum());
135 137
        }
136 138
      }

Also available in: Unified diff