Revision 5834
Added by Jing Tao almost 14 years ago
lib/style/common/searchWorkflowRunResultset.xsl | ||
---|---|---|
65 | 65 |
<xsl:with-param name="lsidString" select='./param[@name="mainAttributes/lsid"]' /> |
66 | 66 |
</xsl:call-template> |
67 | 67 |
</xsl:variable> |
68 |
<xsl:variable name="pdfFile"> |
|
69 |
<xsl:for-each select='./param[@name="karEntry/karEntryAttributes/Name"]'> |
|
70 |
<xsl:variable name="fileName" select='.' /> |
|
71 |
<xsl:if test="contains($fileName, $pdfExtension)"> |
|
72 |
<xsl:value-of select="normalize-space($fileName)"/> |
|
73 |
</xsl:if> |
|
74 |
</xsl:for-each> |
|
75 |
</xsl:variable> |
|
68 |
|
|
76 | 69 |
|
77 | 70 |
<div> |
78 | 71 |
<xsl:attribute name="class"> |
... | ... | |
99 | 92 |
<xsl:value-of select='./param[@name="karEntry/karEntryXML/property[@name='WorkflowRun']/property[@name='startTime']/@value"]' /> |
100 | 93 |
</div> |
101 | 94 |
<div class="col col4"> |
102 |
<a> |
|
103 |
<xsl:attribute name="class">underlined</xsl:attribute> |
|
104 |
<xsl:attribute name="href"> |
|
105 |
<xsl:value-of select='$contextURL' />/metacat?action=read&docid=<xsl:value-of select="$karDocid" />&archiveEntryName=<xsl:value-of select="$pdfFile" /> |
|
106 |
</xsl:attribute> |
|
107 |
|
|
108 |
</a> |
|
95 |
<xsl:for-each select='./param[@name="karEntry/karEntryAttributes/Name"]'> |
|
96 |
<xsl:variable name="fileName" select='.' /> |
|
97 |
<xsl:if test="contains($fileName, $pdfExtension)"> |
|
98 |
<xsl:variable name="pdfFile"> |
|
99 |
<xsl:value-of select="normalize-space($fileName)"/> |
|
100 |
</xsl:variable> |
|
101 |
<a> |
|
102 |
<xsl:attribute name="class">underlined</xsl:attribute> |
|
103 |
<xsl:attribute name="href"> |
|
104 |
<xsl:value-of select='$contextURL' />/metacat?action=read&docid=<xsl:value-of select="$karDocid" />&archiveEntryName=<xsl:value-of select="$pdfFile" /> |
|
105 |
</xsl:attribute> |
|
106 |
|
|
107 |
</a> |
|
108 |
</xsl:if> |
|
109 |
</xsl:for-each> |
|
109 | 110 |
<!-- | |
110 | 111 |
<a> |
111 | 112 |
<xsl:attribute name="class">underlined</xsl:attribute> |
Also available in: Unified diff
Fixed a bug that pdf file name can't be got.