Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absence du type de financement dans la page de métadonnées #4

Closed
pierre56 opened this issue Dec 19, 2023 · 1 comment
Closed

Absence du type de financement dans la page de métadonnées #4

pierre56 opened this issue Dec 19, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@pierre56
Copy link

Version
Version de GeoNature affectée par le bug.

Description du bug
Absence du type de financement dans la page de métadonnées

Comportement attendue
Affichage du type de financement dans la page de métadonnées dans sa section

Comment reproduire
page metadata/dataset_detail

Logs
Extrait du fichier /var/log/geonature.log dans le cas d’une erreur 500.

Pistes

image

https://github.com/PnX-SI/GeoNature/blob/19e16f63c7e4a9481afcb92b68fdd86ff9a19747/backend/geonature/core/gn_meta/routes.py#L507

https://github.com/PnX-SI/GeoNature/blob/19e16f63c7e4a9481afcb92b68fdd86ff9a19747/frontend/src/app/metadataModule/af/af-card.component.html#L313

Tests


{
"nomenclature_financing_type": {
"active": true,
"cd_nomenclature": "1",
"definition_default": "Type de financement public",
"definition_fr": "Type de financement public",
"hierarchy": "111.001",
"id_broader": 0,
"id_nomenclature": 383,
"id_type": 111,
"label_default": "Publique",
"label_fr": "Publique",
"mnemonique": "Publique",
"source": "SINP",
"statut": "Validé"
}
}

      <div class="a" data-qa='pnx-metadata-acq-framework-id'> <b> Identifiant GeoNature du cadre d'acquisition :</b>
        {{af?.id_acquisition_framework}}</div>

  <b> Etendue territoriale : </b>{{ af?.nomenclature_territorial_level?.label_default }}
        </div>

      <div class="b">Créateur</div>

      <div class="a">
        <b> Créateur du cadre d'acquisition :</b>
        {{ af?.creator?.nom_complet || 'Non renseigné' }}
      </div>

V0

      <div class="b">Type de financement :</div>

      <div class="a">
        <b> Financement :</b>
        {{ af?.nomenclature_financing_type?.label_default }}
      </div>
@pierre56 pierre56 added the bug Something isn't working label Dec 19, 2023
@pierre56
Copy link
Author

voir PnX-SI#2840

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant