List Info

Thread: Extending OpenSearch 1.1




Extending OpenSearch 1.1
user name
2006-08-11 03:27:51
Hi OpenSearchers,

We are working on a project to OpenSearch enable collection
databases
from several Australian cultural agencies such as libraries,
museums,
archives and galleries.

We would like to include links to thumbnail images in the
OpenSearch RSS
or Atom Response and I wanted to get advice on the best way
to do this.
Traditionally when searching say a database of art or museum
objects it
is good to include thumbnails of the collection item in the
results list
so that the user can quickly see if the item is of interest.
In fact
wouldn't this be a good optional element to include in the
OpenSearch
1.1 Response?

I note that OpenSearch 1.1 includes reference to an optional
<Image>
element in the OpenSearch Description. Could this be re-used
in the
OpenSearch Response like this? :

<?xml version="1.0"
encoding="UTF-8"?>
<rss version="2.0" 
     xmlns:opensearch="http://a9.com/-/
spec/opensearch/1.1/">
  <channel>
    <title>Example.com Search: New York
history</title>
    <link>http
://example.com/New+York+history</link>
    <description>Search results for "New York
history" at
Example.com</description>
   
<opensearch:totalResults>4230000</opensearch:totalR
esults>
   
<opensearch:startIndex>21</opensearch:startIndex>
;
   
<opensearch:itemsPerPage>10</opensearch:itemsPerPag
e>
    <opensearch:link rel="search"
                     href="http://e
xample.com/opensearchdescription.xml"
type="application/opensearchdescription+xml"/>
;
    <opensearch:Query role="request"
searchTerms="New York History" />
    <item>
      <title>New York History</title>
 
<link>http://www.columbia.edu/cu/lweb/eguides/a
merihist/nyc.html</link>
 
<opensearch:Image>http://www.centralparknyc.org/media/image/Bethesda19th
C.jpg</opensearch:Image>
      <description>
        ... Harlem.NYC - A virtual tour and information on 
        businesses ...  with historic photos of Columbia's
own New York 
        neighborhood ... Internet Resources for the City's
History. ...
      </description>
    </item>
    <!-- 9 additional <item> elements appear here
-->
  </channel>
</rss>

Or I guess we could do this just for our project via the
extensibility
feature of OpenSearch
(http://opensearch.a9.com/spec/1.1/response/#extensibili
ty).

Any advice appreciated.

Tony Boston
National Library of Australia



=== [ Opensearch.org Discuss mailing list ]
========================http:
//opensearch.org/mailman/listinfo/discuss/
Unsubscribe on the web page, or discuss-unsubscribeopensearch.org
Problems?  Reach a human at mailman-adminopensearch.org
Extending OpenSearch 1.1
user name
2006-08-11 03:59:31
there are a couple of choices I think..

1) atom:link with a custom rel value
3) atom:enclosure - doesn't seem very appropriate
2) pheed extension http://www.pheed.com/phee
d/  - not so great because
you can't specify dimensions etc
4) yahoo-initiated media rss - seems like the most
appropriate to me

thoughts, anyone?


On 8/10/06, Tony Boston <tbostonnla.gov.au> wrote:
> Hi OpenSearchers,
>
> We are working on a project to OpenSearch enable
collection databases
> from several Australian cultural agencies such as
libraries, museums,
> archives and galleries.
>
> We would like to include links to thumbnail images in
the OpenSearch RSS
> or Atom Response and I wanted to get advice on the best
way to do this.
> Traditionally when searching say a database of art or
museum objects it
> is good to include thumbnails of the collection item in
the results list
> so that the user can quickly see if the item is of
interest. In fact
> wouldn't this be a good optional element to include in
the OpenSearch
> 1.1 Response?
>
> I note that OpenSearch 1.1 includes reference to an
optional <Image>
> element in the OpenSearch Description. Could this be
re-used in the
> OpenSearch Response like this? :
>
> <?xml version="1.0"
encoding="UTF-8"?>
> <rss version="2.0"
>      xmlns:opensearch="http://a9.com/-/
spec/opensearch/1.1/">
>   <channel>
>     <title>Example.com Search: New York
history</title>
>     <link>http
://example.com/New+York+history</link>
>     <description>Search results for "New
York history" at
> Example.com</description>
>    
<opensearch:totalResults>4230000</opensearch:totalR
esults>
>    
<opensearch:startIndex>21</opensearch:startIndex>
;
>    
<opensearch:itemsPerPage>10</opensearch:itemsPerPag
e>
>     <opensearch:link rel="search"
>                      href="http://e
xample.com/opensearchdescription.xml"
>
type="application/opensearchdescription+xml"/>
;
>     <opensearch:Query role="request"
searchTerms="New York History" />
>     <item>
>       <title>New York History</title>
>
> <link>http://www.columbia.edu/cu/lweb/eguides/a
merihist/nyc.html</link>
>
> <opensearch:Image>http://www.centralparknyc.org/media/image/Bethesda19th
> C.jpg</opensearch:Image>
>       <description>
>         ... Harlem.NYC - A virtual tour and information
on
>         businesses ...  with historic photos of
Columbia's own New York
>         neighborhood ... Internet Resources for the
City's History. ...
>       </description>
>     </item>
>     <!-- 9 additional <item> elements appear
here -->
>   </channel>
> </rss>
>
> Or I guess we could do this just for our project via
the extensibility
> feature of OpenSearch
> (http://opensearch.a9.com/spec/1.1/response/#extensibili
ty).
>
> Any advice appreciated.
>
> Tony Boston
> National Library of Australia
>
>
>
>  [ Opensearch.org Discuss mailing list ] http:
//opensearch.org/mailman/listinfo/discuss/
> Unsubscribe on the web page, or discuss-unsubscribeopensearch.org
> Problems?  Reach a human at mailman-adminopensearch.org
>

=== [ Opensearch.org Discuss mailing list ]
=========================
http:
//opensearch.org/mailman/listinfo/discuss/
Unsubscribe on the web page, or discuss-unsubscribeopensearch.org
Problems?  Reach a human at mailman-adminopensearch.org
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )