Project

General

Profile

« Previous | Next » 

Revision 5178

use @class attribute for path queries rather than @name

View differences:

lib/style/common/searchWorkflowRun.js
14 14
	queryString += "<pathquery version='1.2'>";
15 15
	queryString += "<returndoctype>property</returndoctype>";
16 16
	queryString += "<returndoctype>-//UC Berkeley//DTD MoML 1//EN</returndoctype>";
17
	queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'user\']/@value</returnfield>";
18
	queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'description\']/@value</returnfield>";
19
	queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'startTime\']/@value</returnfield>";
20
	queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'workflowLSID\']/@value</returnfield>";
21
	queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'tpcStatus\']/@value</returnfield>";
22
	queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'workflowName\']/@value</returnfield>";
23
	queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'pdfReport\']/@value</returnfield>";
24
	queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'htmlReport\']/@value</returnfield>";
25
	queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'karLSID\']/@value</returnfield>";
26
	queryString += "<returnfield>/property[@name=\'WorkflowRun\']/property[@name=\'ReportInstance_pdf\']/@value</returnfield>";
17
	queryString += "<returnfield>/property[@class=\'org.kepler.util.WorkflowRun\']/property[@name=\'user\']/@value</returnfield>";
18
	queryString += "<returnfield>/property[@class=\'org.kepler.util.WorkflowRun\']/property[@name=\'description\']/@value</returnfield>";
19
	queryString += "<returnfield>/property[@class=\'org.kepler.util.WorkflowRun\']/property[@name=\'startTime\']/@value</returnfield>";
20
	queryString += "<returnfield>/property[@class=\'org.kepler.util.WorkflowRun\']/property[@name=\'workflowLSID\']/@value</returnfield>";
21
	queryString += "<returnfield>/property[@class=\'org.kepler.util.WorkflowRun\']/property[@name=\'tpcStatus\']/@value</returnfield>";
22
	queryString += "<returnfield>/property[@class=\'org.kepler.util.WorkflowRun\']/property[@name=\'workflowName\']/@value</returnfield>";
23
	queryString += "<returnfield>/property[@class=\'org.kepler.util.WorkflowRun\']/property[@name=\'pdfReport\']/@value</returnfield>";
24
	queryString += "<returnfield>/property[@class=\'org.kepler.util.WorkflowRun\']/property[@name=\'htmlReport\']/@value</returnfield>";
25
	queryString += "<returnfield>/property[@class=\'org.kepler.util.WorkflowRun\']/property[@name=\'karLSID\']/@value</returnfield>";
26
	queryString += "<returnfield>/property[@class=\'org.kepler.util.WorkflowRun\']/property[@name=\'ReportInstance_pdf\']/@value</returnfield>";
27 27
	
28 28
	queryString += "<querygroup operator='INTERSECT'>";	
29 29
	
lib/style/common/searchWorkflowRunResultset.xsl
50 50
			if there are not then don't show the query results -->
51 51
		<xsl:if test="count(resultset/document) &gt; 0">
52 52
			<xsl:for-each select="resultset/document">
53
				<xsl:sort select='./param[@name="/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;startTime&apos;]/@value"]' order='descending' />
54
				<xsl:sort select='./param[@name="/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;workflowName&apos;]/@value"]' />
53
				<xsl:sort select='./param[@name="/property[@class=&apos;org.kepler.util.WorkflowRun&apos;]/property[@name=&apos;startTime&apos;]/@value"]' order='descending' />
54
				<xsl:sort select='./param[@name="/property[@class=&apos;org.kepler.util.WorkflowRun&apos;]/property[@name=&apos;workflowName&apos;]/@value"]' />
55 55
				<div>
56 56
					<xsl:attribute name="class">
57 57
						<xsl:choose>
......
61 61
					</xsl:attribute>
62 62

  
63 63
					<div class="col col1">	
64
						<xsl:value-of select='./param[@name="/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;workflowName&apos;]/@value"]' />		
64
						<xsl:value-of select='./param[@name="/property[@class=&apos;org.kepler.util.WorkflowRun&apos;]/property[@name=&apos;workflowName&apos;]/@value"]' />		
65 65
					</div>
66 66
					<div class="col col2">	
67 67
						<xsl:choose>
68
						<xsl:when  test="not(./param[@name=&quot;/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;tpcStatus&apos;]/@value&quot;])" >
68
						<xsl:when  test="not(./param[@name=&quot;/property[@class=&apos;org.kepler.util.WorkflowRun&apos;]/property[@name=&apos;tpcStatus&apos;]/@value&quot;])" >
69 69
							unknown
70 70
						</xsl:when>
71 71
						<xsl:otherwise>
72
							<xsl:value-of select='./param[@name="/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;tpcStatus&apos;]/@value"]' />	
72
							<xsl:value-of select='./param[@name="/property[@class=&apos;org.kepler.util.WorkflowRun&apos;]/property[@name=&apos;tpcStatus&apos;]/@value"]' />	
73 73
						</xsl:otherwise>
74 74
						</xsl:choose>
75 75
					</div>
76 76
					<div class="col col3">	
77
						<xsl:value-of select='./param[@name="/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;startTime&apos;]/@value"]' />		
77
						<xsl:value-of select='./param[@name="/property[@class=&apos;org.kepler.util.WorkflowRun&apos;]/property[@name=&apos;startTime&apos;]/@value"]' />		
78 78
					</div>
79 79
					<div class="col col4">	
80 80
						<a>
81 81
							<xsl:attribute name="class">underlined</xsl:attribute>
82 82
							<xsl:attribute name="href">
83
								<xsl:value-of select='$contextURL' />/metacat?action=read&amp;docid=<xsl:value-of select='./param[@name="/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;karLSID&apos;]/@value"]' />&amp;archiveEntryName=<xsl:value-of select='./param[@name="/property[@name=&apos;WorkflowRun&apos;]/property[@name=&apos;ReportInstance_pdf&apos;]/@value"]' />
83
								<xsl:value-of select='$contextURL' />/metacat?action=read&amp;docid=<xsl:value-of select='./param[@name="/property[@class=&apos;org.kepler.util.WorkflowRun&apos;]/property[@name=&apos;karLSID&apos;]/@value"]' />&amp;archiveEntryName=<xsl:value-of select='./param[@name="/property[@class=&apos;org.kepler.util.WorkflowRun&apos;]/property[@name=&apos;ReportInstance_pdf&apos;]/@value"]' />
84 84
							</xsl:attribute>
85 85
							PDF
86 86
						</a> 

Also available in: Unified diff