﻿<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
  <!-- 
    This file is a template for Open Search description generator.
    OpenSearch Service (also referred as .COM integration service) can generate Open Search Description document.
    The generation is configured in Web.config file by two attributes in /<olive.viewpoint>/<web.application>/<openSearchService> element:
      generateDescription: values are "true" or "false" (default)
      customDescriptionTemplate: path (relative to application virtual directory) to this file
      
    There are three modes of having Open Search description document for Olive Digital Edition application:
    1. Generating description from internal template:
        OpenSearch Service has default template (which looks mostly like this file after installation).
        To use it, set generateDescription attribute to "true" and remove customDescriptionTemplate attribute.
        
    2. Generating description from custom template:
        This file may be edited to set custom values of any kind except <Url> tags (see below on generation process).
        To use custom description, set generateDescription attribute to "true" and customDescriptionTemplate attribute
        to path to this file, e.g. "OpenSearchDescription.xml".
        
    3. Using custom description without generation:
        Set generateDescription attribute to "false" and remove customDescriptionTemplate attribute. Update Default.aspx
        (<link rel="search" href="OpenSearchDescription.xml" type="application/opensearchdescription+xml" title="Olive Digital Edition Search" />)
        href attrubute to description path (the path cannot be OpenSearchDescription.xml, so this file will have to be renamed).
        Update <Url> elements below to reflect correct URLs in template attributes (replace [application url] with real url).
        
    Generation process:
    * The generated description is available at <application url>/OpenSearchDescription.xml.
    * During generation process, all existing <Url> elements are removed, and several new <Url> elements are created:
      one element for RSS results format, one for ATOM format, and one for HTML format. The last one (HTML format) is created only
      if HTML format is enabled in Web.config (by enableHTMLFormat attribute in <openSearchService> element). All attribute in these
      elements are generated automatically, full http paths are taken from application virtual directory.

    
    For more information about Open Search Description documents, see Open Search specification:
    http://www.opensearch.org/Specifications/OpenSearch/1.1#OpenSearch_description_document

  -->
	<ShortName>Olive Digital Edition Search</ShortName>
	<Description>Use Olive Digital Edition to search newspaper articles.</Description>
	<Tags>news web</Tags>
	<Contact>support@olivesoftware.com</Contact>
	<Url type="application/rss+xml"
		 template="[application url]/OpenSearch.svc/Search?q={searchTerms}&amp;page={startPage?}&amp;pageSize={count?}&amp;startIndex={startIndex?}&amp;format=rss"/>
	<Url type="application/atom+xml"
		 template="[application url]/OpenSearch.svc/Search?q={searchTerms}&amp;page={startPage?}&amp;pageSize={count?}&amp;startIndex={startIndex?}&amp;format=atom"/>
	<Url type="text/html"
		 template="[application url]/OpenSearch.svc/SearchHTML?q={searchTerms}&amp;page={startPage?}&amp;pageSize={count?}&amp;startIndex={startIndex?}"/>
	<LongName>Olive Digital Edition Web Search Sample Service</LongName>
	<!--
	<Image height="64" width="64" type="image/png">http://www.snowwhite.com/websearch.png</Image>
	<Image height="16" width="16" type="image/vnd.microsoft.icon">http://www.snowwhite.com/websearch.ico</Image>
	-->
	<Query role="example" searchTerms="moment" />
	<Developer>Olive Software Inc. Development Team</Developer>
	<Attribution>
		Copyright 2000-2000, Olive Software Inc., All Rights Reserved
	</Attribution>
	<SyndicationRight>open</SyndicationRight>
	<AdultContent>false</AdultContent>
	<Language>en-us</Language>
	<OutputEncoding>UTF-8</OutputEncoding>
	<InputEncoding>UTF-8</InputEncoding>
</OpenSearchDescription>

