Permalink
Browse files

Add data-ranking attribute to each HTML search item.

  • Loading branch information...
JeremyRand committed Aug 28, 2017
1 parent 8e4f31b commit 61be709a976f7b2989e26984c2005a233c12b31a
Showing with 2 additions and 1 deletion.
  1. +1 −1 htroot/yacysearchitem.html
  2. +1 −0 htroot/yacysearchitem.java
@@ -1,5 +1,5 @@
#(content)#::
<div class="searchresults">
<div class="searchresults" data-ranking="#[ranking]#">
<h4 class="linktitle">
#(favicon)#::
<img width="16" height="16" src="#[faviconUrl]#" id="f#[urlhash]#" class="favicon" style="width:16px; height:16px;" alt="" />
@@ -279,6 +279,7 @@ public static serverObjects respond(final RequestHeader header, final serverObje
prop.put("content_showSnapshots_link", snapshotPaths.iterator().next().getAbsolutePath());
}
prop.put("content_showRanking_ranking", Float.toString(result.score()));
prop.put("content_ranking", Float.toString(result.score()));
}
prop.put("content_urlhexhash", Seed.b64Hash2hexHash(urlhash));
prop.putHTML("content_urlname", nxTools.shortenURLString(result.urlname(), MAX_URL_LENGTH));

0 comments on commit 61be709

Please sign in to comment.