0) { $suggestString = ""; foreach ($autoSuggestTerms as $term) { $path = url('ebsco/results', array('query' => array('type' => ""))); $suggestString .= "" . $term . " "; } echo "

Did you mean " . $suggestString . "?

"; } } if ($records){ echo t('Showing') . " " . $record_start . " - " . $record_end . " " . t('of') . " " . $record_count . " "; if ($search_view == 'basic') { echo t('for search') . " '" . check_plain($lookfor) . "' "; } if ($search_time){ echo "," . t('query time') . ":" . check_plain(round($search_time, 2)) . " s"; } print $sort_form; print $pager; if (!user_is_logged_in()) { $link = '' . t('Login') . ''; echo '

'; echo sprintf(t('Hello, Guest. %s for full access.'), $link); echo '

'; } $tabs = ""; $tabsContent = ""; $counter = 0; $rsItem = NULL; if (isset($relatedContent)) { foreach ($relatedContent as $item) { if (isset($item["RelatedRecord"])) { $tabs .= '
  • '; $counter++; if (isset($item["RelatedRecord"]["Records"]["Record"][0])) { $rsItem = $item["RelatedRecord"]["Records"]["Record"][0]; } else { if (isset($item["Records"]["Record"])) { $rsItem = $item["Records"]["Record"]; } } if ($rsItem == NULL) { continue; } // var_dump($rsItem); $rsTitle = ""; $rsSubjects = ""; $rsAbstract = ""; $rsSource = ""; $rsImage = ""; $rsAN = $rsItem["Header"]["An"]; $rsDB = $rsItem["Header"]["DbId"]; $rsUrl = url('ebsco/result', array('query' => array('id' => $rsAN . "|" . $rsDB))); if (isset($rsItem["ImageInfo"]["CoverArt"])) { $rsImage = $rsItem["ImageInfo"]["CoverArt"]["Target"]; } foreach($rsItem["Items"]["Item"] as $it) { switch ($it["Group"]) { case "Ti": $rsTitle = $it["Data"]; break; case "Src": $rsSource = $it["Data"]; break; case "Su": $rsSubjects = $it["Data"]; break; case "Ab": $rsAbstract = $it["Data"]; break; } } $tabsContent .= '
    '; } // Replated publications. if (isset($item["RelatedPublication"])) { // var_dump($item); $tabs .= '
  • '; $counter++; $tabsContent .= '
    '; break; } } } if ($tabsContent <> "") { echo ' '; } ?>
      record_id()); $recordUrl = url('ebsco/result', array('query' => array('id' => $id))); $fulltextUrl = url('ebsco/fulltext', array('query' => array('id' => $id))); $pdfUrl = url('ebsco/pdf', array('query' => array('id' => $id))); ?>
    1. result_id; ?>
      small_thumb_link){ echo ' ' . t('Book jacket') . ' '; } ?>
      access_level == '1'){ echo '

      '; $label = '' . check_plain($record->db_label) . ''; $link = '' . t('Login') . ''; echo sprintf(t('This result from %s cannot be displayed to guests.'), $label) . "
      " . sprintf(t('%s for full access.'), $link) . ""; echo "

      "; } elseif ($record->title){ echo '' . $record->title . ''; } ?>
      authors)){ echo "" . t('by') . " " . str_replace(array("
      ", "
      "), ', ', $record->authors) . "
      "; } if (!empty($record->source)){ echo '

      ' . t('Published in') . " " . $record->source . '

      '; } ?>
      summary)){ echo '' . $record->summary . '
      '; } if (!empty($record->subjects)){ echo '' . t('Subjects') . ':' . str_replace('
      ', ', ', $record->subjects) . '
      '; } ?>
      custom_links)){ ?>
      full_text_availability){ echo ''; echo t('HTML full text'); echo "   "; } if ($record->pdf_availability){ echo ' '; echo t('PDF full text'); echo ""; } ?>
    " . t('Your search did not match any resources.') . ""; // Check for autocomplete. /* if (isset ($autoSuggestTerms) ) { if (count($autoSuggestTerms)>0) { echo "Did you mean "."?
    "; var_dump($autoSuggestTerms); } } */ echo search_help('search#noresults', drupal_help_arg()); } ?>