Skip to content

Commit

Permalink
first test for displaying metadata referentials
Browse files Browse the repository at this point in the history
can be viewed on rule 31
  • Loading branch information
gautierchomel committed Sep 19, 2024
1 parent bf8571e commit d5f54bb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
4 changes: 2 additions & 2 deletions content/french/rules/031.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Controle: ["Vérifier l'absence de contenus audio activés automatiquement au ch
epubcheck: false
ace: false
humancheck: true
insidemetadata: "<meta property=schema:accessibilityHazard>noSoundHazard</meta>"
onixmetadata: ""
OPFmetadata: "<meta property=schema:accessibilityHazard>noSoundHazard</meta>"
onixmetadata: "[143 16](https://ns.editeur.org/onix/en/143/16)"
Source: ["Opquast"]
Referentiel: [""]
Steps: ["Conception", "Editorial"]
Expand Down
5 changes: 4 additions & 1 deletion i18n/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,7 @@
translation: Doit être vérifié par une personne

- id: validation
translation: Validation
translation: Validation

- id: metadata
translation: metadata
15 changes: 15 additions & 0 deletions layouts/rules/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ <h5 class="mr-3">{{ i18n "tags" }}&nbsp;:</h5>
</div>
<div class="row items-start justify-between">


<div class="">
<h5 class="mr-3">{{ i18n "Referentiel" }}&nbsp;:</h5>
<ul>
Expand All @@ -137,6 +138,20 @@ <h5 class="mr-3">{{ i18n "Referentiel" }}&nbsp;:</h5>
{{ end }}
</ul>

</div>
<div class="">
<h5 class="mr-3">{{ i18n "metadata" }}&nbsp;:</h5>
<ul>
<li>ONIX
{{ $Onixmetadata:= .Params.Onixmetadata }}
{{ $Onixmetadata }}</li>

<li>OPF
{{ $OPFmetadata:= .Params.OPFmetadata }}
{{ $OPFmetadata }}</li>

</ul>

</div>
</div>

Expand Down

0 comments on commit d5f54bb

Please sign in to comment.