anchor.diff:  
     // Since clicking on links of the form "/features#59" would normally just change the url
     // hash and not change the page content, we need to send these links to NodeTree.showNode(id),
  -  // which opens up the specified feature. 
  +  // which opens up the specified feature.
     jQuery('.has-hash-feature-links a[href*=\\/features#]').on('click', function(){
       var id = this.href.match(/features#([\d]+)$/);
       if(id){
  
positive.code:   $('.collapse-all').hide();
  }
  </script>
  <div id='myTabs'>
    <!-- Nav tabs -->
    <ul class="nav nav-tabs" role="tablist">
      <li role="presentation" class="active"><a href="#relation_details" role="tab" data-toggle="tab">Summary</a></li>
      <li role="presentation"><a href="#relation_tree" role="tab" data-toggle="tab">Relationship Tree</a></li>
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
      <div role="tabpanel" class="tab-pane active" id="relation_details">
        <section class="panel panel-content">
          <div class="panel-body">
            <% parent_relation_counts = FeatureRelation.select('feature_relation_type_id, COUNT(DISTINCT id) as count').where(:child_node_id => @feature.id).group('feature_relation_type_id').order('feature_relation_type_id')
            child_relation_counts = FeatureRelation.select('feature_relation_type_id, COUNT(DISTINCT id) as count').where(:parent_node_id => @feature.id).group('feature_relation_type_id').order('feature_relation_type_id')
            if parent_relation_counts.length + child_relation_counts.length > 0 %>
          <p>
          <%=    link_to ts('tree.expand', :what => t('all.these')), '#', onclick: "expand_all()", :class => "expand-all expandable-link-contracted", :style => "font-weight:bold;font-variant:small-caps;" %>
          <%=    link_to ts('tree.collapse', :what => t('all.these')), '#', onclick: "collapse_all()", :class => "collapse-all expandable-link-expanded", :style => "font-weight:bold;font-variant:small-caps;display:none;" %>
          </p>
          <div class="subjects-in-subjects kmaps-list-columns related-features has-ajax-pagination has-hash-feature-links">
            <h6><%= fname_labels(@feature).s %></h6>
            <%   parent_relation_counts.each do |rc|
              feature_relation_type = rc.feature_relation_type
              count = rc.count.to_i
              div_id = "list_#{feature_relation_type.id}_0" %>
            <h6><%= link_to feature_relation_type.asymmetric_label.capitalize, related_list_feature_path(@feature.id, :feature_relation_type_id => feature_relation_type.id, :feature_is_parent => 0), :remote => true, :id => "link_#{div_id}", :class => 'expandable-link-contracted' %></strong> (<%= count %>):</h6>
            <div id="<%= div_id %>" style="display:none;" class="related-feature-list pagination-click-results"></div>
            <%=    javascript_tag("$('#link_#{div_id}').bind('ajax:beforeSend', function(){ if(!on_click('#{div_id}')) return false; });") %>
          <%   end %>
          <%   child_relation_counts.each do |rc|
            feature_relation_type = rc.feature_relation_type
            count = rc.count.to_i
            div_id = "list_#{feature_relation_type.id}_1" %>
            <div class="feature-block">
          <p><strong><%= link_to feature_relation_type.label.capitalize, related_list_feature_path(@feature.id, :feature_relation_type_id => feature_relation_type.id, :feature_is_parent => 1), :remote => true, :id => "link_#{div_id}", :class => 'expandable-link-contracted' %></strong> (<%= count %>):</p>
          <div id="<%= div_id %>" style="display:none;" class="related-feature-list pagination-click-results"></div>
          <%=    javascript_tag("$('#link_#{div_id}').bind('ajax:beforeSend', function(){ if(!on_click('#{div_id}')) return false; });") %>
        <%   end %>
            </div> <!-- END - feature-block -->
          <br />
          <p>
          <%= link_to ts('tree.expand', :what => t('all.these')), '#', onclick: "expand_all()", :class => "expand-all expandable-link-contracted", :style => "font-weight:bold;font-variant:small-caps;" %>
  
negative.code:       <% end %>
          </div> <!-- END panel-body -->
        </section> <!-- END panel -->
      </div> <!-- END tabpanel -->
    </div> <!-- Tab Content -->
  </div> <!-- myTabs end -->
  
  <%= javascript_on_load do %>
    $('#summary-tab-link[data-toggle="tab"]').on('shown.bs.tab', function (e) {
      // Functionality for columnizer
      // dontsplit = don't break these headers
      $('.subjects-in-subjects').find('.column > h6, .column > ul > li, .column ul').addClass("dontsplit");
      // dontend = don't end column with headers
      $('.subjects-in-subject').find('.column > h6, .column > ul > li').addClass("dontend");
      $('.subjects-in-subjects').find('.feature-block').addClass("dontsplit");
      $('.kmaps-list-columns:not(.places-in-subjects):not(.already_columnized)').addClass('already_columnized').columnize({
        width: 330,
        lastNeverTallest : true,
        buildOnce: true
        });
    });
    // END - Functionality for columnizer
  
    $("#relation_tree_container").kmapsFancytree({
      featureId: "<%= @feature.fid %>",
      termIndex: "<%= Feature.config.url %>",
      assetIndex: "<%= Flare.config.asset_url %>",
      perspective: "<%= current_perspective.code %>",
      tree: "<%= Feature.uid_prefix %>", //subjects
      domain: "<%= Feature.uid_prefix %>", //subjects
      seedTree: {
        descendants: true,
        directAncestors: false,
      },
      displayPopup: true
    });
  <% end %>
  