Summarize LIEN in TEXTE_VERSION
This commit is contained in:
parent
9cd4808344
commit
2ee17b6b3e
1 changed files with 22 additions and 0 deletions
|
@ -859,12 +859,34 @@ export const summarizeTexteVersionProperties: Summarizer = (access, value) => {
|
||||||
return summarizeLegalObjectToLink(access, "texte_version", value)
|
return summarizeLegalObjectToLink(access, "texte_version", value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
access?.key === "@cidtexte" &&
|
||||||
|
(access?.access?.key === "LIEN" ||
|
||||||
|
(typeof access?.access?.key === "number" &&
|
||||||
|
access?.access?.access?.key === "LIEN"))
|
||||||
|
) {
|
||||||
|
return summarizeLegalIdToLink(access, value)
|
||||||
|
}
|
||||||
|
if (
|
||||||
|
access?.key === "@id" &&
|
||||||
|
(access?.access?.key === "LIEN" ||
|
||||||
|
(typeof access?.access?.key === "number" &&
|
||||||
|
access?.access?.access?.key === "LIEN"))
|
||||||
|
) {
|
||||||
|
return summarizeLienId(access.access, access.parent)
|
||||||
|
}
|
||||||
if (access?.key === "CID") {
|
if (access?.key === "CID") {
|
||||||
return summarizeLegalIdToLink(access, value)
|
return summarizeLegalIdToLink(access, value)
|
||||||
}
|
}
|
||||||
if (access?.key === "CONTENU") {
|
if (access?.key === "CONTENU") {
|
||||||
return { content: value as string, type: "html" }
|
return { content: value as string, type: "html" }
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
|
(access?.key === "LIEN" && !Array.isArray(value)) ||
|
||||||
|
(typeof access?.key === "number" && access?.access?.key === "LIEN")
|
||||||
|
) {
|
||||||
|
return summarizeLien(access, value)
|
||||||
|
}
|
||||||
|
|
||||||
return undefined
|
return undefined
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue