Lines 287-292
my $types = C4::Context->preference("AdvancedSearchTypes") || "itemtypes";
Link Here
|
287 |
my $advancedsearchesloop = prepare_adv_search_types($types); |
287 |
my $advancedsearchesloop = prepare_adv_search_types($types); |
288 |
$template->param(advancedsearchesloop => $advancedsearchesloop); |
288 |
$template->param(advancedsearchesloop => $advancedsearchesloop); |
289 |
|
289 |
|
|
|
290 |
$template->param( searchid => scalar $cgi->param('searchid'), ); |
291 |
|
290 |
# The following should only be loaded if we're bringing up the advanced search template |
292 |
# The following should only be loaded if we're bringing up the advanced search template |
291 |
if ( $template_type eq 'advsearch' ) { |
293 |
if ( $template_type eq 'advsearch' ) { |
292 |
|
294 |
|
Lines 737-744
for (my $i=0;$i<@servers;$i++) {
Link Here
|
737 |
} #/end of the for loop |
739 |
} #/end of the for loop |
738 |
#$template->param(FEDERATED_RESULTS => \@results_array); |
740 |
#$template->param(FEDERATED_RESULTS => \@results_array); |
739 |
|
741 |
|
740 |
$template->{'VARS'}->{'searchid'} = $cgi->param('searchid'); |
|
|
741 |
|
742 |
my $gotonumber = $cgi->param('gotoNumber'); |
742 |
my $gotonumber = $cgi->param('gotoNumber'); |
743 |
if ( $gotonumber && ( $gotonumber eq 'last' || $gotonumber eq 'first' ) ) { |
743 |
if ( $gotonumber && ( $gotonumber eq 'last' || $gotonumber eq 'first' ) ) { |
744 |
$template->{'VARS'}->{'gotoNumber'} = $gotonumber; |
744 |
$template->{'VARS'}->{'gotoNumber'} = $gotonumber; |