code: function(ev) {
      console.log('SELURI');
  // FIXME firing twice
      $('.selectRow').removeClass('active');
      var $el = $(this), id = $el.parents('tr').attr('id'), uri = decodeURIComponent(utils.deEncID(id));
      if (curURI !== uri) {
        $('#preview').remove();
        shown = false;
      }
  
      if (shown) {
        $('.selfield').show();
        $('#preview').remove();
        if ($el.hasClass('selectURI')) {
          window.location.hash = '';
          window.location.hash = id;
        }
        if (context.resultsLib.hasQueuedUpdates) {
          console.log('displaying queued updates');
          context.resultsLib.updateResults();
          context.resultsLib.hasQueuedUpdates = null;
        }
        context.resultsLib.hideItemSidebar();
        curURI = null;
        shown = false;
        context.resultsLib.noUpdates = false;
      } else {
        $('.selfield').hide();
        context.resultsLib.displayItemSidebar(uri);
        var title = $el.parents('tr').find('.selectURI.title').text();
        console.log('title', title);
        $('#itemTitle').val(title);
        window.oo = this;
        curURI = uri;
        if ($el.hasClass('selectURI')) {
          $('#preview').remove();
          // use cached address FIXME canonicalize URIs
          //$el.parent().after('<iframe style="width: 100%" id="preview" src="<!-- @var HOMEPAGE -->cached/'+ encodeURIComponent(uri) +'"></iframe>');
          if ($el.hasClass('content')) { // text content
            uri = homepage + 'content/' + encodeURIComponent(uri);
          }
          console.log($el, uri);
          $el.parent().after('<iframe style="width: 100%" id="preview" src="' + uri +'"></iframe>');
          window.location.hash = id;
          context.resultsLib.noUpdates = true;
        } else {
          context.resultsLib.noUpdates = false;
          window.location.hash = '';
        }
        shown = true;
        $el.parents('tr').addClass('active');
      }
      return false;
    }
docs: display or close uri controls and frame (for link)