예제 #1
0
         $cart_sort = "default";
     }
     $notices = $searcher->get_sorted_cart_result($cart_sort, 0, $opac_max_cart_items);
     if (count($notices)) {
         $notices = implode(",", $notices);
     }
     add_notices_to_cart($notices);
     break;
 case "abstract":
     $searcher = new searcher_abstract(stripslashes($user_query));
     if (!empty($_SESSION["last_sortnotices"])) {
         $cart_sort = $_SESSION["last_sortnotices"];
     } else {
         $cart_sort = "default";
     }
     $notices = $searcher->get_sorted_cart_result($cart_sort, 0, $opac_max_cart_items);
     if (count($notices)) {
         $notices = implode(",", $notices);
     }
     add_notices_to_cart($notices);
     break;
 case "extended":
     $searcher = new searcher_extended(stripslashes($user_query));
     if (!empty($_SESSION["last_sortnotices"])) {
         $cart_sort = $_SESSION["last_sortnotices"];
     } else {
         $cart_sort = "default";
     }
     $notices = $searcher->get_sorted_cart_result($cart_sort, 0, $opac_max_cart_items);
     if (count($notices)) {
         $notices = implode(",", $notices);