View | Details | Raw Unified | Return to bug 11994
Collapse All | Expand All

(-)a/C4/Output.pm (-2 / +3 lines)
Lines 235-241 $content_type. Link Here
235
235
236
If applicable, $cookie can be undef, and it will not be sent.
236
If applicable, $cookie can be undef, and it will not be sent.
237
237
238
$content_type is one of the following: 'html', 'js', 'json', 'xml', 'rss', or 'atom'.
238
$content_type is one of the following: 'html', 'js', 'json', 'opensearchdescription', 'xml', 'rss', or 'atom'.
239
239
240
$status is an HTTP status message, like '403 Authentication Required'. It defaults to '200 OK'.
240
$status is an HTTP status message, like '403 Authentication Required'. It defaults to '200 OK'.
241
241
Lines 259-265 sub output_with_http_headers { Link Here
259
        # NOTE: not using application/atom+xml or application/rss+xml because of
259
        # NOTE: not using application/atom+xml or application/rss+xml because of
260
        # Internet Explorer 6; see bug 2078.
260
        # Internet Explorer 6; see bug 2078.
261
        'rss'  => 'text/xml',
261
        'rss'  => 'text/xml',
262
        'atom' => 'text/xml'
262
        'atom' => 'text/xml',
263
        'opensearchdescription' => 'application/opensearchdescription+xml',
263
    );
264
    );
264
265
265
    die "Unknown content type '$content_type'" if ( !defined( $content_type_map{$content_type} ) );
266
    die "Unknown content type '$content_type'" if ( !defined( $content_type_map{$content_type} ) );
(-)a/opac/opac-search.pl (-2 / +1 lines)
Lines 1013-1019 $template->param( Link Here
1013
    add_to_some_public_shelves  => $some_public_shelves,
1013
    add_to_some_public_shelves  => $some_public_shelves,
1014
);
1014
);
1015
1015
1016
my $content_type = ($format eq 'rss' or $format eq 'atom') ? $format : 'html';
1016
my $content_type = ($format eq 'rss' or $format eq 'atom' or $format eq 'opensearchdescription') ? $format : 'html';
1017
1017
1018
# If GoogleIndicTransliteration system preference is On Set parameter to load Google's javascript in OPAC search screens
1018
# If GoogleIndicTransliteration system preference is On Set parameter to load Google's javascript in OPAC search screens
1019
if (C4::Context->preference('GoogleIndicTransliteration')) {
1019
if (C4::Context->preference('GoogleIndicTransliteration')) {
1020
- 

Return to bug 11994