Comment puis-je afficher des titres de rubriques qui contiennent des conkeyref ou des conref ?
Vous pouvez modifier un index pour afficher la conref.
Description
Lorsqu'un titre contient seulement un conref, le titre apparaît vide dans la vue carte DITA et la vue Résultats de la recherche. Vous pouvez modifier un index existant.
Solution
Pour une conkeyref, dans la perspective Administration TEXTML, procédez comme suit :
- Modifiez le fichier Définition de l'index.ATTENTION : Attention lorsque vous modifiez le document de définition de l'index. Les modifications peuvent affecter de manière significative le processus d'indexation, et toute erreur dans le document peut entraîner une corruption des données ou d'autres erreurs.
- Décommente la ligne suivante dans l'index
<index NAME="title" SYNC="True">
:<!-- The following XPath resolves @conkeyref attributes into the target element id, pre and postfixed with "%" --> <!--<element DEPTH="0" XPATH="normalize-space(string-join(for $e in (/*/*[contains(@class,' topic/title ')]//node()) return (if ($e/@conkeyref) then concat('%', substring-after($e/@conkeyref,'/'), '%') else if ($e/self::text()) then string(normalize-space($e)) else ''), ' '))"/>-->
- Lorsque l'index a terminé l'indexation, redémarrez votre IXIA CCMS Desktop.
Pour un mot clé, dans la perspective administration TEXTML, procédez comme suit :
- Modifiez le fichier Définition de l'index et ajoutez la ligne suivante dans l'index
<index NAME="title" SYNC="True">
:<!-- Added for keywords in titles, the following XPath resolves @keyword attributes into the target element id, pre and postfixed with "%" --> <element DEPTH="0" XPATH="normalize-space(string-join(for $e in (/*/*[contains(@class,' topic/title ')]//node()) return (if ($e/@conkeyref) then concat('%', substring-after($e/@conkeyref,'/'), '%') else if ($e/@keyref) then concat('%', $e/@keyref, '%') else if ($e/self::text()) then string(normalize-space($e)) else ''), ' '))"/>
- Lorsque l'index a terminé l'indexation, redémarrez votre CCMS Desktop.