inclure les champs extras dans la recherche

This commit is contained in:
chankalan 2021-09-28 18:13:11 +02:00
parent f82b91c34c
commit 6316d0ef94
3 changed files with 7 additions and 3 deletions

View File

@ -102,6 +102,7 @@ function libreavous_declarer_champs_extras($champs = array()) {
'cols' => '40',
'sql' => 'text DEFAULT \'\' NOT NULL',
'inserer_barre' => 'edition',
'rechercher' => 5,
),
'verifier' => array(
),
@ -116,6 +117,7 @@ function libreavous_declarer_champs_extras($champs = array()) {
'cols' => '40',
'sql' => 'text DEFAULT \'\' NOT NULL',
'inserer_barre' => 'edition',
'rechercher' => 5,
),
'verifier' => array(
),
@ -143,6 +145,7 @@ function libreavous_declarer_champs_extras($champs = array()) {
'cols' => '40',
'sql' => 'text DEFAULT \'\' NOT NULL',
'inserer_barre' => 'edition',
'rechercher' => 5,
),
'verifier' => array(
),
@ -252,7 +255,7 @@ function libreavous_declarer_tables_objets_sql($tables) {
#'date' => '',
'champs_editables' => array('titre', 'code', 'code_fichier', 'code_podcast', 'debut', 'fin', 'type_sujet', 'chronique', 'mp3', 'ogg', 'references_sujet', 'drupal_guid', 'drupal_pubdate', 'id_article'),
'champs_versionnes' => array('titre', 'code', 'code_fichier', 'code_podcast', 'debut', 'fin', 'type_sujet', 'chronique', 'mp3', 'ogg', 'references_sujet', 'drupal_guid', 'drupal_pubdate', 'id_article'),
'rechercher_champs' => array("titre" => 5),
'rechercher_champs' => array("titre" => 8, "references_sujet" => 5),
'tables_jointures' => array(),
);

View File

@ -62,6 +62,7 @@ function libreavous_upgrade($nom_meta_base_version, $version_cible) {
cextras_api_upgrade(libreavous_declarer_champs_extras(), $maj['0.1.5']);
cextras_api_upgrade(libreavous_declarer_champs_extras(), $maj['0.1.6']);
cextras_api_upgrade(libreavous_declarer_champs_extras(), $maj['0.1.7']);
include_spip('base/upgrade');
maj_plugin($nom_meta_base_version, $version_cible, $maj);

View File

@ -1,8 +1,8 @@
<paquet
prefix="libreavous"
categorie="squelette"
version="0.5.2"
schema="0.1.6"
version="0.5.3"
schema="0.1.7"
etat="dev"
compatibilite="[3.2.8;4.0.*]"
>