anchor.diff:          if (sharingAllowed) {
             operationPane.addOperation("useless", resources.getString("GML.share"), "javascript:pubShare()");
           }
  -        if (!currentUser.isAnonymous()) {
  +        if (StringUtil.isDefined(pubPermalink) && !currentUser.isAnonymous()) {
             operationPane.addOperation(favoriteAddSrc, resources.getString("FavoritesAddPublication") + " " + resources.getString("FavoritesAdd2"), "javascript:addFavorite()");
           }
           operationPane.addLine();
  
positive.code:           <% } %>
  
  
  		    <% if (URLUtil.displayUniversalLinks()) {
  		            String link = null;
  		            if (!pubDetail.getPK().getInstanceId().equals(contextComponentId)) {
  		              link = URLUtil.getSimpleURL(URLUtil.URL_PUBLI, pubDetail.getPK().getId(),
  		                  contextComponentId);
  		            } else {
  		              link = URLUtil.getSimpleURL(URLUtil.URL_PUBLI, pubDetail.getPK().getId());
  		            }%>
            <fmt:message var="permalinkHelp" key="kmelia.CopyPublicationLink"/>
            <c:set var="permalinkIconUrl"><%=resources.getIcon("kmelia.link")%></c:set>
            <viewTags:displayPermalinkInfo link="<%=link%>" help="${permalinkHelp}" iconUrl="${permalinkIconUrl}"/>
          <% }%>
          </div>
        <%
  
negative.code:         function addFavorite() {
            var name = $("#breadCrumb").text();
            var description = "<%=WebEncodeHelper.javaStringToJsString(pubDetail.getDescription(language))%>";
            var url = "<%=pubPermalink%>";
            postNewLink(name, url, description);
          }
  
  