session_start();
if (!isset($_POST['agree'])&&!isset($_SESSION['agreed'])) {
$copyright = false;
} else if ($_SERVER['REMOTE_ADDR']=='128.112.206.240') {
$copyright = false;
} else if ($_POST['agree']=='Y') {
$_SESSION['agreed'] = true;
$copyright = true;
} else if ($_SESSION['agreed']) {
$copyright = true;
} else {
$copyright = false;
}
include "../includes/artdbs_proxy_fns.php";
include "../includes/search_class.php";
include_once "../includes/db_fns.php";
articles_cache_control();
?>
$method = '';
if (isset($_GET['f'])) {
if ($_GET['f']=='subjects') {
$method = 'subject';
echo "
Subject List of Databases
\n";
} else if ($_GET['f']=='tools') {
$method = 'type';
echo "
Reference Tools & more
\n";
} else if ($_GET['f']=='search') {
$method = 'query';
echo "
Search Results
\n";
} else if ( isset($_GET['start'])) {
$method = 'browse';
echo "";
display_letters_small($_GET['start']);
echo "";
} else {
echo "
Find articles and more using these databases
\n";
}
} else if (isset($_GET['subjectID'])&&$_GET['subjectID']!='') {
$method = 'subject';
echo "
".return_subjectname($_GET['subjectID'])."
";
} else if (isset($_GET['typeID'])) {
$method = 'type';
echo "
".return_toolname($_GET['typeID'])."
\n";
if ($_GET['typeID']=='6') echo "
For more book reviews, consult the subject listings for articles indexes.
\n";
} else {
}
?>
if (isset($_GET['f'])&&$_GET['f']=='subjects') {
echo "
";
echo "
";
echo "
";
art_box();
see_also_box('tools');
ad_box();
echo "
\n";
echo "
\n";
#echo "
";
#display_subject_search_wf();
#echo "
";
echo "
";
display_subjects();
echo "
";
echo "
";
} else if (isset($_GET['f'])&&$_GET['f']=='tools') {
echo "
";
echo "
";
echo "
";
art_box();
see_also_box('subjects');
ad_box();
echo "
\n";
echo "
\n";
echo "
";
display_tools();
echo "
";
echo "
";
} else if (isset($_GET['typeID'])&&!empty($_GET['typeID'])) {
echo "
";
echo "
";
echo "
";
art_box();
tool_guide_link($_GET['typeID']);
ad_box();
echo "
\n";
echo "
\n";
echo "
";
#display_search_wf_tools_box(return_toolsname($_GET['typeID']));
if ($_GET['typeID']=='17') {
digital_projects();
} else if ($_GET['typeID']=='16') {
image_projects();
} else if ($_GET['typeID']=='13') {
ebooks();
} else if ($_GET['typeID']=='19') {
int_newspapers();
} else if ($_GET['typeID']=='20') {
us_newspapers();
} else if ($_GET['typeID']=='21') {
display_subject(9); #replace US Documents type with US Documents Subject
} else if ($_GET['typeID']=='22') {
display_subject(49); #replace UN Documents type with UN Documents Subject
} else if ($_GET['typeID']=='23') {
display_subject(35); #replace EU Documents type with EU Documents Subject
} else {
display_tool($_GET['typeID']);
}
echo "
";
echo "
";
} else if (isset($_GET['subjectID'])&&!empty($_GET['subjectID'])) {
specialists_box($_GET['subjectID']);
echo "
";
echo "
";
#display_search_wf_box(return_subjectname($_GET['subjectID']));
if ($_GET['subjectID']=='142') {
us_newspapers();
} else if ($_GET['subjectID']=='141') {
int_newspapers();
} else {
display_subject($_GET['subjectID']);
}
echo "
";
echo "
";
} else if (isset($_GET['f'])&&$_GET['f']=='search') {
echo "
\n";
echo "
";
echo "";
echo "
";
display_search_box();
echo "
";
echo "
";
echo "
";
link_box();
echo "";
echo "
";
if (isset($_GET['search'])) {
$search = strip_tags($_GET['search']);
$method = 'search';
$s_query = $search;
$_search = new swish_search("/var/www/search_indexes/db.xml.index","maintitle alttitle brief_description long_description id dates notes is_avail availability libwebcomp more_information location_access","100","1");
$_search->set_query($search);
if ($_search->run_search()) {
$ser_results = array();
$ser_results=$_search->results;
if (eregi("^err",$ser_results[3])) {
echo "
No databases found.
To find articles in databases, select a subject, browse by
database title, or search for database names using keywords.
";
echo "";
echo "";
} else {
display_sw_results($_search->results);
}
} else {
echo "
No databases found.
To find articles in databases, select a subject, browse by
database title, or search for database names using keywords.
";
echo "";
echo "";
}
} else {
$res_link = '
No search terms entered, please try again.
';
}
echo "
";
} else if (isset($_GET['start'])&&!empty($_GET['start'])) {
echo "
";
echo "
";
echo "
";
art_box();
ac_box();
echo "
\n";
echo "
\n";
echo "
";
$start = $_GET['start'];
$res_link = get_results($start);
if ($res_link!=0) {
display_results($res_link);
} else {
echo "No resources currently start with the letter $start.\n";
}
echo "
\n";
echo "
";
display_letters_small($_GET['start']);
echo "
\n";
echo "
\n";
} else {
echo "
";
if ($_SERVER["REMOTE_ADDR"]=="128.112.204.195") {
echo "";
} else {
echo "
";
echo "
Chat Live with a Librarian
\n";
//echo "
Hours (About Chat)
Mon-Wed 11:00am-11:00pm
Thu 11:00am-9:00pm, Fri 11:00am
Sat 1:00pm-5:00pm, Sun 5:00pm-11:00pm
";
echo "
Hours (About Chat)
Su 5pm-12am, M 11am-12am
Tu-W 11am-11pm, Th 11am-9pm
F 11am-5pm, Sa 1pm-5pm";
display_chat();
echo "
";
}
echo "
";
//wf_general_box();
searchit_box();
echo "
";
general_box();
echo "
";
echo "
";
link_box();
echo "
";
echo "
";
echo "
";
display_search_box();
echo "";
echo "
";
echo "
";
#echo "";
echo "";
echo "";
echo "";
echo "
";
echo "
";
}
?>
page_footer($is_hp=false)
?>
SendLength();?>