1
0
mirror of https://github.com/yacy/yacy_search_server.git synced 2025-07-22 09:14:38 -04:00

enable sku as anchor in html response writer

This commit is contained in:
Michael Peter Christen
2014-12-14 04:02:13 +01:00
parent aa80cb1159
commit 114f0afc1e
2 changed files with 17 additions and 1 deletions
defaults
source/net/yacy/cora/federate/solr/responsewriter

@ -18,6 +18,18 @@ sku
## last-modified from http header, date (mandatory field)
last_modified
## if date expressions can be found in the content, these dates are listed here in order of the appearances"),
#dates_in_content_sxt
## the number of entries in dates_in_content_sxt
#dates_in_content_count_i
## if dates_in_content_sxt is filled, this contains the oldest date from the list of available dates"),
#date_in_content_min_dt
## if dates_in_content_sxt is filled, this contains the youngest date from the list of available dates, that may also be possibly in the future"),
#date_in_content_max_dt
## mime-type of document, string (mandatory field)
content_type

@ -168,7 +168,11 @@ public class HTMLResponseWriter implements QueryResponseWriter {
writer.write("<dt>");
writer.write(entry.getKey());
writer.write("</dt><dd>");
XML.escapeAttributeValue(entry.getValue(), writer);
if (entry.getKey().equals("sku")) {
writer.write("<a href=\"" + entry.getValue() + "\">" + entry.getValue() + "</a>");
} else {
XML.escapeAttributeValue(entry.getValue(), writer);
}
writer.write("</dd>\n");
}
writer.write("</dl>\n");