Skip to content
Snippets Groups Projects
Commit 6d2be7a7 authored by Demian Katz's avatar Demian Katz
Browse files

Added last modified date to web result display.

parent a0400d84
No related merge requests found
......@@ -74,4 +74,15 @@ class SolrWeb extends SolrDefault
{
return $this->fields['url'];
}
/**
* Get the last modified date for the current record (or empty string if unset).
*
* @return string
*/
public function getLastModified()
{
return isset($this->fields['last_modified'])
? $this->fields['last_modified'] : '';
}
}
......@@ -28,6 +28,9 @@
<div class="resultItemLine3">
<span style="color:#008000;" class="ui-li-desc"><?=$this->escapeHtml($url)?></span>
<? $lastMod = $this->driver->getLastModified(); if (!empty($lastMod)): ?>
<br /><?=$this->transEsc('Last Modified')?>: <?=$this->escapeHtml(trim(str_replace(array('T', 'Z'), ' ', $lastMod)))?>
<? endif; ?>
</div>
</div>
<div class="clearer"></div>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment