enable sku as anchor in html response writer

pull/1/head
Michael Peter Christen 10 years ago
parent aa80cb1159
commit 114f0afc1e

@ -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>");
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");

Loading…
Cancel
Save