anchor.diff: -<%@ page import="org.opennms.core.utils.WebSecurityUtils" %><%--
  +<%@ page import="org.opennms.core.utils.WebSecurityUtils" %>
  +<%@ page import="org.opennms.web.api.Util" %><%--
   /*******************************************************************************
    * This file is part of OpenNMS(R).
    *
  
positive.code:                     <%
                        if ("foreignSources".equals(heatmap)) {
                      %>
                      location.href = "<%=request.getRequestURI()%>?mode=<%=mode%>&heatmap=nodesByForeignSource&foreignSource=" + nodes[0].id;
                      <%
                        }
  
                        if ("categories".equals(heatmap)) {
                      %>
                      location.href = "<%=request.getRequestURI()%>?mode=<%=mode%>&heatmap=nodesByCategory&category=" + nodes[0].id;
                      <%
                        }
  
                        if ("monitoredServices".equals(heatmap)) {
                      %>
                      location.href = "<%=request.getRequestURI()%>?mode=<%=mode%>&heatmap=nodesByMonitoredService&monitoredService=" + nodes[0].id;
                      <%
                        }
  
                        if ("nodesByCategory".equals(heatmap) || "nodesByForeignSource".equals(heatmap) || "nodesByMonitoredService".equals(heatmap)) {
                      %>
                      location.href = "/opennms/element/node.jsp?node=" + nodes[0].elementId
                      <%
                        }
                      %>
  
negative.code:                     <%
                          if ("foreignSources".equals(heatmap) || "nodesByForeignSource".equals(heatmap)) {
                      %>
                      <a href="<%=request.getRequestURI()%>?mode=<%=Util.encode(mode)%>&amp;heatmap=categories">Categories</a> / <b>Foreign Sources</b> / <a href="<%=request.getRequestURI()%>?mode=<%=Util.encode(mode)%>&amp;heatmap=monitoredServices">Services</a>
                      <%
                      } else {
                          if ("categories".equals(heatmap) ||"nodesByCategory".equals(heatmap)) {
                      %>
                      <b>Categories</b> / <a href="<%=request.getRequestURI()%>?mode=<%=Util.encode(mode)%>&amp;heatmap=foreignSources">Foreign Sources</a> / <a href="<%=request.getRequestURI()%>?mode=<%=Util.encode(mode)%>&amp;heatmap=monitoredServices">Services</a>
                      <%
                      } else {
                      %>
                      <a href="<%=request.getRequestURI()%>?mode=<%=Util.encode(mode)%>&amp;heatmap=categories">Categories</a> / <a href="<%=request.getRequestURI()%>?mode=<%=Util.encode(mode)%>&amp;heatmap=foreignSources">Foreign Sources</a> / <b>Services</b>
                      <%
                              }
                          }
  