|
Lines 116-121
else {
Link Here
|
| 116 |
$template_name = 'opac-advsearch.tt'; |
116 |
$template_name = 'opac-advsearch.tt'; |
| 117 |
$template_type = 'advsearch'; |
117 |
$template_type = 'advsearch'; |
| 118 |
} |
118 |
} |
|
|
119 |
|
| 120 |
$format = 'rss' if $format =~ /rss/; |
| 121 |
|
| 119 |
# load the template |
122 |
# load the template |
| 120 |
($template, $borrowernumber, $cookie) = get_template_and_user({ |
123 |
($template, $borrowernumber, $cookie) = get_template_and_user({ |
| 121 |
template_name => $template_name, |
124 |
template_name => $template_name, |
|
Lines 139-145
if($cgi->cookie("bib_list")){
Link Here
|
| 139 |
@cart_list = split(/\//, $cart_list); |
142 |
@cart_list = split(/\//, $cart_list); |
| 140 |
} |
143 |
} |
| 141 |
|
144 |
|
| 142 |
if ($format eq 'rss2' or $format eq 'opensearchdescription' or $format eq 'atom') { |
145 |
if ($format eq 'rss' or $format eq 'opensearchdescription' or $format eq 'atom') { |
| 143 |
$template->param($format => 1); |
146 |
$template->param($format => 1); |
| 144 |
$template->param(timestamp => strftime("%Y-%m-%dT%H:%M:%S-00:00", gmtime)) if ($format eq 'atom'); |
147 |
$template->param(timestamp => strftime("%Y-%m-%dT%H:%M:%S-00:00", gmtime)) if ($format eq 'atom'); |
| 145 |
# FIXME - the timestamp is a hack - the biblio update timestamp should be used for each |
148 |
# FIXME - the timestamp is a hack - the biblio update timestamp should be used for each |
|
Lines 745-751
for (my $i=0;$i<@servers;$i++) {
Link Here
|
| 745 |
} |
748 |
} |
| 746 |
|
749 |
|
| 747 |
## If there's just one result, redirect to the detail page |
750 |
## If there's just one result, redirect to the detail page |
| 748 |
if ($total == 1 && $format ne 'rss2' |
751 |
if ($total == 1 && $format ne 'rss' |
| 749 |
&& $format ne 'opensearchdescription' && $format ne 'atom') { |
752 |
&& $format ne 'opensearchdescription' && $format ne 'atom') { |
| 750 |
my $biblionumber=$newresults[0]->{biblionumber}; |
753 |
my $biblionumber=$newresults[0]->{biblionumber}; |
| 751 |
if (C4::Context->preference('BiblioDefaultView') eq 'isbd') { |
754 |
if (C4::Context->preference('BiblioDefaultView') eq 'isbd') { |
| 752 |
- |
|
|