", "<"); if (isset($_GET['p'])) { $page = str_replace($to_replace, "", $_GET['p']); } if (isset($_GET['i'])) $subinv = $_GET['i']; if (isset($_GET['term'])) { $term = str_replace($to_replace, "", $_GET['term']); $search_terms = explode("|", $term); } //Get keywords to highlight $to_highlight = array(); if ($search_terms) { foreach ($search_terms as $keyword) { array_push($to_highlight, "/([^<\/])([.]*[\s'\"-(;>[])($keyword)([\s\.,!?'\"-);<\]][.]*)([^>])/i"); } } $type = substr($page, -3); if ($type == "inv") { $page = substr($page, 0, -3); } // Connect to Database require('../../../MySQL/mysql-mss-connect.php'); //Pull records $run_query = mysql_query("SELECT * FROM data WHERE (lt LIKE '$page')"); $result = mysql_fetch_array($run_query); $count = count($result); $title = $result['title']; $size = $result['size']; $subjectstring = $result['subject']; $processed = $result['processed']; if ($subjectstring != "") { $subjectarray = explode('; ',$subjectstring); } $findingaid = $result['finding_aid']; //Identify related links $numerals= array(" mss. XIII", " mss. XII", " mss. XI", " mss. X", " mss. IX", " mss. VIII", " mss. VII", " mss. VI", " mss. V", " mss. IV", " mss. III", " mss. II", " mss.", " Correspondence mss."); $core_title = str_replace($numerals, "", $title); $related_query = mysql_query("SELECT * FROM data WHERE (title LIKE '$core_title%' AND title NOT LIKE '$title')"); $title_set = array($core_title); foreach ($numerals as $value) { $numbered_title = $core_title.$value; array_push($title_set, $numbered_title); } $related = array(); if (!empty($related_query)) { while ($related_results = mysql_fetch_array($related_query)) { $related_title = $related_results['title']; $related_link = $related_results['lt']; if (in_array($related_title, $title_set)) { array_push($related, "".$related_title.""); } } } //Close connection mysql_close(); echo "".$title.""; ?>

Lilly Library Manuscript Collections

File Not Found

There is no manuscript description available for the address you entered. Try searching for the correct title:

Title Search:

"; exit;} include('listarrays.php'); //Get inventory page links $check_inv = file_exists('inv/'.$page.'inv.xml'); if ($check_inv && $type != "inv") {$invlink = true;} else if ($type == "inv") { $inventory_content = ""; if ($subinv == "" || $subinv == 0) { $invint = 0; } else { $invint = (int)$subinv; $inventory_content .= "

Return to Main Inventory

"; } if ($check_inv == true) { $inv_text = simplexml_load_file('inv/'.$page.'inv.xml'); $inv_list = array(); if (count($inv_text->children()) != 1) { $inv_pages = true; foreach ($inv_text->children() AS $pages) { $page_children = $pages->children(); array_push($inv_list, $page_children[0]); } } //Grab content to minimize xml loads if ($inv_text->page[$invint] != "") { $invfile = $inv_text->page[$invint]; $child_array = $invfile->children(); $content = $child_array[1]; $inv_replaced = preg_replace($to_highlight, "$1$2$3$4$5", $content); $inventory_content .= $inv_replaced; } else $inventory_content .= "This inventory page does not exist. Return to the main inventory page for a list of links."; } else $inventory_content .= "This collection does not have an online inventory."; } if ($findingaid != '0' && $findingaid != '') {$falink = true;} if (in_array($title, $alf_files)) {$alflink = true;} if ($invlink || $falink || $inv_pages) {$doclinks = true;} if (!empty($subjectarray) && $type != 'inv') {$subjectlinks = true;} if ($doclinks || $alflink || $subjectlinks) { echo "
Related Links
"; if ($doclinks) { echo "

The following resources are also available for this collection:

    "; if ($invlink) { echo "
  • Inventory
  • "; } else if (is_array($inv_list)) { $p = 0; foreach ($inv_list as $page_title) { echo "
  • ".stripslashes($page_title)."
  • "; $p++; } } if ($falink) { echo "
  • Finding Aid
  • "; } if ($title=="Johnson, J. mss.") { echo '
  • Reading Lessons from the Eighteenth Century: Mothers, children and texts (full text PDF)
  • '; } echo "
"; } if ($alflink) { echo "

Part or all of this collection is housed at the Auxiliary Library Facility. For details, see Using Lilly Library ALF Materials.

"; } if ($subjectlinks) { echo "

For manuscripts on similar subjects, see:

    "; for ($i = 0; $i <= count($subjectarray); $i++) { $subject = $subjectarray[$i]; $propersubject = $subjects[$subject]; if ($propersubject != "") { echo "
  • $propersubject
  • "; } } echo "
"; } echo "
"; } ?>
".strtoupper($title).""; if ($type != "inv") { //include description text if (file_exists('mss/'.$link_title)) { $contents = file_get_contents('mss/'.$link_title); //Highlight keywords $contents = preg_replace($to_highlight, "$1$2$3$4$5", $contents); echo $contents; } else { echo "File Not Found"; } //display size if ($size != 0) { echo "

Collection size: ".number_format($size)." items

"; } //Display "unprocessed" note if ($processed == 0) { echo "

NOTE: Access to this collection requires advance notice. Please contact the Curator of Manuscripts for additional information.

"; } //display related links if (!empty($related)) { $related = implode(', ', $related); echo "

Related manuscripts: ".$related; } } //include inventory text else { echo "

Return to Description

"; echo $inventory_content; } ?>

For more information about this collection and any related materials contact the Public Services Department, Lilly Library, Indiana University, Bloomington, IN 47405. Call (812) 855-2452 or send an email using our Ask a Question form.