Project

General

Profile

Revision 1433

Added by Jing Tao over 18 years ago

Change the calling method.

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
1106 1106
          // set content type first
1107 1107
          response.setContentType("text/xml");   //MIME type
1108 1108
          PrintWriter out = response.getWriter();
1109
          doc.toXml(out);
1109
          doc.toXml(out, user, groups);
1110 1110
        } else {
1111 1111
          response.setContentType("text/html");  //MIME type
1112 1112
          PrintWriter out = response.getWriter();
......
1115 1115
          String doctype = doc.getDoctype();
1116 1116
          // Transform the document to the new doctype
1117 1117
          DBTransform dbt = new DBTransform();
1118
          dbt.transformXMLDocument(doc.toString(),
1118
          dbt.transformXMLDocument(doc.toString(user, groups),
1119 1119
                                   doctype,"-//W3C//HTML//EN", qformat, out);
1120 1120
        }
1121 1121

  

Also available in: Unified diff