Lines 115-120
else {
Link Here
|
115 |
$template_name = 'opac-advsearch.tt'; |
115 |
$template_name = 'opac-advsearch.tt'; |
116 |
$template_type = 'advsearch'; |
116 |
$template_type = 'advsearch'; |
117 |
} |
117 |
} |
|
|
118 |
|
119 |
$format = 'rss' if $format =~ /rss/; |
120 |
|
118 |
# load the template |
121 |
# load the template |
119 |
($template, $borrowernumber, $cookie) = get_template_and_user({ |
122 |
($template, $borrowernumber, $cookie) = get_template_and_user({ |
120 |
template_name => $template_name, |
123 |
template_name => $template_name, |
Lines 138-144
if($cgi->cookie("bib_list")){
Link Here
|
138 |
@cart_list = split(/\//, $cart_list); |
141 |
@cart_list = split(/\//, $cart_list); |
139 |
} |
142 |
} |
140 |
|
143 |
|
141 |
if ($format eq 'rss2' or $format eq 'opensearchdescription' or $format eq 'atom') { |
144 |
if ($format eq 'rss' or $format eq 'opensearchdescription' or $format eq 'atom') { |
142 |
$template->param($format => 1); |
145 |
$template->param($format => 1); |
143 |
$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'); |
144 |
# 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 |
Lines 735-741
for (my $i=0;$i<@servers;$i++) {
Link Here
|
735 |
} |
738 |
} |
736 |
|
739 |
|
737 |
## If there's just one result, redirect to the detail page |
740 |
## If there's just one result, redirect to the detail page |
738 |
if ($total == 1 && $format ne 'rss2' |
741 |
if ($total == 1 && $format ne 'rss' |
739 |
&& $format ne 'opensearchdescription' && $format ne 'atom') { |
742 |
&& $format ne 'opensearchdescription' && $format ne 'atom') { |
740 |
my $biblionumber=$newresults[0]->{biblionumber}; |
743 |
my $biblionumber=$newresults[0]->{biblionumber}; |
741 |
if (C4::Context->preference('BiblioDefaultView') eq 'isbd') { |
744 |
if (C4::Context->preference('BiblioDefaultView') eq 'isbd') { |
742 |
- |
|
|