Project

General

Profile

« Previous | Next » 

Revision 5677

using div tags for the search results now (with some tables too)

View differences:

resultset.xsl
94 94
	</xsl:template>
95 95
	
96 96
	<xsl:template name="emlResults">
97
		<table align="center" border="0" cellpadding="5" cellspacing="0" width="100%">
98
			
99
			<!-- 
100
			<tr class="subpanel">
101
				<th	style="text-align: left">
102
					Title
103
				</th>
104
				<th	style="text-align: left">
105
					Owners[s]
106
				</th>
107
				<th	style="text-align: left">
108
					Organization[s]
109
				</th>
110
				<th	style="text-align: left">
111
					Keywords
112
				</th>
113
			</tr>
114
			-->
115 97
	
98
		<div id="results">
99
	
116 100
			<xsl:for-each
117 101
				select="resultset/document[docname='eml']">
118 102
				<xsl:sort
119 103
					select="./param[@name='dataset/title']" />
120 104
					
121 105
				<!-- the header portion of the result -->
122
				<tr valign="top">
106
				<div>
123 107
					<xsl:attribute name="class">
124 108
	              			<xsl:choose>
125 109
						    <xsl:when test="position() mod 2 = 1">rowodd accordian</xsl:when>
......
127 111
						</xsl:choose>
128 112
					</xsl:attribute>
129 113
	
130
					<td colspan="2" class="text_plain">
131
						<a>
132
							<xsl:attribute name="href">
133
								<xsl:value-of select="$tripleURI"/><xsl:value-of select="./docid"/>
134
							</xsl:attribute>
135
							<b>
136
								<xsl:text>&#187;&#160;</xsl:text>
137
								<xsl:value-of select="./param[@name='dataset/title']"/>
138
							</b>
139
						</a>
140
						(<xsl:value-of select="./docid" />)
141
					</td>
142
				</tr>
114
					<a>
115
						<xsl:attribute name="href">
116
							<xsl:value-of select="$tripleURI"/><xsl:value-of select="./docid"/>
117
						</xsl:attribute>
118
						<b>
119
							<xsl:text>&#187;&#160;</xsl:text>
120
							<xsl:value-of select="./param[@name='dataset/title']"/>
121
						</b>
122
					</a>
123
					(<xsl:value-of select="./docid" />)
124
				</div>
143 125
				
144 126
				<!-- the content part -->	
145
				<tr valign="top">
127
				<div>
146 128
					<xsl:attribute name="class">
147 129
	              		<xsl:choose>
148 130
						    <xsl:when test="position() mod 2 = 1">rowodd</xsl:when>
149 131
						    <xsl:when test="position() mod 2 = 0">roweven</xsl:when>
150 132
						</xsl:choose>
151 133
					</xsl:attribute>
152
	
153
					<td class="text_plain" width="30%">
154 134
					
155
						<!-- render the annotation -->
156
						<xsl:for-each select="./*[local-name()='annotation']">
157
							<xsl:call-template name="annotation">
158
								 <xsl:with-param name="showAll" select="false"/>
159
							</xsl:call-template>	
160
						</xsl:for-each>
161
						
162
									
163
					</td>
135
					<table class="onehundred_percent">
136
						<tr>
137
							<td width="30%">
138
								<!-- render the annotation -->
139
								<xsl:for-each select="./*[local-name()='annotation']">
140
									<xsl:call-template name="annotation">
141
										 <xsl:with-param name="showAll" select="false"/>
142
									</xsl:call-template>	
143
								</xsl:for-each>
144
							</td>
164 145
							
165
					<td width="70%">
166
								
167
						<!-- render the DP details -->
168
						<table class="subGroup subGroup_border onehundred_percent">
169
							<tr>
170
								<th>
171
									Owner[s]
172
								</th>
173
								<th>
174
									Organizations[s]
175
								</th>
176
								<th>
177
									Keyword[s]
178
								</th>
179
							</tr>
180
							<tr>
181
								<td>
182
									<xsl:for-each
183
										select="./param[@name='creator/individualName/surName']">
184
										<xsl:value-of select="." />
185
										<br/>
186
									</xsl:for-each>
187
								</td>
188
							</tr>
189
							<tr>
190
								<td>
191
									<xsl:for-each
192
										select="./param[@name='creator/organizationName']">
193
										<xsl:value-of select="." />
194
										<br/>
195
									</xsl:for-each>
196
								</td>
197
							</tr>
198
							<tr>
199
								<td>
200
									<xsl:for-each
201
										select="./param[@name='keyword']">
202
										<xsl:value-of select="." />
203
										<br/>
204
									</xsl:for-each>
205
								</td>
206
							</tr>			
207
						</table>
208
						
209
					</td>
210
	
211
				</tr>
212
				
146
					
147
							<td>
148
								<!-- render the DP details -->
149
								<table class="subGroup subGroup_border onehundred_percent">
150
									<tr>
151
										<th>
152
											Owner[s]
153
										</th>
154
										<th>
155
											Organizations[s]
156
										</th>
157
										<th>
158
											Keyword[s]
159
										</th>
160
									</tr>
161
									<tr>
162
										<td>
163
											<xsl:for-each
164
												select="./param[@name='creator/individualName/surName']">
165
												<xsl:value-of select="." />
166
												<br/>
167
											</xsl:for-each>
168
										</td>
169
									</tr>
170
									<tr>
171
										<td>
172
											<xsl:for-each
173
												select="./param[@name='creator/organizationName']">
174
												<xsl:value-of select="." />
175
												<br/>
176
											</xsl:for-each>
177
										</td>
178
									</tr>
179
									<tr>
180
										<td>
181
											<xsl:for-each
182
												select="./param[@name='keyword']">
183
												<xsl:value-of select="." />
184
												<br/>
185
											</xsl:for-each>
186
										</td>
187
									</tr>			
188
								</table>
189
							</td>
190
						</tr>
191
					</table>
192
											
193
				</div>
194
		
213 195
			</xsl:for-each>
214
		</table>
196
			
197
		</div>	
198
			
215 199
	</xsl:template>
216 200
	
217 201

  

Also available in: Unified diff