Skip to content

Use webconfig-model.xml headerconfig for report title #830

@heralden

Description

@heralden

We should use the configuration already present for the legacy webapp for the report page title. In the webconfig-model.xml excerpt below, this would be <title mainTitles="secondaryIdentifier|primaryIdentifier" numberOfMainTitlesToShow="1" subTitles="*organism.name*|[strain.identifier]" /> for BioEntity resulting in: Cc_08923 Cajanus cajan[ICPL87119]

This is currently not exposed as a WS, so this requires work on the IM backend.

Thanks to @sammyjava for feedback.

   <class className="org.intermine.model.bio.BioEntity">

     <headerconfig>

       <titles>

         <title mainTitles="secondaryIdentifier|primaryIdentifier" numberOfMainTitlesToShow="1"
subTitles="*organism.name*|[strain.identifier]" />
        </titles>

     </headerconfig>

     <fields>

       <fieldconfig fieldExpr="primaryIdentifier" label="Identifier"/>

       <fieldconfig fieldExpr="secondaryIdentifier" label="Short identifier"/>

       <fieldconfig fieldExpr="name" label="Name"/>

       <fieldconfig fieldExpr="organism.name" label="Organism" />

       <fieldconfig fieldExpr="strain.identifier" label="Strain" />

     </fields>

   </class>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions