Ignore:
Timestamp:
Feb 4, 2020, 9:33:54 AM (3 years ago)
Author:
Nicklas Nordborg
Message:

References #2202: Include information from parent items in list pages

Proof-of-concept has been implemented that can load annotations from parent items to raw bioassays.

It it implemented as a "list column" extension that scans the "columns" settings for entries matching /ITEMTYPE/Subtype-id/#Annotationtype-id. If found, it will create an action that uses the Annotatable.getAnnotatableParents() method to to find a parent item that matches the item type and subtype and the get the specified annotation from it.

It seems to work, but it relativeley slow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/clients/web/web-extensions.xml

    r7759 r7764  
    295295  </extension>
    296296 
     297  <extension
     298    id="parent-item-columns"
     299    extends="net.sf.basedb.clients.web.listcolumn.rawbioassay">
     300    <index>2</index>
     301    <about>
     302      <name>Parent item data</name>
     303      <description>
     304        Display and export data from parent items.
     305      </description>
     306    </about>
     307    <action-factory>
     308      <factory-class>
     309        net.sf.basedb.clients.web.extensions.list.ParentItemColumnActionFactory
     310      </factory-class>
     311    </action-factory>
     312  </extension>
    297313</extensions>
Note: See TracChangeset for help on using the changeset viewer.