Project

General

Profile

« Previous | Next » 

Revision 3057

Added by perry about 18 years ago

Correctly cache doc title in the spatial cache

View differences:

src/edu/ucsb/nceas/metacat/spatial/SpatialDocument.java
124 124
     */
125 125
    String docTitlePath = MetaCatUtil.getOption("docTitle");
126 126
    query = "select nodedata from xml_path_index where path = '" 
127
          + docTitlePath + "' and docid = '" + docid.trim() + "'";
127
          + docTitlePath.trim() + "' and docid = '" + docid.trim() + "'";
128 128

  
129 129
    try {
130 130
      pstmt = dbconn.prepareStatement(query);
......
132 132
      rs = pstmt.getResultSet();
133 133
      if (rs.next())
134 134
        this.title = rs.getString(1);
135
        //log.warn(" \n\n****** TITLE query is " + query + " \n\n");
135 136
      rs.close();
136 137
      pstmt.close();
137 138
    }

Also available in: Unified diff