How to insert a space in the subTitles of Header

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to insert a space in the subTitles of Header

Pengcheng Yang

Dear InterMiners,

In the gene report page (http://www.insectmine.org:8080/fawmine/gene:SFR00043), I want to insert a space into the subTitle and the results looked like "S. frugiperda BGI Male"

I have tried several methods but failed at the end.

In the webconfig-model.xml file, I have set this as follows.

<class className="org.intermine.model.bio.BioEntity">
    <headerconfig>
      <titles>
        <title mainTitles="symbol|primaryIdentifier" numberOfMainTitlesToShow="1" subTitles="*organism.shortName*|*organism.strainName*" />
      </titles>
    </headerconfig>
    <fields>
      <fieldconfig fieldExpr="primaryIdentifier" label="DB identifier"/>
    </fields>
  </class>

Thank you and best,

Pengcheng Yang



_______________________________________________
dev mailing list
[hidden email]
https://lists.intermine.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: How to insert a space in the subTitles of Header

sergio contrino-2
dear Pengcheng,
it seems you can do something like

<class className="org.intermine.model.bio.BioEntity">
       <headerconfig>
         <titles>
           <title mainTitles="symbol|organism.shortName"
  numberOfMainTitlesToShow="2"
  subTitles="*organism.strainName*" />
         </titles>
       </headerconfig>
       <fields>
         <fieldconfig fieldExpr="primaryIdentifier" label="DB identifier"/>
       </fields>
     </class>

which is probably not ideal.

or you could put the strain in []

<class className="org.intermine.model.bio.BioEntity">
     <headerconfig>
       <titles>
         <title mainTitles="symbol|primaryIdentifier"
numberOfMainTitlesToShow="1"
subTitles="*organism.shortName*|[organism.strainName]" />
       </titles>
     </headerconfig>
     <fields>
       <fieldconfig fieldExpr="primaryIdentifier" label="DB identifier"/>
     </fields>
   </class>


thanks!
sergio

On 10/02/2020 10:10, Pengcheng Yang wrote:

> Dear InterMiners,
>
> In the gene report page
> (http://www.insectmine.org:8080/fawmine/gene:SFR00043), I want to insert
> a space into the subTitle and the results looked like "/S. frugiperda
> BGI Male/"
>
> I have tried several methods but failed at the end.
>
> In the webconfig-model.xml file, I have set this as follows.
>
> <class className="org.intermine.model.bio.BioEntity">
>      <headerconfig>
>        <titles>
>          <title mainTitles="symbol|primaryIdentifier"
> numberOfMainTitlesToShow="1"
> subTitles="*organism.shortName*|*organism.strainName*" />
>        </titles>
>      </headerconfig>
>      <fields>
>        <fieldconfig fieldExpr="primaryIdentifier" label="DB identifier"/>
>      </fields>
>    </class>
>
> Thank you and best,
>
> Pengcheng YangPengcheng
>
>
>
> _______________________________________________
> dev mailing list
> [hidden email]
> https://lists.intermine.org/mailman/listinfo/dev
>

--
sergio contrino                  InterMine, University of Cambridge
https://sergiocontrino.github.io           http://www.intermine.org
_______________________________________________
dev mailing list
[hidden email]
https://lists.intermine.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: How to insert a space in the subTitles of Header

Pengcheng Yang

Dear sergio,

As you suggested, I put the strain in [], and got the following displaying. It is OK now.


Thank you.

pengcheng


On 2020-2-10 22:40, sergio contrino wrote:
dear Pengcheng,
it seems you can do something like

<class className="org.intermine.model.bio.BioEntity">
      <headerconfig>
        <titles>
          <title mainTitles="symbol|organism.shortName"
 numberOfMainTitlesToShow="2"
 subTitles="*organism.strainName*" />
        </titles>
      </headerconfig>
      <fields>
        <fieldconfig fieldExpr="primaryIdentifier" label="DB identifier"/>
      </fields>
    </class>

which is probably not ideal.

or you could put the strain in []

<class className="org.intermine.model.bio.BioEntity">
    <headerconfig>
      <titles>
        <title mainTitles="symbol|primaryIdentifier" numberOfMainTitlesToShow="1" subTitles="*organism.shortName*|[organism.strainName]" />
      </titles>
    </headerconfig>
    <fields>
      <fieldconfig fieldExpr="primaryIdentifier" label="DB identifier"/>
    </fields>
  </class>


thanks!
sergio

On 10/02/2020 10:10, Pengcheng Yang wrote:
Dear InterMiners,

In the gene report page (http://www.insectmine.org:8080/fawmine/gene:SFR00043), I want to insert a space into the subTitle and the results looked like "/S. frugiperda BGI Male/"

I have tried several methods but failed at the end.

In the webconfig-model.xml file, I have set this as follows.

<class className="org.intermine.model.bio.BioEntity">
     <headerconfig>
       <titles>
         <title mainTitles="symbol|primaryIdentifier" numberOfMainTitlesToShow="1" subTitles="*organism.shortName*|*organism.strainName*" />
       </titles>
     </headerconfig>
     <fields>
       <fieldconfig fieldExpr="primaryIdentifier" label="DB identifier"/>
     </fields>
   </class>

Thank you and best,

Pengcheng YangPengcheng



_______________________________________________
dev mailing list
[hidden email]
https://lists.intermine.org/mailman/listinfo/dev



_______________________________________________
dev mailing list
[hidden email]
https://lists.intermine.org/mailman/listinfo/dev