Permalink
Browse files

URL Viewer : only display the link to metadata when metadata exists

  • Loading branch information...
luccioman committed Mar 30, 2017
1 parent 4b649b0 commit 5b5b9d5d96d8930eb7d2166520b0f5630b5f45bd
Showing with 2 additions and 1 deletion.
  1. +1 −1 htroot/ViewFile.html
  2. +1 −0 htroot/ViewFile.java
@@ -103,7 +103,7 @@ <h2>View URL Content</h2>
<fieldset><legend>URL Metadata</legend>
<dl>
<dt>URL:</dt><dd><a href="#[url]#">#[url]#</a></dd>
<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>
<dt>Hash:</dt><dd>#(inurldb)##[hash]#::<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)#(/inurldb)#</dd>
<dt>In Metadata:</dt><dd>#(inurldb)#no::yes#(/inurldb)#</dd>
<dt>In Cache:</dt><dd>#(incache)#no::yes#(/incache)#</dd>
<dt>First Seen:</dt><dd>#[firstSeen]#</dd>
@@ -356,6 +356,7 @@ public static serverObjects respond(final RequestHeader header, final serverObje
prop.put("error", "0");
prop.put("error_url", url.toNormalform(true));
prop.put("error_hash", urlHash);
prop.put("error_inurldb_hash", urlHash);
prop.put("error_wordCount", wordCount);
prop.put("error_firstSeen", "");
long firstseen = sb.index.getFirstSeenTime(ASCII.getBytes(urlHash));

0 comments on commit 5b5b9d5

Please sign in to comment.