intermine / intermine/bluegenes

Use webconfig-model.xml headerconfig for report title

Open
#830 4 comments 0 reactions 0 assignees View on GitHub
enhancement InterMine backend Report page
Dominant language
Clojure
Stars
75
Forks
59
PR merge metrics
No merged PRs in 30d

Description

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 `` 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.

```xml
<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>
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.