truncateStore(); } $v_state=urldecode($v_state); if (!$count) { $notices = mysql_query("SELECT count(1) FROM notices", $dbh); $count = mysql_result($notices, 0, 0); } print "

".htmlentities($msg["nettoyage_synchrordfstore_reindexation"], ENT_QUOTES, $charset)."

"; $NoIndex = 1; $query = mysql_query("select notice_id from notices order by notice_id LIMIT $start, $lot"); if(mysql_num_rows($query)) { // définition de l'état de la jauge $state = floor($start / ($count / $jauge_size)); $state .= "px"; // mise à jour de l'affichage de la jauge print "
"; print "
"; // calcul pourcentage avancement $percent = floor(($start/$count)*100); // affichage du % d'avancement et de l'état print "
$percent%
"; while($mesNotices = mysql_fetch_assoc($query)) { $synchro_rdf->addRdf($mesNotices['notice_id'],0); $notice=new notice($mesNotices['notice_id']); $niveauB=strtolower($notice->biblio_level); //Si c'est un article, il faut réindexer son bulletin if($niveauB=='a'){ $bulletin=analysis::getBulletinIdFromAnalysisId($mesNotices['notice_id']); $synchro_rdf->addRdf(0,$bulletin); } } mysql_free_result($query); $next = $start + $lot; print "
"; } else { $spec = $spec - INDEX_SYNCHRORDFSTORE; $compte=0; $q ="SELECT * WHERE { FILTER (!regex(?p, rdf:type,'i')) . ?s ?p ?o }"; $r = $synchro_rdf->store->query($q); if (is_array($r['result']['rows'])) { $compte=count($r['result']['rows']); } $v_state .= "
".htmlentities($msg["nettoyage_synchrordfstore_reindexation"], ENT_QUOTES, $charset)." :"; $v_state .= $compte." ".htmlentities($msg["nettoyage_synchrordfstore_reindex_total"], ENT_QUOTES, $charset); print "
"; }