$collection_nom, 'parent' => $ed_id, 'collection_web' => $collection_web, 'issn' => $issn, 'comment' => $comment, 'statut'=> $authority_statut, 'thumbnail_url' => $authority_thumbnail_url ); } else { $coll = encoding_normalize::json_decode(stripslashes($forcing_values), true); } $object_instance = $this->get_object_instance(); $updated = $object_instance->update($coll,$forcing); if($object_instance->get_cp_error_message()){//Traitement des messages d'erreurs champs persos error_message($msg['167'], $object_instance->get_cp_error_message(), 1, $this->get_edit_link()); }elseif($updated) { return $object_instance->id; } } return 0; } public function get_searcher_instance() { return searcher_factory::get_searcher('collections', '', $this->user_input); } protected function get_display_header_list() { global $msg; $this->num_auth_present = searcher_authorities_collections::has_authorities_sources('collection'); $display = " ".$msg[103]." ".$msg[165]." ".($this->num_auth_present ? ''.$msg['authorities_number'].'' : '')." ".$msg["count_notices_assoc"]." "; return $display; } protected function get_display_columns() { global $charset; $object_instance = $this->authority->get_object_instance(); $display = $this->get_display_label_column(htmlentities($object_instance->display, ENT_QUOTES, $charset)); $display .= "".htmlentities($object_instance->issn,ENT_QUOTES, $charset).""; //Numéros d'autorite if($this->num_auth_present){ $display .= "".searcher_authorities_collections::get_display_authorities_sources($this->authority->get_num_object(), 'collection').""; } return $display; } protected function get_query_notice_count() { return "SELECT count(*) FROM notices WHERE coll_id = ".$this->authority->get_num_object(); } protected function get_permalink($id=0) { if(!$id) $id = $this->id; return "./autorites.php?categ=see&sub=collection&id=".$id; } protected function get_edit_link($id=0) { if(!$id) $id = $this->id; return $this->url_base."&sub=collection_form&id=".$id; } protected function get_results_title() { global $msg; return $msg[173]; } protected function display_no_results() { global $msg; error_message($msg[175], str_replace('!!cle!!', $this->user_input, $msg[174]), 0, $this->url_base.'&sub=&id='); } protected function get_search_mode() { return 2; } protected function get_aut_type() { return "collection"; } protected function get_last_order() { return 'order by collection_id desc '; } protected function get_aut_const(){ return TYPE_COLLECTION; } }