function debloque(source_id) { for(i=0; i "; $r.="
"; //Recherche des sources $requete="SELECT connectors_categ_sources.num_categ, connectors_sources.source_id, connectors_categ.connectors_categ_name as categ_name, connectors_sources.name, connectors_sources.comment, connectors_sources.repository, connectors_sources.opac_allowed, source_sync.cancel FROM connectors_sources LEFT JOIN connectors_categ_sources ON (connectors_categ_sources.num_source = connectors_sources.source_id) LEFT JOIN connectors_categ ON (connectors_categ.connectors_categ_id = connectors_categ_sources.num_categ) LEFT JOIN source_sync ON (connectors_sources.source_id = source_sync.source_id AND connectors_sources.repository=2) ORDER BY connectors_categ_sources.num_categ DESC, connectors_sources.name "; $resultat=mysql_query($requete); if ($source) $_SESSION["checked_sources"]=$source; if ($_SESSION["checked_sources"]&&(!$source)) $source=$_SESSION["checked_sources"]; if (!is_array($source)) $source=array(); $old_categ = 0; $r .= "
"; $count=0; $debloque_form_outputed = array(); while ($srce=mysql_fetch_object($resultat)) { if ($old_categ !== $srce->num_categ) { $count++; $old_categ = $srce->num_categ; if (!$srce->categ_name) $srce->categ_name = $msg["source_no_category"]; $open="open_".$count; global $$open; if ((!$first)&&($_SESSION["sources_open_".$count])) $$open=1; else if ($first) $_SESSION["sources_open_".$count]=$$open; $img_plus=$$open?"./images/minus.gif":"./images/plus.gif"; $r .= '

  '.$srce->categ_name.'

'; } $r.="
source_id,$source)!==false)&&($srce->cancel!=2)) { $r.=" checked"; } $r.="/>"; if ($srce->cancel==2) { if (!isset($debloque_form_outputed[$srce->source_id])) { $r.=" "; $debloque_form_outputed[$srce->source_id] = true; } $r.=" (".$msg["connecteurs_debloque"].")"; } $r.="
"; } $r.="
"; if ($count) { $r.=" "; } return $r; } //Instanciation de la classe de recherche //Si c'est une multi if ($_SESSION["ext_type"]=="multi") { $sc=new search(false,"search_fields_unimarc"); } else { $sc=new search(false,"search_simple_fields_unimarc"); } //Si c'est une simple if ($_SESSION["ext_type"]=="simple") { //Si �a vient d'une autre recherche, on transforme ! if ((string)$from_mode!="") { //R�cup�ration des variables switch ($from_mode) { case "0": if ($code) { $op_="STARTWITH"; $search[0]="f_20"; //op�rateur $op="op_0_".$search[0]; global $$op; $$op=$op_; //contenu de la recherche $field="field_0_".$search[0]; $field_=array(); $field_[0]=$code; global $$field; $$field=$field_; //op�rateur inter-champ $inter="inter_0_".$search[0]; global $$inter; $$inter=""; //variables auxiliaires $fieldvar_="fieldvar_0_".$search[0]; global $$fieldvar_; $$fieldvar_=""; $fieldvar=$$fieldvar_; } else searcher_title::convert_simple_multi_unimarc($_SESSION["CURRENT"]); break; case "1": searcher_subject::convert_simple_multi_unimarc($_SESSION["CURRENT"]); break; case "3": searcher_publisher::convert_simple_multi_unimarc($_SESSION["CURRENT"]); break; } } else { if ($external_env) { $external_env=unserialize(stripslashes($external_env)); foreach ($external_env as $varname=>$varvalue) { global $$varname; $$varname=$varvalue; } } } } else { if ($from_mode==6) { //R�cup�ration de l'environnement $search=$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["POST"]["search"]; //Pour chaque champ for ($i=0; $iunserialize_search(stripslashes($serialized_search)); } ?>