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

(-)a/opac/opac-search.pl (-1 / +9 lines)
Lines 142-151 if($cgi->cookie("bib_list")){ Link Here
142
142
143
if ($format eq 'rss' or $format eq 'opensearchdescription' or $format eq 'atom') {
143
if ($format eq 'rss' or $format eq 'opensearchdescription' or $format eq 'atom') {
144
    $template->param($format => 1);
144
    $template->param($format => 1);
145
    #NOTE: opensearchdescription doesn't actually use timestamp...
145
    $template->param(timestamp => strftime("%Y-%m-%dT%H:%M:%S-00:00", gmtime)) if ($format eq 'atom'); 
146
    $template->param(timestamp => strftime("%Y-%m-%dT%H:%M:%S-00:00", gmtime)) if ($format eq 'atom'); 
146
    # FIXME - the timestamp is a hack - the biblio update timestamp should be used for each
147
    # FIXME - the timestamp is a hack - the biblio update timestamp should be used for each
147
    # entry, but not sure if that's worth an extra database query for each bib
148
    # entry, but not sure if that's worth an extra database query for each bib
148
}
149
}
150
151
#NOTE: Return now for 'opensearchdescription' BZ 32639
152
if ( $format && $format eq 'opensearchdescription' ){
153
    my $content_type = $format;
154
    output_with_http_headers $cgi, $cookie, $template->output, $content_type;
155
    exit;
156
}
157
149
if (C4::Context->preference("marcflavour") eq "UNIMARC" ) {
158
if (C4::Context->preference("marcflavour") eq "UNIMARC" ) {
150
    $template->param('UNIMARC' => 1);
159
    $template->param('UNIMARC' => 1);
151
}
160
}
152
- 

Return to bug 32639