diff --git a/base/medias.php b/base/medias.php index aa7d98637eff63f4b731f9473eff02c5fea7dde9..ef1e43af7966aa9e7899f3ccbb208f6285475bc1 100644 --- a/base/medias.php +++ b/base/medias.php @@ -151,8 +151,14 @@ function medias_declarer_tables_objets_sql($tables){ 'info_nb_objets' => 'medias:des_documents', 'titre' => "titre, fichier AS surnom, '' AS lang", 'date' => 'date', + 'rechercher_champs' => array( + 'titre' => 3, 'descriptif' => 1, 'fichier' => 1 + ), ); + // recherche jointe sur les documents pour les articles et rubriques + $tables['spip_articles']['rechercher_jointures']['document'] = array('titre' => 2, 'descriptif' => 1); + $tables['spip_rubriques']['rechercher_jointures']['document'] = array('titre' => 2, 'descriptif' => 1); return $tables; }