Project

General

Profile

bug #9565

revise name render templates selection strategy

Added by Andreas Kohlbecker 12 days ago.

Status:
New
Priority:
Highest
Category:
cdm-dataportal
Target version:
Start date:
03/29/2021
Due date:
% Done:

0%

Severity:
normal
Found in Version:

Description

in the flora of cuba the syn-sec. references are expected to be shown:

http://portal.cybertaxonomy.org/flora-cuba/cdm_dataportal/taxon/b5cd4e30-a17d-43d9-a6bd-8dd9b3bc2c9b?RENDER_PATH=1

initially the according name render templates where:

  "taxon_page_synonymy,accepted_taxon.taxon_page_synonymy": {
        "nameAuthorPart": {
            "#uri": true
        },
        "referencePart": true,
        "statusPart": true,
        "descriptionPart": true,
        "secReferencePart": true
    },
    "related_taxon": {
        "nameAuthorPart": {
            "#uri": true
        },
        "referencePart": true,
        "statusPart": true
    },

adding "referencePart": true, to `"related_taxon":{} makes them visible:

"taxon_page_synonymy,accepted_taxon.taxon_page_synonymy,typedesignations.homotypicSynonymyGroup.taxon_page_synonymy,related_taxon.homotypicSynonymyGroup.taxon_page_synonymy,related_taxon.heterotypicSynonymyGroup.taxon_page_synonymy": {
        "nameAuthorPart": {
            "#uri": true
        },
        "referencePart": true,
        "statusPart": true,
        "descriptionPart": true,
        "secReferencePart": true
    },
    "related_taxon": {
        "nameAuthorPart": {
            "#uri": true
        },
        "referencePart": true,
        "statusPart": true,
        "secReferencePart": true
    },

using the more specific render path key has no effect

  "taxon_page_synonymy,accepted_taxon.taxon_page_synonymy,typedesignations.homotypicSynonymyGroup.taxon_page_synonymy,related_taxon.homotypicSynonymyGroup.taxon_page_synonymy,related_taxon.heterotypicSynonymyGroup.taxon_page_synonymy": {
        "nameAuthorPart": {
            "#uri": true
        },
        "referencePart": true,
        "statusPart": true,
        "descriptionPart": true,
        "secReferencePart": true
    },
    "related_taxon": {
        "nameAuthorPart": {
            "#uri": true
        },
        "referencePart": true,
        "statusPart": true
    },

It is expected, that related_taxon.homotypicSynonymyGroup.taxon_page_synonymy is being identified as most specifically matching render path, but his seems not to be working

The render template selection is done in name.inc get_nameRenderTemplate()

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)