version 1.406.2.3, 2016/09/18 18:10:54
|
version 1.406.2.4, 2016/10/22 15:53:55
|
Line 6828 sub user_search_result {
|
Line 6828 sub user_search_result {
|
} |
} |
} |
} |
if ($response ne '') { |
if ($response ne '') { |
$response = '<span class="LC_warning">'.$response.'</span>'; |
$response = '<span class="LC_warning">'.$response.'</span><br />'; |
} |
} |
if ($srch->{'srchin'} eq 'instd') { |
if ($srch->{'srchin'} eq 'instd') { |
my $instd_chk = &instdirectorysrch_check($srch); |
my $instd_chk = &instdirectorysrch_check($srch); |
if ($instd_chk ne 'ok') { |
if ($instd_chk ne 'ok') { |
my $domd_chk = &domdirectorysrch_check($srch); |
my $domd_chk = &domdirectorysrch_check($srch); |
$response = '<span class="LC_warning">'.$instd_chk.'</span><br />'; |
$response .= '<span class="LC_warning">'.$instd_chk.'</span><br />'; |
if ($domd_chk eq 'ok') { |
if ($domd_chk eq 'ok') { |
$response = &mt('You may want to search in the LON-CAPA domain instead of the institutional directory.'); |
$response .= &mt('You may want to search in the LON-CAPA domain instead of the institutional directory.'); |
} |
} |
$response .= '<br /><br />'; |
$response .= '<br /><br />'; |
} |
} |
Line 6845 sub user_search_result {
|
Line 6845 sub user_search_result {
|
my $domd_chk = &domdirectorysrch_check($srch); |
my $domd_chk = &domdirectorysrch_check($srch); |
if ($domd_chk ne 'ok') { |
if ($domd_chk ne 'ok') { |
my $instd_chk = &instdirectorysrch_check($srch); |
my $instd_chk = &instdirectorysrch_check($srch); |
$response = '<span class="LC_warning">'.$domd_chk.'</span><br />'; |
$response .= '<span class="LC_warning">'.$domd_chk.'</span><br />'; |
if ($instd_chk eq 'ok') { |
if ($instd_chk eq 'ok') { |
$response = &mt('You may want to search in the institutional directory instead of the LON-CAPA domain.'); |
$response .= &mt('You may want to search in the institutional directory instead of the LON-CAPA domain.'); |
} |
} |
$response .= '<br /><br />'; |
$response .= '<br /><br />'; |
} |
} |