Lines 241-246
my $types = C4::Context->preference("AdvancedSearchTypes") || "itemtypes";
Link Here
|
241 |
my $advancedsearchesloop = prepare_adv_search_types($types); |
241 |
my $advancedsearchesloop = prepare_adv_search_types($types); |
242 |
$template->param(advancedsearchesloop => $advancedsearchesloop); |
242 |
$template->param(advancedsearchesloop => $advancedsearchesloop); |
243 |
|
243 |
|
|
|
244 |
$template->param( searchid => scalar $cgi->param('searchid'), ); |
245 |
|
244 |
# The following should only be loaded if we're bringing up the advanced search template |
246 |
# The following should only be loaded if we're bringing up the advanced search template |
245 |
if ( $template_type eq 'advsearch' ) { |
247 |
if ( $template_type eq 'advsearch' ) { |
246 |
|
248 |
|
Lines 691-698
for (my $i=0;$i<@servers;$i++) {
Link Here
|
691 |
} #/end of the for loop |
693 |
} #/end of the for loop |
692 |
#$template->param(FEDERATED_RESULTS => \@results_array); |
694 |
#$template->param(FEDERATED_RESULTS => \@results_array); |
693 |
|
695 |
|
694 |
$template->{'VARS'}->{'searchid'} = $cgi->param('searchid'); |
|
|
695 |
|
696 |
my $gotonumber = $cgi->param('gotoNumber'); |
696 |
my $gotonumber = $cgi->param('gotoNumber'); |
697 |
if ( $gotonumber && ( $gotonumber eq 'last' || $gotonumber eq 'first' ) ) { |
697 |
if ( $gotonumber && ( $gotonumber eq 'last' || $gotonumber eq 'first' ) ) { |
698 |
$template->{'VARS'}->{'gotoNumber'} = $gotonumber; |
698 |
$template->{'VARS'}->{'gotoNumber'} = $gotonumber; |