".$label.""; } public static function get_search_others_tabs() { global $msg; global $opac_allow_personal_search; global $opac_allow_extended_search; global $opac_allow_extended_search_authorities; global $opac_allow_term_search; global $opac_allow_tags_search; global $opac_show_onglet_perio_a2z; global $opac_show_onglet_empr; global $opac_allow_external_search; global $opac_show_onglet_map, $opac_map_activate; global $onglet_persopac; $search_others_tabs = ""; $search_others_tabs .= static::get_search_others_tab('simple_search', $msg["simple_search"]); if ($opac_allow_personal_search) { $search_others_tabs .= static::get_search_others_tab('search_perso', $msg["search_perso_menu"]); } $search_persopac = new search_persopac(); $search_others_tabs .= $search_persopac->directlink_user; if ($opac_allow_extended_search) { if($onglet_persopac*1) { $search_others_tabs .= "
  • ".$msg["extended_search"]."
  • "; } else { $search_others_tabs .= static::get_search_others_tab('extended_search', $msg["extended_search"]); } } if ($opac_allow_extended_search_authorities) { if($onglet_persopac*1) { $search_others_tabs .= "
  • ".$msg["extended_search_authorities"]."
  • "; } else { $search_others_tabs .= static::get_search_others_tab('extended_search_authorities', $msg["extended_search_authorities"]); } } if ($opac_allow_term_search) { $search_others_tabs .= static::get_search_others_tab('term_search', $msg["term_search"]); } if ($opac_allow_tags_search) { $search_others_tabs .= static::get_search_others_tab('tags_search', $msg["tags_search"]); } if ($opac_show_onglet_perio_a2z) { $search_others_tabs .= static::get_search_others_tab('perio_a2z', $msg["a2z_onglet"]); } if (($opac_show_onglet_empr==1)||(($opac_show_onglet_empr==2)&&($_SESSION["user_code"]))) { if (!$_SESSION["user_code"]) { $search_others_tabs .= static::get_search_others_tab('connect_empr', $msg["onglet_empr_connect"]); } else { switch ($opac_show_onglet_empr) { case 1: $empr_link_onglet=static::format_url("search_type_asked=connect_empr"); break; case 2: $empr_link_onglet="./empr.php"; break; } $search_others_tabs .= "
  • ".$msg["onglet_empr_compte"]."
  • "; } } if ($opac_allow_external_search) { $search_others_tabs .= "
  • ".$msg["connecteurs_external_search"]."
  • "; } if ($opac_show_onglet_map && $opac_map_activate) { $search_others_tabs .= static::get_search_others_tab('map', $msg["search_by_map"]); } return $search_others_tabs; } public static function get_search_tabs() { global $msg; global $opac_show_onglet_help; $search_tabs = ""; return $search_tabs; } public static function get_display_info() { global $msg; $display = "

    "; switch (static::$search_type) { case "simple_search": $display .= $msg['simple_search_tpl_text']; break; case "external_search": $display .= sprintf($msg["connecteurs_search_multi"], static::format_url("search_type_asked=external_search&external_type=multi")); break; case "tags_search": $display .= $msg['tags_search_tpl_text']; break; } $display .= "

    "; return $display; } public static function get_typdoc_field() { global $opac_search_show_typdoc; global $msg, $charset; global $typdoc; // les typ_doc if ($opac_search_show_typdoc) { $query = "SELECT typdoc FROM notices where typdoc!='' GROUP BY typdoc"; $result = pmb_mysql_query($query); $toprint_typdocfield = " "; } else $toprint_typdocfield=""; return $toprint_typdocfield; } public static function get_display_simple_search_form() { global $msg; global $opac_autolevel2; global $opac_simple_search_suggestions; global $include_path; global $opac_show_help; global $base_path; global $opac_map_activate; global $opac_focus_user_query; global $opac_search_other_function; global $opac_recherches_pliables, $charset; $form = "
    ".static::get_typdoc_field()." ".($opac_search_other_function ? search_other_function_filters() : '')."
    "; if($opac_simple_search_suggestions){ $form .= " \n"; }else{ $form .= " \n"; } $form .= " \n"; if ($opac_show_help) { $form .= "\n"; } switch ($opac_recherches_pliables) { case '1': $form .= "
    ".gen_plus_form("zsimples",$msg["rechercher_dans"], static::do_ou_chercher(),false)."
    "; break; case '2': $form .= "
    ".gen_plus_form("zsimples",$msg["rechercher_dans"], static::do_ou_chercher(),true)."
    "; break; case '3': $form .= static::do_ou_chercher_hidden(); break; default: $form .= "
    ".static::do_ou_chercher()."
    "; break; } if($opac_map_activate==1 || $opac_map_activate==2) { $form .= "
    !!map!!
    "; } $form .= "
    "; return $form; } public static function get_display_extended_search_form() { global $base_path; global $msg, $charset; global $current_module; global $opac_extended_search_auto; global $opac_show_help; global $onglet_persopac; global $limitsearch; global $external_type; $onglet_persopac = intval($onglet_persopac); $form =" "; if($external_type=="multi"){ $form .= sprintf($msg["connecteurs_search_simple"], static::format_url("search_type_asked=external_search&external_type=simple")); } $form .= "
    "; if(!$limitsearch) { $form .= "
    ".$msg["search_add_field"]."
    !!field_list!!"; } if(!$opac_extended_search_auto) { $form .= ""; } if ($opac_show_help) { $form.=""; } $form.="

    !!already_selected_fields!!
    ".($onglet_persopac ? "" : "")."
    "; return $form; } public static function get_display_external_search_form() { global $msg; global $include_path; global $opac_show_help; global $base_path, $charset; $form = "
    ".static::get_typdoc_field()."
    "; if ($opac_show_help) { $form .= "\n"; } $form .= static::do_ou_chercher(); $form .= "
     
    "; return $form; } public static function get_display_tags_search_form() { global $msg, $charset; $form = "
    \n ".static::get_typdoc_field()."
    \n \n \n
    "; return $form; } public static function get_display_term_search_form() { global $msg, $charset, $base_path, $current_module; global $lvl; global $opac_show_help; global $search_term; global $term_click; global $page_search; global $opac_thesaurus; global $id_thes; //recuperation du thesaurus session if(!$id_thes) $id_thes = thesaurus::getSessionThesaurusId(); else thesaurus::setSessionThesaurusId($id_thes); //affichage du selectionneur de thesaurus et du lien vers les thesaurus $liste_thesaurus = thesaurus::getThesaurusList(); $sel_thesaurus = ''; if ($opac_thesaurus != 0) { //la liste des thesaurus n'est pas affichée en mode monothesaurus $sel_thesaurus = " "; } $form ="
    ".$sel_thesaurus." ".$msg["term_search_search_for"]." \n"; if ($opac_show_help) $form .= "\n"; $form .= "
    "; return $form; } public static function get_display_search() { $display_search = ""; return $display_search; } public static function get_display_search_perso() { $search_p= new search_persopac(); $onglets_search_perso=$search_p->directlink_user; return $search_p->directlink_user_form; } public static function get_search_label($id, $mode, $location = '') { global $msg; $search_label = ''; switch ($mode) { case 'etagere_see': $search_label = $msg["etagere_query"]; break; case 'categ_see': $search_label = $msg["category"]; break; case 'indexint_see': $search_label= $msg["indexint_search"]; break; case 'section_see': $resultat=pmb_mysql_query("select location_libelle from docs_location where idlocation='".addslashes($location)."'"); $j=pmb_mysql_fetch_array($resultat); pmb_mysql_free_result($resultat); $search_label = $j["location_libelle"]." => ".$msg["section"]; break; case "author_see" : $search_label = $msg['author']; break; case "coll_see" : $search_label = $msg['coll_search']; break; case "subcoll_see" : $search_label = $msg['subcoll_search']; break; case "titre_uniforme_see" : $search_label = $msg['titre_uniforme_search']; break; case "publisher_see" : $search_label = $msg['publisher_search']; break; case "serie_see" : $search_label = $msg['serie_query']; break; case "concept_see" : $search_label = $msg['skos_concept']; break; case "authperso_see" : $authperso = new authperso_data($id); $search_label = $authperso->get_name(); break; } return $search_label; } public static function get_search_isbd($id, $mode) { $search_isbd = ''; switch ($mode) { case 'etagere_see': $t=array(); $t=tableau_etagere($id); $search_isbd = $t[0]["nometagere"]; break; case 'categ_see': $ourCateg = new categorie($id); $search_isbd = $ourCateg->libelle; break; case 'indexint_see': $ourIndexint = new indexint($id); $search_isbd = $ourIndexint->get_isbd(); break; case 'section_see': $resultat=pmb_mysql_query("select section_libelle from docs_section where idsection='".addslashes($id)."'"); $j=pmb_mysql_fetch_array($resultat); $search_isbd = $j["section_libelle"]; $search_isbd .= static::get_search_section_complement_isbd($id, $mode); break; case "author_see" : $ourAuthor = new auteur($id); $search_isbd = $ourAuthor->get_isbd(); break; case "coll_see" : $ourColl = new collection($id); $search_isbd = $ourColl->get_isbd(); break; case "subcoll_see" : $ourSubcoll = new subcollection($id); $search_isbd = $ourSubcoll->get_isbd(); break; case "titre_uniforme_see" : $ourTu = new titre_uniforme($id); $search_isbd = $ourTu->get_isbd(); break; case "publisher_see" : $ourPub = new publisher($id); $search_isbd = $ourPub->get_isbd(); break; case "serie_see" : $ourSerie = new serie($id); $search_isbd = $ourSerie->get_isbd(); break; case "concept_see" : $ourConcept = new skos_concept($id); $search_isbd = $ourConcept->get_display_label(); break; case "authperso_see" : $authperso = new authperso_data($id); $search_isbd = $authperso->get_isbd(); break; } return $search_isbd; } public static function get_last_human_query() { $human_query = static::get_search_label($_SESSION["last_module_search"]["search_id"], $_SESSION["last_module_search"]["search_mod"], $_SESSION["last_module_search"]["search_location"]); $human_query .= " '".static::get_search_isbd($_SESSION["last_module_search"]["search_id"], $_SESSION["last_module_search"]["search_mod"])."'"; return $human_query; } public static function set_search_type($search_type) { static::$search_type = $search_type; } public static function set_url_base($url_base) { static::$url_base = $url_base; } public static function get_display_map() { global $opac_map_activate; global $opac_map_base_layer_params; global $opac_map_base_layer_type; global $opac_map_size_search_edition; global $opac_map_bounding_box; $display = ''; if($opac_map_activate){ $layer_params = json_decode($opac_map_base_layer_params,true); $baselayer = "baseLayerType: dojox.geo.openlayers.BaseLayerType.".$opac_map_base_layer_type; if(is_array($layer_params) && count($layer_params)){ if($layer_params['name']) $baselayer.=",baseLayerName:\"".$layer_params['name']."\""; if($layer_params['url']) $baselayer.=",baseLayerUrl:\"".$layer_params['url']."\""; if($layer_params['options']) $baselayer.=",baseLayerOptions:".json_encode($layer_params['options']); } $size=explode("*",$opac_map_size_search_edition); if(count($size)!=2) { $map_size="width:800px; height:480px;"; } else { if (is_numeric($size[0])) $size[0].= 'px'; if (is_numeric($size[1])) $size[1].= 'px'; $map_size= "width:".$size[0]."; height:".$size[1].";"; } $initialFit = ''; $map_emprises_query = array(); if( $opac_map_bounding_box) { $map_bounding_box = $opac_map_bounding_box; } else { $map_bounding_box = '-5 50,9 50,9 40,-5 40,-5 50'; } $map_hold = new map_hold_polygon("bounding", 0, "polygon((".$map_bounding_box."))"); if ($map_hold) { $coords = $map_hold->get_coords(); $initialFit = explode(',', map_objects_controler::get_coord_initialFit($coords)); } else{ $initialFit = array(0, 0, 0, 0); } $map_holds=array(); foreach($map_emprises_query as $map_hold){ $map_holds[] = array( "wkt" => $map_hold, "type"=> "search", "color"=> null, "objects"=> array() ); } $display .= ""; } return $display; } public static function get_options_typdoc_field() { global $msg, $charset; global $typdoc; $query = "SELECT count(typdoc), typdoc "; $query .= "FROM notices where typdoc!='' GROUP BY typdoc"; $result = pmb_mysql_query($query); $toprint_typdocfield = " \n"; $doctype = new marc_list('doctype'); $obj=array(); $qte=array(); while (($rt = pmb_mysql_fetch_row($result))) { $obj[$rt[1]]=1; $qte[$rt[1]]=$rt[0]; } foreach ($doctype->table as $key=>$libelle){ if ($obj[$key]==1){ $toprint_typdocfield .= " "; while ($obj = @pmb_mysql_fetch_row($result)) { $toprint_statutfield .= "