@@ -, +, @@ --- C4/Output.pm | 5 +++-- opac/opac-search.pl | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) --- a/C4/Output.pm +++ a/C4/Output.pm @@ -235,7 +235,7 @@ $content_type. If applicable, $cookie can be undef, and it will not be sent. -$content_type is one of the following: 'html', 'js', 'json', 'xml', 'rss', or 'atom'. +$content_type is one of the following: 'html', 'js', 'json', 'opensearchdescription', 'xml', 'rss', or 'atom'. $status is an HTTP status message, like '403 Authentication Required'. It defaults to '200 OK'. @@ -259,7 +259,8 @@ sub output_with_http_headers { # NOTE: not using application/atom+xml or application/rss+xml because of # Internet Explorer 6; see bug 2078. 'rss' => 'text/xml', - 'atom' => 'text/xml' + 'atom' => 'text/xml', + 'opensearchdescription' => 'application/opensearchdescription+xml', ); die "Unknown content type '$content_type'" if ( !defined( $content_type_map{$content_type} ) ); --- a/opac/opac-search.pl +++ a/opac/opac-search.pl @@ -1013,7 +1013,7 @@ $template->param( add_to_some_public_shelves => $some_public_shelves, ); -my $content_type = ($format eq 'rss' or $format eq 'atom') ? $format : 'html'; +my $content_type = ($format eq 'rss' or $format eq 'atom' or $format eq 'opensearchdescription') ? $format : 'html'; # If GoogleIndicTransliteration system preference is On Set parameter to load Google's javascript in OPAC search screens if (C4::Context->preference('GoogleIndicTransliteration')) { --