Project

General

Profile

« Previous | Next » 

Revision 2787

Added by sgarg over 18 years ago

Modified code to that isModerator param is passed to the xsl which will render the results.

View differences:

src/edu/ucsb/nceas/metacat/DBQuery.java
277 277

  
278 278
         DBTransform trans = new DBTransform();
279 279
         response.setContentType("text/html");
280

  
281
	 // if the user is a moderator, then pass a param to the 
282
         // xsl specifying the fact
283
         if(MetaCatUtil.isModerator(user, groups)){
284
        	 params.put("isModerator", new String[] {"true"});
285
         }
286

  
280 287
         trans.transformXMLDocument(xml.toString(), "-//NCEAS//resultset//EN",
281 288
                                 "-//W3C//HTML//EN", qformat, out, params,
282 289
                                 sessionid);

Also available in: Unified diff