Ignore:
Timestamp:
Apr 20, 2009, 1:08:37 PM (13 years ago)
Author:
Martin Svensson
Message:

References #1128 Undoing changeset [4895]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/biomaterials/extracts/index.jsp

    r4895 r4896  
    3333  import="net.sf.basedb.core.BioMaterialEvent"
    3434  import="net.sf.basedb.core.BioWell"
    35   import="net.sf.basedb.core.LabeledExtract"
    3635  import="net.sf.basedb.core.Protocol"
    3736  import="net.sf.basedb.core.ItemQuery"
     
    5049  import="net.sf.basedb.util.Values"
    5150  import="net.sf.basedb.clients.web.util.HTML"
    52   import="net.sf.basedb.util.formatter.ParentPropertyFormatter"
    53   import="net.sf.basedb.util.formatter.PropertyFormatter"
    5451  import="net.sf.basedb.util.formatter.Formatter"
    5552  import="net.sf.basedb.util.formatter.WellCoordinateFormatter"
     
    7269    cc.setObject("export.formatter.bioWell.row", new WellCoordinateFormatter(true));
    7370    cc.setObject("export.formatter.bioWell.column", new WellCoordinateFormatter(false));
    74     cc.setObject("export.formatter.&children(name)", new PropertyFormatter("getLabeledExtracts"));
    75     cc.setObject("export.formatter.&creationEvent.sourceBioMaterials(name)", new ParentPropertyFormatter("getCreationEvent.getSources", "getSample"));
    7671  }
    7772%>
     
    330325  {
    331326    // Run an export plugin in a list context
    332     dc = sc.newDbControl();
    333327    ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext);
    334328    final ItemQuery<Extract> query = Extract.getQuery();
    335329    cc.configureQuery(query, true);
    336330    registerExportFormatters(cc);
    337     dc.close();
    338331    cc.setQuery(query);
    339     redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Export+extracts";   
     332    redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Export+extracts";
    340333  }
    341334  else if ("ExportItem".equals(cmd))
    342335  {
    343336    // Run an export plugin in single-item context
    344     dc = sc.newDbControl();
    345337    ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext);
    346338    registerExportFormatters(cc);
    347     dc.close();
    348339    redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Export+extract";
    349340  }
Note: See TracChangeset for help on using the changeset viewer.