mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
Add data-ranking attribute to each HTML search item.
This commit is contained in:
parent
8e4f31bdc7
commit
61be709a97
|
@ -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 class yacysearchitem {
|
|||
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));
|
||||
|
|
Loading…
Reference in New Issue
Block a user