yacy_search_server/htroot/yacysearchitem.json
Michael Peter Christen fd4e2c809a Show dates in the content of a document in the search result:
- if an eventDate is given in the search result, replace the document
date with the event date and prefix it with the string "on ".
- the document date is omitted if a date from the cent is shown

Added also the date as fields in the json and rss result sets.
2015-03-02 18:00:20 +01:00

33 lines
929 B
JSON

#(content)#::#(nl)#:: ,#(/nl)#
{
"title": "#[title-json]#",
"link": "#[link]#",
"code": "#[code]#",
"description": "#[description-json]#",
"pubDate": "#[date822]#",
#(showEvent)#::"eventDate": "#[date822]#",#(/showEvent)#
"size": "#[size]#",
"sizename": "#[sizename]#",
"guid": "#[urlhash]#",
"faviconCode": "#[faviconCode]#",
"host": "#[host]#",
"path": "#[path]#",
"file": "#[file]#",
"urlhash": "#[urlhash]#",
"ranking": "#[ranking]#"
}::#(item)#::#(nl)#:: ,#(/nl)#
{
"title": "#[name]#",
"icon": "/ViewImage.png?maxwidth=96&maxheight=96&code=#[code]#",
"image": "#[href]#",
"cache": "#[hrefCache]#",
"url": "#[source]#",
"urlhash": "#[urlhash]#",
"host": "#[sourcedom]#",
"width": "#[width]#",
"height": "#[height]#"
}#(/item)#::
::
::
::
#(/content)#