xmlns:openIll="http://open-ils.org/xml/openIll/1.0">
<Url>http://gapines.org/opensearch/?target=mr_result&mr_search_type=keyword&mr_search_query={searchTerms}&page={startPage}&mr_search_depth=0&mr_search_location=1&pagesize={count}&max_rank={relevanceScale}</Url>
<Format>http://a9.com/-/spec/opensearchrss/1.0/</Format>
- <ShortName>Pines</ShortName>
- <LongName>Pines Consortium Catalogue</LongName>
+ <ShortName>Evergreen DEMO</ShortName>
+ <LongName>Pines Consortium DEMO OpenSearch Catalogue</LongName>
<Description>Search for books in Pines.</Description>
- <Tags>book library research</Tags>
+ <Tags>book library research Evergreen Open-ILS GPLS</Tags>
<Image>http://gapines.org/images/small_logo.jpg</Image>
<SampleSearch>harry potter</SampleSearch>
<Developer>GPLS</Developer>
vertical-align: top;
}
-.data_table {
+.source_input {
+ border: dotted blue 1px;
}
caption {
border-collapse: collapse;
/*width: 100%;*/
max-width: 400px;
+ min-width: 300px;
}
.res_tr {
if (result.childNodes.length > 1) {
return result.childNodes[1].nodeValue;
} else {
- return result.textContent;
+ return result.firstChild.nodeValue;
}
} else {
return '';
}
try {
- title = xml.getElementsByTagName('title')[0].textContent;
+ title = getElementTextNS('','title',xml,0);
} catch (e) {
title = '';
}
try {
- tlink = xml.getElementsByTagName('link')[0].textContent;
+ tlink = getElementTextNS('','link',xml,0);
} catch (e) {
tlink = '';
}
try {
- description = xml.getElementsByTagName('description')[0].textContent;
+ description = getElementTextNS('','description',xml,0);
} catch (e) {
description = '';
}
<form onsubmit="opensearch(document.getElementById('term').value, true); return false;">
<table>
<tr valign="top">
- <td>Keyword Search: </td>
- <td align="left">
+ <td align="left">Keyword Search:
<input type="text" id="term" value="javascript"/>
<input type="submit" value="Go!"/>
</td>
- <td>Hits per Source: </td>
- <td>
+ <td align="right">Hits per Source:
<select onchange="current_count=this.options[this.selectedIndex].value;">
<option value="5" selected>5</option>
<option value="10">10</option>
</td>
</tr>
<tr valign="top">
- <td colspan=4>Sources:
- <input name="source" type="checkbox" value="http://gapines.org/opensearch.xml" checked>GPLS Pines
- <input name="source" type="checkbox" value="http://rsinger.library.gatech.edu/opensearch/osdd-gil.xml" checked>GIL Universal Catalog
- <input name="source" type="checkbox" value="http://search.athenscounty.lib.oh.us/cgi-bin/koha/opensearchdescription">NPL/Koha
- <input name="source" type="checkbox" value="http://www.webdevref.com/blog/opensearchdescription.xml">WebDefRef
+ <td colspan=2>Sources:
+ <label class="source_input"><input name="source" type="checkbox" value="http://gapines.org/opensearch.xml" checked>GPLS Pines</label>
+ <label class="source_input"><input name="source" type="checkbox" value="http://rsinger.library.gatech.edu/opensearch/osdd-gil.xml" checked>GIL Universal Catalog</label>
+ <label class="source_input"><input name="source" type="checkbox" value="http://search.athenscounty.lib.oh.us/cgi-bin/koha/opensearchdescription">NPL/Koha</label>
+ <label class="source_input"><input name="source" type="checkbox" value="http://www.koders.com/search/KodersSourceCodeSearchDescription.xml">Koders Source Code</label>
+ <label class="source_input"><input name="source" type="checkbox" value="http://cnx.rice.edu/content/opensearchdescription">rice.edu Connexions</label>
+ <label class="source_input"><input name="source" type="checkbox" value="http://redlightgreen.com/ucwprod/web/opensearchDescription.xml">RedLightGreen</label>
+ <label class="source_input"><input name="source" type="checkbox" value="http://www.itpapers.com/itpaperssearchdescription.xml">ITPapers</label>
+ <!-- <input name="source" type="checkbox" value="http://www.webdevref.com/blog/opensearchdescription.xml">WebDefRef -->
</td>
</tr>
</table>