writeTag("managingEditor", sEmail);
writeTag("webMaster", sEmail);
}
// add OpenSearch response elements
OpenSearchProperties osProps = records.getOpenSearchProperties();
if (osProps != null) {
String osTitle = Val.escapeXml(osProps.getShortName());
StringBuffer osQuery = new StringBuffer();
osQuery.append(" role=\"request\"");
osQuery.append(" start=\"1\"");
osQuery.append(" searchTerms=\"data\"");
_writer.println("<atom:link rel=\"search\" type=\"application/opensearchdescription+xml\""+
" href=\""+osProps.getDescriptionURL()+"\" title=\""+osTitle+"\"/>");
_writer.println("<opensearch:totalResults>"+osProps.getNumberOfHits()+"</opensearch:totalResults>");
_writer.println("<opensearch:startIndex>"+osProps.getStartRecord()+"</opensearch:startIndex>");
_writer.println("<opensearch:itemsPerPage>"+osProps.getRecordsPerPage()+"</opensearch:itemsPerPage>");
//_writer.println("<opensearch:Query "+osQuery.toString()+"/>");
//<opensearch:Query role="request" searchTerms="New York History" startPage="1" />
}
// write Atom 'self' link