Changeset 5989
- Timestamp:
- Mar 2, 2012, 3:10:02 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0-stable/www/biomaterials/extracts/index.jsp
r5687 r5989 38 38 import="net.sf.basedb.core.Tag" 39 39 import="net.sf.basedb.core.PhysicalBioAssay" 40 import="net.sf.basedb.core.RawBioAssay" 40 41 import="net.sf.basedb.core.ItemSubtype" 41 42 import="net.sf.basedb.core.ItemQuery" … … 92 93 cc.setObject("export.formatter.&childCreationEvents(event.physicalBioAssay.name)", new NameableFormatter()); 93 94 cc.setObject("export.formatter.&childCreationEvents(event.bioMaterial.name)", new NameableFormatter()); 95 cc.setObject("export.formatter.&rawBioAssays(name)", new NameableFormatter()); 94 96 cc.setObject("export.formatter.parentType", new ItemTypeFormatter()); 95 97 … … 122 124 parentExtractsQuery.include(cc.getInclude()); 123 125 cc.setObject("export.dataloader.&creationEvent.sources(bioMaterial.name)", new ParentBioMaterialLoader(parentExtractsQuery, restrictionParameter)); 126 127 // Child raw bioassays 128 final ItemQuery<RawBioAssay> rawBioAssayQuery = RawBioAssay.getQuery(); 129 rawBioAssayQuery.restrict(Restrictions.eq(Hql.property("parentExtract"), Expressions.parameter(restrictionParameter))); 130 rawBioAssayQuery.order(Orders.asc(Hql.property("name"))); 131 rawBioAssayQuery.include(cc.getInclude()); 132 cc.setObject("export.dataloader.&rawBioAssays(name)", new ItemQueryLoader(rawBioAssayQuery, restrictionParameter)); 124 133 } 125 134 %>
Note: See TracChangeset
for help on using the changeset viewer.