Changeset 7315


Ignore:
Timestamp:
Mar 30, 2017, 9:03:19 AM (6 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #2069: Display raw data type as subtitle of raw bioassays in item overview

Location:
trunk/www/common/overview
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/common/overview/ajax.jsp

    r6382 r7315  
    3030  import="net.sf.basedb.core.BioPlate"
    3131  import="net.sf.basedb.core.BioPlateType"
     32  import="net.sf.basedb.core.RawDataType"
     33  import="net.sf.basedb.core.RawBioAssay"
    3234  import="net.sf.basedb.core.Item"
    3335  import="net.sf.basedb.util.overview.GenericOverview"
     
    119121          {}
    120122        }
     123        else if (n.getItem() instanceof RawBioAssay)
     124        {
     125          RawDataType rawDataType = ((RawBioAssay)n.getItem(dc)).getRawDataType();
     126          subtitle = rawDataType.getName();
     127        }
    121128       
    122129        int numChildren = n.numChildren();
  • trunk/www/common/overview/tree.jsp

    r6388 r7315  
    3333  import="net.sf.basedb.core.BioPlateType"
    3434  import="net.sf.basedb.core.BioPlate"
     35  import="net.sf.basedb.core.RawDataType"
     36  import="net.sf.basedb.core.RawBioAssay"
    3537  import="net.sf.basedb.core.ItemContext"
    3638  import="net.sf.basedb.core.Permission"
     
    164166      {}
    165167    }
     168    else if (child.getItem() instanceof RawBioAssay)
     169    {
     170      RawDataType rawDataType = ((RawBioAssay)child.getItem(dc)).getRawDataType();
     171      subtitle = rawDataType.getName();
     172    }
    166173   
    167174    String text = HTML.encodeTags(child.getTitle()) + (subtitle != null ? " <span class=\"subtitle\">(" + subtitle + ")</span>" : "");
Note: See TracChangeset for help on using the changeset viewer.