anchor.diff:  <c:set var="redirectedJavascript">
   	<c:if test="${not empty queryString}">
   		<script type="text/javascript">		
  -
  -		var solrBaseURL_bytemark = '${drupalBaseUrl}/bytemark/solr/';
  -		var solrBaseURL_ebi      = '${drupalBaseUrl}/mi/solr/';	
  -
  +		
   		var data = {};
  -		data.q         = '${queryString}';	
  -		data.type      = '${queryType}';		
  -		data.geneFound = '${queryGeneFound}';	// use to load gene grid	
  -				 		 
  +		data.q    = '${q}';	
  +		data.core = '${core}';
  +		data.fq   = decodeURI('${fq}');
  +							 		 
   		window.jQuery('document').ready(function() {	
   			
   			// do not use qf: 'auto_suggest', defType: 'edismax' for gene, as the config is different at Sanger
   			var facetParams = MPI2.searchAndFacetConfig.facetParams;
  +			var facetName = data.core + 'Facet';
   									
  -			if ( facetParams[data.type] && data.type != 'gene'){
  -				data.fq = facetParams[data.type].fq;
  -				data.qf = facetParams[data.type].qf;
  -				data.defType = facetParams[data.type].defType;
  -				data.wt = facetParams[data.type].wt;
  +			if ( facetParams[facetName] && data.core != 'gene'){
  +				//data.fq = facetParams[facetName].fq;
  +				data.qf = facetParams[facetName].qf;
  +				data.defType = facetParams[facetName].defType;
  +				data.wt = facetParams[facetName].wt;
   			}
   			
   			// refresh the side bar
  -			window.jQuery('div#leftSideBar').mpi2LeftSideBar({			
  -				solrBaseURL_bytemark : solrBaseURL_bytemark,
  -				solrBaseURL_ebi : solrBaseURL_ebi,
  +			window.jQuery('div#leftSideBar').mpi2LeftSideBar({				
   				data : data, // key q: query string
   				geneGridElem : 'div#mpi2-search'				
   			});			
   			
   			// refresh the grid		
  -			if ( data.type != 'undefined' ){
  -				
  -				// invoke sanger grid
  -				//window.jQuery('#mpi2-search').trigger('search', [{type: data.type, solrParams: data}]);
  -				
  +			if ( data.core != 'undefined' ){
  +						
   				// invode dataTable
   				var oInfos = {};
   		 		oInfos.params = $.fn.stringifyJsonAsUrlParams(data);
  -		 		oInfos.solrCoreName = facetParams[data.type].solrCoreName;
  -		 		oInfos.mode = facetParams[data.type].solrCoreName + 'Grid';
  +		 		oInfos.solrCoreName = facetParams[facetName].solrCoreName;
  +		 		oInfos.mode = facetParams[facetName].solrCoreName + 'Grid';
   		 		oInfos.dataTablePath = "${baseUrl}/dataTable";
   		 		
  -		 		var dTable = $.fn.fetchEmptyTable(facetParams[data.type].tableHeader, facetParams[data.type].cols, oInfos.mode);
  +		 		var dTable = $.fn.fetchEmptyTable(facetParams[facetName].tableHeader, facetParams[facetName].cols, oInfos.mode);
   		 	   			 	    	
  -		 	   	var title = $.fn.upperCaseFirstLetter(facetParams[data.type].type);	    	
  +		 	   	var title = $.fn.upperCaseFirstLetter(facetParams[facetName].type);	    	
   		 	   	var gridTitle = $('<div></div>').attr({'class':'gridTitle'}).html(title);
  -		 	 
  +		 	 		 	  	
   		 	   	$('div#mpi2-search').html('');		 	  
   		 	   	$('div#mpi2-search').append(gridTitle, dTable);		 	    	   	
  -		 	   	
  -		 	   	$.fn.invokeDataTable(oInfos);
  +		 	   
  +		 	   //	$.fn.invokeDataTable(oInfos);
   			}
  +			//$('div#userKeyword').html('Search keyword: ' + data.q);
   			$('div#facetBrowser').html(MPI2.searchAndFacetConfig.endOfSearch);
   			
   		});
  
positive.code: 
  </t:genericpage>
  
  
negative.code: 				<div id='mainDataContainer'></div>
  			</div>
  		</div>
  		<div class='row-fluid'>		
  		<div id="leftSideBar" class='rounded-corners span3'>			
  			<div id='facetBrowser'><img src='img/loading_small.gif' /> Processing search ...</div> 
  			<div id='geneFacet'>
  				<div><div class='facetCat'>Genes</div><span class='facetCount'></span></div>
  				<div class='facetCatList'></div>
  			</div>						
  			<div id='mpFacet'>
  				<div><div class='facetCat'>Phenotypes</div><span class='facetCount'></span></div>
  				<div class='facetCatList'></div>
  			</div>
  			<!-- <div id='tissueFace//var url = $.bbq.getState( "url" );t'>				
  				<div><div class='facetCat'>Tissues</div><span class='facetCount'></span></div>				
  				<div class='facetCatList'></div>
  			</div>-->
  			<div id='pipelineFacet'>
  				<div><div class='facetCat'>Procedures</div><span class='facetCount'></span></div>
  				<div class='facetCatList'></div>
  			</div>
  			<div id='imagesFacet'>
  				<div><div class='facetCat'>Images</div><span class='facetCount'></span></div>
  				<div class='facetCatList'></div>
  			</div>
  