anchor.diff:  }
   </script>
   <%= javascript_on_load do %>
  -  $("#relation_tree_container").kmapsFancytree({
  -    hostname: "<%= Flare.session.config.scheme+'://'+Flare.session.config.hostname %>",
  -    featureId: "<%= @feature.fid %>",
  -    termIndex: "<%= Flare.session.config.path %>",
  -    tree: "subjects",
  -    domain: "subjects",
  -    });
     // Functionality for columnizer
     $('.kmaps-list-columns:not(.subjects-in-places):not(.already_columnized)').addClass('already_columnized').columnize({
       width: 330,
  
positive.code:     <div role="tabpanel" class="tab-pane" id="relation_tree">
        <section class="panel panel-content">
          <div class="panel-body">
            <h3>Hierarchy tree</h3>
            <div id='relation_tree_container'></div>
          </div> <!-- END panel-body -->
        </section> <!-- END panel -->
      </div>
  
negative.code:   $('.places-in-places').find('.column > h6, .column > ul > li').addClass("dontend");
  
    // End - Functionality for columnizer
    <% unless frt.empty? %>
        $('#relation_tree_container').fancytree({
          extensions: ["glyph"],
          source: getTree(),
          glyph: {
            map: {
              doc: "",
              docOpen: "",
              error: "glyphicon glyphicon-warning-sign",
              expanderClosed: "glyphicon glyphicon-plus-sign",
              expanderLazy: "glyphicon glyphicon-plus-sign",
              // expanderLazy: "glyphicon glyphicon-expand",
              expanderOpen: "glyphicon glyphicon-minus-sign",
              // expanderOpen: "glyphicon glyphicon-collapse-down",
              folder: "",
              folderOpen: "",
              loading: "glyphicon glyphicon-refresh"
                //              loading: "icon-spinner icon-spin"
            }
          },
          activate: function(event, data){
            var node = data.node,
            orgEvent = data.originalEvent;
            if(node.data.href){
              window.location.href=node.data.href;
            }
          },
          lazyLoad: function(event, data){
            var node = data.node;
            data.result = { url: "<%= features_path %>/"+node.key+"/fancy_children.json" };
          }
        });
  <% end %>
    <% unless fnit.empty? %>
      $('#nit_relation_tree_container').fancytree({
        extensions: ["glyph"],
        source: getNotInTree(),
        glyph: {
          map: {
            doc: "",
            docOpen: "",
            error: "glyphicon glyphicon-warning-sign",
            expanderClosed: "glyphicon glyphicon-plus-sign",
            expanderLazy: "glyphicon glyphicon-plus-sign",
            // expanderLazy: "glyphicon glyphicon-expand",
            expanderOpen: "glyphicon glyphicon-minus-sign",
            // expanderOpen: "glyphicon glyphicon-collapse-down",
            folder: "",
            folderOpen: "",
            loading: "glyphicon glyphicon-refresh"
              //              loading: "icon-spinner icon-spin"
          }
        },
        activate: function(event, data){
          var node = data.node,
          orgEvent = data.originalEvent;
          if(node.data.href){
            window.location.href=node.data.href;
          }
        }
      });
  $("#nit_relation_tree_container").fancytree("getRootNode").visit(function(node){
    node.setExpanded(true);
  });
  <% end %>
  <% end %>
  