anchor.diff:    <script type="text/javascript">
       (function($) {
           var $table = $('#${tableContainerId}');
  -        var query = {
  -            select: ["primaryIdentifier", "score", "scoreProtocol.name"],
  -            from: "${fc.key}",
  -            joins: ["scoreProtocol"],
  -            where: {"submissions.DCCid": "${object.dCCid}"}
  -        };
  -        var disableTable = function() {
  -            $('.submission-features-count a').addClass('no-results').unbind('click');
  -            $table.remove();
  -        };
  -        if (!${fc.value}) {
  -            disableTable();
  -        }
  -        $(function() {
  -            $SERVICE.fetchModel(function(model) {
  +        var modifyQuery = function (query) {
  +            return function (model) {
                   var table = model.classes["${fc.key}"];
                   if (table.fields['chromosomeLocation'] && table.fields['chromosome']) {
                       query.select.push('chromosome.primaryIdentifier');
  
positive.code:                 query.select.push('submissions.DCCid');
                  query.select.push('submissions.experimentalFactors.name');
                  query.joins.push('submissions.experimentalFactors');
              });
              $('.submission-features-count a').click(function(e) {
                  var $link = $(this);
                  e.preventDefault();
                  $table.imWidget({
                      type: "table",
                      url: window.location.host + ':' + window.location.port + "/${WEB_PROPERTIES['webapp.path']}",
                      token: "${PROFILE.dayToken}",
                      error: FailureNotification.notify,
                      query: query,
                      events: LIST_EVENTS,
                      properties: {pageSize: ${pageSize} }
                  });
                  $link.unbind('click').click(function(e) {
                      e.preventDefault();
                      $table.slideToggle('fast');
                      return false;
                  });
              });
              return false;
  
negative.code:             </td>
  
              <td align="middle" style="padding-left: 6px;" class="submission-features-count">
                  <a href="/${WEB_PROPERTIES['webapp.path']}/features.do?type=submission&action=results&submission=${object.dCCid}&feature=${fc.key}"
                     style="text-decoration: none;" data-featureType="${fc.key}" data-dccID="${object.dCCid}">
                      ${fc.value}
                  </a>
              </td>
  