Skip to content
Permalink
Browse files

Added hint to clarify results rendered dates and 'Sort by date' switch

  • Loading branch information...
luccioman committed Mar 27, 2018
1 parent 90dc580 commit 311e91ff7756a3dc91c09e7ea0ac43e6a6042dc5
Showing with 10 additions and 4 deletions.
  1. +1 −1 htroot/ConfigSearchPage_p.html
  2. +1 −1 htroot/yacysearchitem.html
  3. +8 −2 htroot/yacysearchtrailer.html
@@ -257,7 +257,7 @@ <h4 class="linktitle">
<table style="border-width:0">
<tr>
<td style="width:15px;"></td>
<td>#[content_showDate_date]#</td>
<td><span title="Last known modification date">#[content_showDate_date]#</span></td>
<td><span role="separator" aria-orientation="vertical">&nbsp;|&nbsp;</span>42 kbyte</td>
<td><span role="separator" aria-orientation="vertical">&nbsp;|&nbsp;</span><a id="metadataLink" href="solr/select?q=*:*&defType=edismax&start=0&rows=3&core=collection1&wt=html" target="LayouTest">Metadata</a></td>
<td><span role="separator" aria-orientation="vertical">&nbsp;|&nbsp;</span><a id="parserLink" href="ViewFile.html" target="LayouTest">Parser</a></td>
@@ -38,7 +38,7 @@ <h4 class="linktitle">
</p>
#(/showKeywords)#
<p class="urlinfo">
#(showDate)#::#[date]##(/showDate)#
#(showDate)#::<span title="Last known modification date">#[date]#</span>#(/showDate)#
#(showEvent)#::on #[date]##(/showEvent)#
#(showSize)#::<span role="separator" aria-orientation="vertical">&nbsp;|&nbsp;</span>#[sizename]##(/showSize)#
#(showMetadata)#::<span role="separator" aria-orientation="vertical">&nbsp;|&nbsp;</span><a href="solr/select?q=id:%22#[urlhash]#%22&defType=edismax&start=0&rows=1&core=collection1&wt=html" target="_blank">Metadata</a>#(/showMetadata)#
@@ -45,8 +45,14 @@
<p class="navbutton"></p>
<div id="rankingButtons" class="btn-group btn-group-justified" data-nav-generation="#[nav-generation]#">
<!-- data-nav-generation attribute helps the browser know whether the search navigators have to be refreshed -->
<div class="btn-group btn-group-xs"><button type="button" id="sort_button_context" class="btn btn-default" onclick="document.getElementById('search').value=document.getElementById('search').value.replace(' /date','');document.searchform.submit();">Context Ranking</button></div>
<div class="btn-group btn-group-xs"><button type="button" id="sort_button_date" class="btn btn-default" onclick="document.getElementById('search').value=document.getElementById('search').value + ' /date';document.searchform.submit();">Sort by Date</button></div>
<div class="btn-group btn-group-xs">
<button type="button" id="sort_button_context" class="btn btn-default" title="Use the default ranking profile (customizable), ordering results by score."
onclick="document.getElementById('search').value=document.getElementById('search').value.replace(' /date','');document.searchform.submit();">Context Ranking</button>
</div>
<div class="btn-group btn-group-xs">
<button type="button" id="sort_button_date" class="btn btn-default" title="Use the 'Date' ranking profile, ordering results by default on each document last modification date."
onclick="document.getElementById('search').value=document.getElementById('search').value + ' /date';document.searchform.submit();">Sort by Date</button>
</div>
</div>
<script>
if (document.getElementById('search').value.indexOf(" /date") == -1) {

0 comments on commit 311e91f

Please sign in to comment.
You can’t perform that action at this time.