Project

General

Profile

« Previous | Next » 

Revision 5354

Added by Jing Tao about 14 years ago

Change the return type from kar to the namespace.

View differences:

searchWorkflowRunResultset.xsl
52 52
			if there are not then don't show the query results -->
53 53
		<xsl:if test="count(resultset/document) &gt; 0">
54 54
			<xsl:for-each select="resultset/document">
55
				<xsl:sort select='./param[@name="/kar/karEntry/karEntryXML/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;startTime&apos;]/@value"]' order='descending' />
56
                <xsl:sort select='./param[@name="/kar/karEntry/karEntryXML/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;workflowName&apos;]/@value"]' />
55
				<xsl:sort select='./param[@name="karEntry/karEntryXML/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;startTime&apos;]/@value"]' order='descending' />
56
                <xsl:sort select='./param[@name="karEntry/karEntryXML/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;workflowName&apos;]/@value"]' />
57 57
				<!-- test if the document has the "workflowRun" property. If has, kept this document-->
58 58
				<xsl:variable name="workflowRunClassName">
59
					<xsl:value-of select='./param[@name="/kar/karEntry/karEntryXML/property[@name=&apos;WorkflowRun&apos;]/@class"]'/>
59
					<xsl:value-of select='./param[@name="karEntry/karEntryXML/property[@name=&apos;WorkflowRun&apos;]/@class"]'/>
60 60
				</xsl:variable>
61 61
				
62 62
				<xsl:if test="$workflowRunClassName != $emptyString">				
63 63
					<xsl:variable name="karDocid">
64 64
                            <xsl:call-template name="extractDocidFromLsid">
65
                                <xsl:with-param name="lsidString" select='./param[@name="/kar/mainAttributes/lsid"]' />
65
                                <xsl:with-param name="lsidString" select='./param[@name="mainAttributes/lsid"]' />
66 66
                            </xsl:call-template>
67 67
					</xsl:variable>
68 68
					<xsl:variable name="pdfFile">
69
						<xsl:for-each select='./param[@name="/kar/karEntry/karEntryAttributes/Name"]'>
69
						<xsl:for-each select='./param[@name="karEntry/karEntryAttributes/Name"]'>
70 70
							<xsl:variable name="fileName" select='.' />				
71 71
							<xsl:if test="contains($fileName, $pdfExtension)">
72 72
                             <xsl:value-of select="normalize-space($fileName)"/>
......
83 83
						</xsl:attribute>
84 84

  
85 85
						<div class="col col1">	
86
							<xsl:value-of select='./param[@name="/kar/karEntry/karEntryXML/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;workflowName&apos;]/@value"]' />		
86
							<xsl:value-of select='./param[@name="karEntry/karEntryXML/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;workflowName&apos;]/@value"]' />		
87 87
						</div>
88 88
						<div class="col col2">	
89 89
							<xsl:choose>
90
							<xsl:when  test="not(./param[@name=&quot;/kar/karEntry/karEntryAttributes/tpcStatus&quot;])" >
90
							<xsl:when  test="not(./param[@name=&quot;karEntry/karEntryAttributes/tpcStatus&quot;])" >
91 91
							unknown
92 92
							</xsl:when>
93 93
							<xsl:otherwise>
94
								<xsl:value-of select='./param[@name="/kar/karEntry/karEntryAttributes/tpcStatus"]' />	
94
								<xsl:value-of select='./param[@name="karEntry/karEntryAttributes/tpcStatus"]' />	
95 95
							</xsl:otherwise>
96 96
							</xsl:choose>
97 97
						</div>
98 98
						<div class="col col3">	
99
							<xsl:value-of select='./param[@name="/kar/karEntry/karEntryXML/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;startTime&apos;]/@value"]' />		
99
							<xsl:value-of select='./param[@name="karEntry/karEntryXML/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;startTime&apos;]/@value"]' />		
100 100
						</div>
101 101
						<div class="col col4">	
102 102
							<a>

Also available in: Unified diff