Rapatriement modifs PROD : types de docs étendus (NOTICE, BLOG, TRAD, REPORT, UNDEFINED, POSTER, OTHER) + mapping catégories + fonction_auteur TRAD + strip suffixe version
This commit is contained in:
@@ -21,6 +21,13 @@ class Thalim_HAL_Importer_Logic {
|
||||
'HDR' => 14, // HDR -> Soutenances
|
||||
'SON' => 19, // Son -> Captations audio/vidéo
|
||||
'VIDEO' => 19, // Vidéo -> Captations audio/vidéo
|
||||
'NOTICE' => 16, // Notice/recension -> Articles
|
||||
'BLOG' => 19, // Blog/tribune -> Médias
|
||||
'TRAD' => 15, // Traduction -> Ouvrages (fonction auteur "Traduction")
|
||||
'REPORT' => 4, // Rapport -> Publications et productions
|
||||
'UNDEFINED' => 4, // Non défini -> Publications et productions
|
||||
'POSTER' => 4, // Poster -> Publications et productions
|
||||
'OTHER' => 4, // Autre -> Publications et productions
|
||||
];
|
||||
|
||||
// Doc types that use date_de_debut instead of datetime
|
||||
@@ -209,6 +216,8 @@ class Thalim_HAL_Importer_Logic {
|
||||
update_post_meta($post_id, 'fonction_auteur', 'Auteur du chapitre // Chapter author');
|
||||
} elseif ($doc_type === 'ISSUE') {
|
||||
update_post_meta($post_id, 'fonction_auteur', 'Direction de numéro // Editor-in-Chief');
|
||||
} elseif ($doc_type === 'TRAD') {
|
||||
update_post_meta($post_id, 'fonction_auteur', 'Traduction // Translation');
|
||||
}
|
||||
|
||||
// --- Keywords -> étiquettes (Pods triple-storage, picks from post_tag) ---
|
||||
|
||||
Reference in New Issue
Block a user