anchor.diff:  		    }
   		  ]
   		};
  +
  +var stockFormatter = function(o) {
  +	
  +	console.log("In Stock Formatter!");
  +    return formatDataLink(o.get('germplasmName'), o.get('id'), "Stock", undefined);
  +};
  +
  +
  +imtables.formatting.registerFormatter(
  +		stockFormatter,
  +	    'genomic',
  +	    'Stock',
  +	    ['germplasmName', 'id']
  +	);
  +
   var properties = { SubtableInitialState: 'open' };
   
   imtables.configure('DefaultPageSize', 5);
  
positive.code: 		    "genotypes.phenotypesObserved.description",
  		    "genotypes.genotypephenotypeAnnotations.publication.firstAuthor",
  		    "genotypes.genotypephenotypeAnnotations.publication.year",
  		    "stockAvailabilities.stockCenter.name"
  		  ],
  		  "joins": [
  		    "backgroundAccessions",
  		    "genotypes.genotypephenotypeAnnotations",
  		    "genotypes.genotypephenotypeAnnotations.publication",
  		    "genotypes.phenotypesObserved",
  		    "stockAvailabilities",
  		    "stockAvailabilities.stockCenter"
  		  ],
  		  "where": [
  		    {
  
negative.code:  <div id="stock-container">
   
   </div>
   
  <style>
  
  .link{
  color: blue;
  }
  
  </style>
  
  <script type="text/javascript">
  
  var geneId = "${name}";
  var serviceURL = "${serviceURL}";
  
  var formatLink = function(url, text, target, cls){
      target = target || "_self";
      text = text || url;
     if (cls == 'extlink') {
           return '<a class="'+cls+'" href="'+url+'" target="'+target+'">' + text + '</a>';
        } else {
           return '<a href="'+url+'" target="'+target+'">' + text + '</a>';
        }
      };
  
  var wrapSpan = function(text){
          return '<span  class="link">'+text+'</span>';
       };
      
       var formatDataLink = function(name, id, text, dataClass, value){
  	 var url = '/${WEB_PROPERTIES['webapp.path']}' + '/report.do?id=' + id + '#StockAvailabilityDisplayer';
  	 var target = "_blank";
  		 
  	 console.log("In formatDataLink!");
  	 
  	 return name + ' &nbsp;&nbsp;' + '<a href="'+url+'" target="'+target+'">' + wrapSpan(' Order Stock ' + '<i class="fa fa-external-link"></i>')  + '</a>';
  		
   }
   
  var selector = '#stock-container';
  var service  = {root: serviceURL};
  var query    = {
  