2010-10-17 18:51:29 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- This page is only XHTML 1.0 Transitional and not Strict because iframes are in use -->
2007-01-06 13:21:13 +01:00
< html xmlns = "http://www.w3.org/1999/xhtml" >
2014-09-21 03:48:54 +02:00
< head >
2012-09-11 02:03:14 +02:00
< script type = "text/javascript" >
//< ![CDATA[
function xmlhttpPost() {
var searchform = document.getElementById('searchform');
search(searchform.url.value);
}
function search(query) {
var xmlHttpReq = false;
var self = this;
if (window.XMLHttpRequest) { // Mozilla/Safari
self.xmlHttpReq = new XMLHttpRequest();
}
else if (window.ActiveXObject) { // IE
self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
}
2013-01-03 01:27:16 +01:00
self.xmlHttpReq.open('GET', "/solr/select?q=sku:\"" + query + "\" OR host_s:\"" + query + "\" OR host_dnc_s:\"" + query + "\" OR host_organization_s:\"" + query + "\" OR host_organizationdnc_s:\"" + query + "\" OR host_subdomain_s:\"" + query + "\"& start=0& rows=100& wt=yjson", true);
2012-09-11 02:03:14 +02:00
self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
self.xmlHttpReq.onreadystatechange = function() {
if (self.xmlHttpReq.readyState == 4) {
updatepage(self.xmlHttpReq.responseText);
}
2014-09-21 03:48:54 +02:00
};
2012-09-11 02:03:14 +02:00
self.xmlHttpReq.send(null);
}
function updatepage(str) {
var raw = document.getElementById("raw");
if (raw != null) raw.innerHTML = str;
var rsp = eval("("+str+")");
var firstChannel = rsp.channels[0];
var totalResults = firstChannel.totalResults.replace(/[,.]/,"");
var html = "";
if (totalResults > 0 & & firstChannel.items.length > 0) {
var item;
html += "< table class = \"networkTable\" border = \"0\" cellpadding = \"2\" cellspacing = \"1\" width = \"99%\" > ";
html += "< tr class = \"TableHeader\" valign = \"bottom\" > ";
html += "< td > URL from index (total results = " + totalResults + ")< \/td>";
for (var i = 0; i < firstChannel.items.length ; i + + ) {
item = firstChannel.items[i];
2013-01-24 01:50:59 +01:00
html += "< tr class = \"TableCellLight\" > < td align = \"left\" > < a href = \"ViewFile.html?url=" + item . link + " \ " > " + item.link + "< \/a>< \/td>";
2012-09-11 02:03:14 +02:00
}
html += "< \/table>";
}
document.getElementById("searchresults").innerHTML = html;
}
//]]>
< / script >
2007-01-06 13:21:13 +01:00
< title > YaCy '#[clientname]#': View URL Content< / title >
#%env/templates/metas.template%#
2014-02-10 21:40:42 +01:00
< script type = "text/javascript" src = "js/highslide/highslide.js" > < / script >
2007-01-06 13:21:13 +01:00
< / head >
< body >
2011-11-14 21:19:41 +01:00
2011-12-10 01:35:38 +01:00
#(topmenu)#
2008-10-18 21:39:46 +02:00
#%env/templates/embeddedheader.template%#
2011-12-10 01:35:38 +01:00
::
#%env/templates/simpleheader.template%#
#(/topmenu)#
2014-03-19 16:20:17 +01:00
< script type = "text/javascript" >
document.getElementById("header_urlviewer").className += " active";
< / script >
2014-11-30 01:58:14 +01:00
< div id = "api" style = "top:58px;" >
2014-09-21 03:48:54 +02:00
< a href = "api/getpageinfo_p.xml?actions=title,robots&url=#[url]#" id = "apilink" >
2014-03-18 13:42:31 +01:00
< img src = "env/grafics/api.png" width = "60" height = "40" alt = "API" / >
< / a >
< span > See the page info about the url.< / span >
< / div >
2007-01-06 13:21:13 +01:00
< h2 > View URL Content< / h2 >
2005-10-18 09:45:27 +02:00
2012-09-11 02:03:14 +02:00
< form method = "get" action = "ViewFile.html" id = "searchform" accept-charset = "ascii" onkeyup = "xmlhttpPost(); return false;" >
2010-03-05 16:41:15 +01:00
< fieldset > < legend > Get URL Viewer< / legend >
< dl >
2012-09-11 02:03:14 +02:00
< dt > URL:< / dt >
< dd >
2012-10-16 17:13:18 +02:00
< input type = "text" size = "60" name = "url" id = "url" value = "#[url]#" / >
2015-12-25 01:08:51 +01:00
< input type = "submit" name = "show" class = "btn btn-primary" value = "Show Metadata" / >
#(moar)#::< input type = "button" value = "Browse Host" class = "btn btn-default" onClick = "location.href='/HostBrowser.html?path=' + document.getElementById('url').value" / > #(/moar)#
2012-09-11 02:03:14 +02:00
< div id = "searchresults" > < / div >
< / dd >
2014-07-24 14:59:37 +02:00
#(moar)#::
< dt > Search in Document:< / dt >
< dd >
< input type = "text" size = "60" name = "search" id = "search" value = "#[search]#" / >
2015-12-25 01:08:51 +01:00
< input type = "submit" name = "show" class = "btn btn-primary" value = "Show Snippet" / >
2014-07-24 14:59:37 +02:00
< / dd >
#(/moar)#
2010-03-05 16:41:15 +01:00
< / dl >
< / fieldset >
< / form >
2013-06-09 12:12:34 +02:00
< table border = "0" >
< tr > < td valign = "top" >
2007-01-06 13:21:13 +01:00
#(error)#
< form method = "get" action = "ViewFile.html" accept-charset = "ascii" >
2010-03-05 16:41:15 +01:00
< fieldset > < legend > URL Metadata< / legend >
2007-01-06 13:21:13 +01:00
< dl >
2012-08-13 10:40:04 +02:00
< dt > URL:< / dt > < dd > < a href = "#[url]#" > #[url]#< / a > < / dd >
2014-02-10 21:40:42 +01:00
< dt > Hash:< / dt > < dd > < a href = "solr/select?defType=edismax&start=0&rows=3&core=collection1&wt=html&q=id:%22#[hash]#%22" > #[hash]#< / a > (click this for full metadata)< / dd >
2012-08-13 10:40:04 +02:00
< dt > In Metadata:< / dt > < dd > #(inurldb)#no::yes#(/inurldb)#< / dd >
< dt > In Cache:< / dt > < dd > #(incache)#no::yes#(/incache)#< / dd >
2014-11-13 00:58:58 +01:00
< dt > First Seen:< / dt > < dd > #[firstSeen]#< / dd >
2012-08-13 10:40:04 +02:00
< dt > Word Count:< / dt > < dd > #[wordCount]#< / dd >
2007-01-06 13:21:13 +01:00
< dt > Description:< / dt > < dd > #[desc]#< / dd >
2012-08-13 10:40:04 +02:00
< dt > Size:< / dt > < dd > #[size]# Bytes< / dd > #(mimeTypeAvailable)#::
< dt > MimeType:< / dt > < dd > #[mimeType]#< / dd > #(/mimeTypeAvailable)#
2012-09-04 14:47:53 +02:00
< dt > Collections:< / dt > < dd > #[collections]#< / dd >
2007-01-06 13:21:13 +01:00
< dt > < label for = "viewMode" > View as< / label > :< / dt >
< dd >
2010-09-04 00:35:07 +02:00
< select id = "viewMode" name = "viewMode" onchange = 'this.form.submit()' >
2010-03-07 00:41:51 +01:00
< option value = "iframeWeb" # ( vMode-iframeWeb ) # :: selected = "selected" # ( / vMode-iframeWeb ) # > Original from Web< / option >
< option value = "iframeCache" # ( vMode-iframeCache ) # :: selected = "selected" # ( / vMode-iframeCache ) # > Original from Cache< / option >
2007-01-06 13:21:13 +01:00
< option value = "plain" # ( vMode-plain ) # :: selected = "selected" # ( / vMode-plain ) # > Plain Text< / option >
< option value = "parsed" # ( vMode-parsed ) # :: selected = "selected" # ( / vMode-parsed ) # > Parsed Text< / option >
< option value = "sentences" # ( vMode-sentences ) # :: selected = "selected" # ( / vMode-sentences ) # > Parsed Sentences< / option >
2009-01-04 03:27:29 +01:00
< option value = "words" # ( vMode-words ) # :: selected = "selected" # ( / vMode-words ) # > Parsed Tokens/Words< / option >
2007-01-06 13:21:13 +01:00
< option value = "links" # ( vMode-links ) # :: selected = "selected" # ( / vMode-links ) # > Link List< / option >
2013-06-13 13:22:43 +02:00
< option value = "iframeCitations" # ( vMode-iframeCitations ) # :: selected = "selected" # ( / vMode-iframeCitations ) # > Citation Report< / option >
2007-01-06 13:21:13 +01:00
< / select >
2015-12-25 01:08:51 +01:00
< noscript > < input type = "submit" name = "show" class = "btn btn-primary" value = "Show" / > < / noscript >
2007-01-06 13:21:13 +01:00
< / dd >
2007-03-08 15:00:04 +01:00
< / dl >
2007-01-06 13:21:13 +01:00
< input type = "hidden" name = "words" value = "#[words]#" / >
< input type = "hidden" name = "urlHash" value = "#[hash]#" / >
2010-03-05 16:41:15 +01:00
< input type = "hidden" name = "url" value = "#[url]#" / >
2007-01-06 13:21:13 +01:00
< / fieldset >
< / form >
2005-10-18 09:45:27 +02:00
:: <!-- 1 -->
:: <!-- 2 -->
2007-01-06 13:21:13 +01:00
< span class = "error" > Unable to find URL Entry in DB< / span >
2005-10-18 09:45:27 +02:00
:: <!-- 3 -->
2007-01-06 13:21:13 +01:00
< span class = "error" > Invalid URL< / span >
2005-10-18 09:45:27 +02:00
:: <!-- 4 -->
2007-01-06 13:21:13 +01:00
< p class = "error" > Unable to download resource content.< / p >
2006-09-20 14:25:07 +02:00
< tt > #[errorText]#< / tt >
2005-10-18 09:45:27 +02:00
:: <!-- 5 -->
2007-01-06 13:21:13 +01:00
< p class = "error" > Unable to parse resource content.< / p >
2006-09-20 14:25:07 +02:00
< tt > #[errorText]#< / tt >
2006-09-06 16:31:17 +02:00
:: <!-- 6 -->
2007-01-06 13:21:13 +01:00
< span class = "error" > Unsupported protocol.< / span >
2005-10-18 09:45:27 +02:00
#(/error)#
2013-06-09 12:12:34 +02:00
< / td > < td valign = "top" >
2014-07-24 14:59:37 +02:00
#(showSnippet)#::
< form action = "" >
< fieldset > < legend > Snippet< / legend >
< dl >
< dt > Headline< / dt > < dd > #[headline]#< / dd >
< dt > Teaser Text< / dt > < dd > #[teasertext]#< / dd >
< / dl >
< / fieldset >
< / form >
#(/showSnippet)#
2005-10-18 09:45:27 +02:00
#(viewMode)#
:: <!-- 1 -->
2010-03-07 00:41:51 +01:00
< fieldset > < legend > Original Content from Web< / legend >
2007-01-06 13:21:13 +01:00
< p class = "tt" >
#[plainText]#
< / p >
< / fieldset >
2005-10-18 09:45:27 +02:00
:: <!-- 2 -->
2010-10-17 18:51:29 +02:00
< form action = "" >
< fieldset > < legend > Parsed Content< / legend >
< dl >
2010-03-11 01:11:14 +01:00
< dt > dc:title< / dt > < dd > #[title]#< / dd >
< dt > dc:creator< / dt > < dd > #[creator]#< / dd >
< dt > dc:subject< / dt > < dd > #[subject]#< / dd >
< dt > dc:description< / dt > < dd > #[description]#< / dd >
< dt > dc:publisher< / dt > < dd > #[publisher]#< / dd >
< dt > dc:format< / dt > < dd > #[format]#< / dd >
< dt > dc:identifier< / dt > < dd > #[identifier]#< / dd >
< dt > dc:source< / dt > < dd > #[source]#< / dd >
2011-03-30 02:49:47 +02:00
< dt > geo:lat & geo:long< / dt > < dd > < a href = "osm.png?lon=#[lon]#&lat=#[lat]#&zoom=14" onclick = "return hs.expand(this)" > lat=#[lat]#, lon=#[lon]#< / a > < / dd >
2010-03-11 01:11:14 +01:00
< / dl >
< p class = "tt" > #[parsedText]#< / p >
2010-10-17 18:51:29 +02:00
< / fieldset >
< / form >
2005-10-18 09:45:27 +02:00
:: <!-- 3 -->
2010-03-05 16:41:15 +01:00
< fieldset > < legend > Parsed Sentences< / legend >
2007-01-06 13:21:13 +01:00
< ol > #{sentences}#
< li class = "tt" > #[text]#< / li > #{/sentences}#
< / ol >
< / fieldset >
2005-10-18 09:45:27 +02:00
:: <!-- 4 -->
2010-03-07 00:41:51 +01:00
< fieldset > < legend > Original from Web< / legend >
2007-01-06 13:21:13 +01:00
< iframe src = "#[url]#" width = "800" height = "400" / >
< / fieldset >
2006-12-07 03:40:57 +01:00
:: <!-- 5 -->
2010-03-07 00:41:51 +01:00
< fieldset > < legend > Original from Cache< / legend >
2014-02-10 21:40:42 +01:00
#(html)#::< iframe src = "CacheResource_p.html?url=#[url]#" width = "800" height = "400" / > #(/html)#
#(png)#::< iframe src = "CacheResource_p.png?url=#[url]#" width = "800" height = "400" / > #(/png)#
2010-03-07 00:41:51 +01:00
< / fieldset >
:: <!-- 6 -->
2010-10-17 18:51:29 +02:00
< fieldset > < legend > Link List< / legend >
2014-03-31 01:15:35 +02:00
< table border = "0" >
2011-08-25 17:52:25 +02:00
< tr class = "head" >
< td > nr< / td >
< td class = "tt" > type< / td >
< td class = "tt" > name< / td >
< td class = "tt" > link< / td >
< td class = "tt" > text< / td >
< td class = "tt" > rel< / td >
< / tr >
2006-12-07 03:40:57 +01:00
#{links}#
2007-01-06 13:21:13 +01:00
< tr class = "TableCell#(dark)#Light::Dark::Summary#(/dark)#" >
< td > #[nr]#< / td >
2010-10-17 18:51:29 +02:00
< td class = "tt" > < tt > #[type]#< / tt > < / td >
2011-08-25 17:52:25 +02:00
< td class = "tt" > < tt > #[name]#< / tt > < / td >
2010-10-17 18:51:29 +02:00
< td class = "tt" > < tt > < a href = "#[url]#" > #[link]#< / a > < / tt > < / td >
2011-08-25 17:52:25 +02:00
< td class = "tt" > < tt > #[text]#< / tt > < / td >
< td class = "tt" > < tt > #[rel]#< / tt > < / td >
2007-01-06 13:21:13 +01:00
< / tr > #{/links}#
2010-10-17 18:51:29 +02:00
< / table >
< / fieldset >
2010-03-07 00:41:51 +01:00
:: <!-- 7 -->
2009-01-04 03:27:29 +01:00
< fieldset > < legend > Parsed Tokens< / legend >
< ol > #{words}#
2010-10-17 18:51:29 +02:00
< li class = "tt" > < tt > #[word]#< / tt > < / li > #{/words}#
2009-01-04 03:27:29 +01:00
< / ol >
< / fieldset >
2013-06-13 13:22:43 +02:00
:: <!-- 8 -->
< fieldset > < legend > CitationReport< / legend >
2014-02-10 21:40:42 +01:00
< iframe src = "api/citation.html?url=#[url]#" width = "800" height = "400" / >
2013-06-13 13:22:43 +02:00
< / fieldset >
2005-10-18 09:45:27 +02:00
#(/viewMode)#
2013-06-09 12:12:34 +02:00
< / td > < / tr > < / table >
2005-10-18 09:45:27 +02:00
2005-11-21 09:33:54 +01:00
#%env/templates/footer.template%#
2005-10-18 09:45:27 +02:00
< / body >
< / html >