Example #1
0
     }
     $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 "external":
     if ($_SESSION["external_type"] == "multi") {
         $es = new search("search_fields_unimarc");
     } else {
         $es = new search("search_simple_fields_unimarc");
     }
     $table = $es->make_search();
     $requete = "select concat('es', notice_id) as notice_id from {$table} where 1;";
     $message = add_query($requete);
     break;
 case 'docnum':
     $notices = '';
     //droits d'acces emprunteur/notice
     $acces_j = '';
     if ($gestion_acces_active == 1 && $gestion_acces_empr_notice == 1) {
         require_once "{$class_path}/acces.class.php";
         $ac = new acces();
         $dom_2 = $ac->setDomain(2);
         $acces_j = $dom_2->getJoin($_SESSION['id_empr_session'], 4, 'notice_id');
     }
     if ($acces_j) {
         $statut_j = '';
     } else {
         $statut_j = ',notice_statut';
Example #2
0
     extensions();
     break;
 case 'remove_query':
     remove_query();
     break;
 case 'save_query':
     save_query();
     break;
 case 'db_table_struct':
     db_table_struct();
     break;
 case 'db_table_struct_select':
     db_table_struct_select();
     break;
 case 'add_query':
     add_query();
     break;
 case 'edit_query':
     edit_query();
     break;
 case 'db_tables':
     db_tables();
     break;
 case 'show_stats':
     show_stats();
     break;
 case 'generate_xml':
     generate_xml();
     break;
 case 'generate_csv':
     generate_csv();