Project

General

Profile

Actions

bug #9565

open

Revise name render templates selection strategy

Added by Andreas Kohlbecker over 3 years ago. Updated about 2 months ago.

Status:
New
Priority:
Highest
Assignee:
Category:
cdm-dataportal
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
normal
Found in Version:
Tags:

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()

Actions #1

Updated by Andreas Müller about 3 years ago

  • Target version changed from Release 5.25 to Release 5.51
Actions #2

Updated by Andreas Müller over 1 year ago

  • Tags set to formatting
  • Subject changed from revise name render templates selection strategy to Revise name render templates selection strategy
  • Description updated (diff)
  • Assignee changed from Andreas Kohlbecker to Katja Luther
  • Target version changed from Release 5.51 to Release 5.49
Actions #3

Updated by Andreas Müller about 2 months ago

  • Target version changed from Release 5.49 to Release 5.47
Actions

Also available in: Atom PDF