Changeset 16540

Show
Ignore:
Timestamp:
19/08/08 16:39:15 (5 months ago)
Author:
julie
Message:

set export trail for results and lists

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/intermine/webapp/main/resources/webapp/export.jsp

    r16539 r16540  
    22<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> 
    33<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> 
     4<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> 
    45 
    56<!-- export.jsp --> 
    67 
     8<c:set var="queryTrailLink" value="|query"/> 
     9<c:if test="${fn:startsWith(tableName, 'bag.')}"> 
     10  <c:set var="queryTrailLink" value=""/> 
     11</c:if> 
    712<html:xhtml/> 
    813 
    9 <html:link action="/exportOptions?table=${tableName}&amp;type=csv&amp;trail=|query|${tableName}"> 
     14<html:link action="/exportOptions?table=${tableName}&amp;type=csv&amp;trail=${queryTrailLink}|${tableName}"> 
    1015  <fmt:message key="exporter.csv.description"/> 
    1116</html:link> 
     
    1318 
    1419<c:if test="${pagedTable.estimatedSize <= WEB_PROPERTIES['max.excel.export.size']}"> 
    15   <html:link action="/exportOptions?table=${tableName}&amp;type=excel&amp;trail=|query|${tableName}"> 
     20  <html:link action="/exportOptions?table=${tableName}&amp;type=excel&amp;trail=${queryTrailLink}|${tableName}"> 
    1621    <fmt:message key="exporter.excel.description"> 
    1722      <fmt:param value="${WEB_PROPERTIES['max.excel.export.size']}"/> 
     
    3035    </c:when> 
    3136    <c:otherwise> 
    32       <html:link action="/exportOptions?table=${tableName}&amp;type=${exporterId}&amp;trail=|query|${tableName}"> 
     37      <html:link action="/exportOptions?table=${tableName}&amp;type=${exporterId}&amp;trail=${queryTrailLink}|${tableName}"> 
    3338        <fmt:message key="exporter.${exporterId}.description"/> 
    3439      </html:link><br>