text-decoration: underline;
}
-a.record {
+div.record {
padding-left: 27px;
background-image: url(../gfx/arrow_right.gif);
background-position: 7px 6px;
margin-bottom: 5px;
}
-div.records a.select {
+a.record {
+}
+
+div.records a.selected{
padding-left: 27px;
background-image: url(../gfx/arrow_down.gif);
background-position: 7px 8px;
<?php
-/* $Id: page_segments.phpi,v 1.10 2007-01-15 04:34:29 quinn Exp $
+/* $Id: page_segments.phpi,v 1.11 2007-01-15 19:01:29 quinn Exp $
* ---------------------------------------------------
* Page segments
*/
<div class="container">
<div class="topbar">
<a href=".">
- <img id="logo" src="gfx/logo.gif" width="155" height="36"
+ <img id="logo" src="gfx/logo2.png" width="155" height="36"
alt="Keystone Retriever" />
</a>
<div class="topmenu">
-/* $Id: search.js,v 1.23 2007-01-15 04:34:29 quinn Exp $
+/* $Id: search.js,v 1.24 2007-01-15 19:01:29 quinn Exp $
* ---------------------------------------------------
* Javascript container
*/
for (i = 0; i < hits.length; i++)
{
- var mk = hits[i].getElementsByTagName("md-title");
- var field = '';
+ var tn = hits[i].getElementsByTagName("md-title");
+ var title = '';
+ var an = hits[i].getElementsByTagName("md-author");
+ var author = '';
- if (mk[0]) {
- field = mk[0].childNodes[0].nodeValue;
+ if (tn[0]) {
+ title = tn[0].childNodes[0].nodeValue;
} else {
- field = 'N/A';
+ title = 'N/A';
}
+ if (an[0])
+ author = an[0].childNodes[0].nodeValue;
- var record_cell = create_element('a', field);
+ var record_div = document.createElement('div');
+ record_div.className = 'record';
+
+ var record_cell = create_element('a', title);
record_cell.setAttribute('href', '#');
- record_cell.className = 'record';
- record_container.appendChild(record_cell);
+ record_div.appendChild(record_cell);
+ if (author)
+ {
+ record_div.appendChild(document.createTextNode(', by '));
+ record_div.appendChild(document.createTextNode(author));
+ }
+ record_container.appendChild(record_div);
}
shown++;