objects_type = 'subcollections'; } protected function get_form() { global $charset; global $selector_sub_collection_form; $form = $selector_sub_collection_form; $form = str_replace("!!deb_saisie!!", htmlentities($this->user_input,ENT_QUOTES,$charset), $form); $form = str_replace("!!base_url!!",static::get_base_url(),$form); return $form; } protected function save() { global $collection_nom; global $coll_id; global $issn; $value['name'] = $collection_nom; $value['parent'] = $coll_id; $value['issn'] = $issn; $collection = new subcollection(); $collection->update($value); return $collection->id; } protected function get_authority_instance($authority_id=0, $object_id=0) { return new authority($authority_id, $object_id, AUT_TABLE_SUB_COLLECTIONS); } protected function get_display_object($authority_id=0, $object_id=0) { global $msg, $charset; global $caller; global $callback; $display = ''; $authority = $this->get_authority_instance($authority_id, $object_id); $subcollection = $authority->get_object_instance(); $libellesubcoll = htmlentities(addslashes($subcollection->name),ENT_QUOTES,$charset); $idparentcoll = $subcollection->parent; $idparentlibelle = htmlentities(addslashes($subcollection->parent_libelle),ENT_QUOTES,$charset); $idediteur = $subcollection->editeur; $libelleediteur = htmlentities(addslashes($subcollection->editeur_libelle),ENT_QUOTES,$charset); $display .= pmb_bidi($authority->get_display_statut_class_html()." get_num_object()."', '".$libellesubcoll."','$callback', $idparentcoll, '".$idparentlibelle."', $idediteur, '".$libelleediteur."')\"> ".$subcollection->name.""); $display .= pmb_bidi(" (".$subcollection->parent_libelle.". ".$subcollection->editeur_libelle.")
"); return $display; } protected function get_searcher_instance() { return searcher_factory::get_searcher('subcollections', '', $this->user_input); } protected function get_entities_controller_instance($id=0) { return new entities_subcollections_controller($id); } public static function get_params_url() { global $p3, $p4, $p5, $p6, $mode; $params_url = parent::get_params_url(); $params_url .= ($p3 ? "&p3=".$p3 : "").($p4 ? "&p4=".$p4 : "").($p5 ? "&p5=".$p5 : "").($p6 ? "&p6=".$p6 : "").($mode ? "&mode=".$mode : ""); return $params_url; } } ?>