Project

General

Profile

« Previous | Next » 

Revision 3236

Added by sledge about 17 years ago

Added predicates to return paths.

View differences:

resultset.xsl
83 83
th.tablehead,
84 84
td.text_plain
85 85
{
86
    padding: 0 0.75em;
86
    padding: 0.375em 0.75em 0;
87 87
}
88 88

  
89 89
th.tablehead:first-child,
90 90
td.text_plain:first-child
91 91
{
92
    padding: 0 0.375em;
92
    padding: 0.375em 0.375em 0;
93 93
}
94 94

  
95 95
td.text_plain
......
102 102
    border-bottom: 1px solid #ddd;
103 103
}
104 104

  
105
tr.entry + tr + tr td
105
tr.entry + tr td
106 106
{
107 107
    border-bottom: 1px solid #066;
108 108
    padding-top: 0.375em;
109 109
    padding-bottom: 0.375em;
110 110
}
111 111

  
112
tr.entry + tr + tr td a
112
.dl
113 113
{
114
    background: #eeeeee url(download.png) 2px center no-repeat;
114
    background: #eeeeee url(@style-skins-path@/<xsl:value-of select="$qformat"/>/download2.png) 2px center no-repeat;
115 115
    border: 1px solid black;
116 116
    font-weight: bold;
117 117
    text-decoration: none;
118 118
    padding: 0.063em 0.375em 0.063em 20px;
119
    font-size: smaller;
119 120
}
120 121

  
121 122
        </style>
......
142 143
                <th class="tablehead" style="width: 1px;">Component</th>
143 144
                <th class="tablehead" style="width: 15em;">Author</th>
144 145
                <th class="tablehead">Version</th>
146
                <th class="tablehead"></th>
145 147
              </tr>
146 148

  
147 149
              <xsl:for-each select="resultset/document">
148 150
                <xsl:sort select="./param[@name='/entity/@name']"/>
151
                <xsl:variable name="sq">'</xsl:variable>
149 152
                <tr class="entry">
150 153

  
151 154
                  <td class="text_plain">
......
154 157

  
155 158
                  <td class="text_plain" style="white-space: nowrap;">
156 159
                    <xsl:if test="./param[@name='entity/@name']!=''">
157
                      <b>
160
                      <b style="font-size: larger;">
158 161
                        <xsl:value-of select="./param[@name='entity/@name']"/>
159 162
                      </b>
160 163
                    </xsl:if>
161 164
                  </td>
162 165

  
163
                  <!--td class="text_plain">
164
                    <xsl:value-of select="./param[@name='entity/property/@name'][text()='documentation']/following-sibling::param[@name='entity/property/property/@name'][text()='author']/following-sibling::param[@name='entity/property/property/configure'][position()=1]"/>
166
                  <td class="text_plain">
167
                    <xsl:value-of select="./param[@name=concat('entity/property[@name=', $sq, 'documentation', $sq, ']/property[@name=', $sq, 'author', $sq, ']/configure')]"/>
165 168
                  </td>
166 169

  
167 170
                  <td class="text_plain">
168
                    <xsl:value-of select="./param[@name='entity/property/@name'][text()='documentation']/following-sibling::param[@name='entity/property/property/@name'][text()='version']/following-sibling::param[@name='entity/property/property/configure'][position()=1]"/>
171
                    <xsl:value-of select="./param[@name=concat('entity/property[@name=', $sq, 'documentation', $sq, ']/property[@name=', $sq, 'version', $sq, ']/configure')]"/>
169 172
                  </td>
170 173

  
171
                  <xsl:if test="$enableediting = 'true'">
174
                  <td class="text_plain">
175
                    <a class="dl">
176
                      <xsl:attribute name="href">
177
                        <xsl:text>http://@server@/authority/data?lsid=</xsl:text>
178
                        <xsl:value-of select="./param[@name=concat('entity/property[@name=', $sq, 'karId', $sq, ']/@value')]"/>
179
                      </xsl:attribute>
180

  
181
                      <xsl:text>Download</xsl:text>
182
                    </a>
183
                  </td>
184

  
185
                  <!--xsl:if test="$enableediting = 'true'">
172 186
                    <td class="text_plain">
173 187
                      <form action="@servlet-path@" method="get">
174 188
                        <input type="hidden" name="action" value="read"/>
......
224 238
                <tr>
225 239
                  <td class="text_plain"></td>
226 240
                  <td class="text_plain" colspan="6">
227
                    <!--xsl:value-of select="substring(./param[@name='entity/property/@name'][text()='documentation']/following-sibling::param[@name='entity/property/property/@name'][text()='description']/following-sibling::param[@name='entity/property/property/configure'][position()=1], 0, 50)"/>
228
                    <xsl:text>... [</xsl:text-->
241
                    <xsl:variable name="docClip" select="substring(./param[@name=concat('entity/property[@name=', $sq, 'documentation', $sq, ']/property[@name=', $sq, 'description', $sq, ']/configure')], 0, 200)"/>
242
                    <xsl:value-of select="$docClip"/>
243
                    <xsl:text> </xsl:text>
244
                    <xsl:value-of select="substring(./param[@name=concat('entity/property[@name=', $sq, 'documentation', $sq, ']/property[@name=', $sq, 'userLevelDocumentation', $sq, ']/configure')], 0, 200 - $docClip)"/>
245
                    <xsl:text>... [</xsl:text>
229 246

  
230
                    <a>
247
                    <a style="font-size: smaller;">
231 248
                      <xsl:attribute name="href">
232 249
                        <xsl:text>metacat?qformat=</xsl:text>
233 250
                        <xsl:value-of select="$qformat"/>
......
245 262
                      <xsl:text>View Documentation</xsl:text>
246 263
                    </a>
247 264

  
248
                    <!--xsl:text>]</xsl:text-->
265
                    <xsl:text>]</xsl:text>
249 266
                  </td>
250 267
                </tr>
251

  
252
                <tr>
253
                  <td class="text_plain"></td>
254
                  <td class="text_plain" colspan="6">
255
                    <a>
256
                      <xsl:attribute name="href">
257
                        <xsl:text>http://@server@/authority/data?lsid=</xsl:text>
258
                        <xsl:value-of select="./param[@name='entity/property/@name'][text()='karId']/following-sibling::param[@name='entity/property/@value'][position()=1]"/>
259
                      </xsl:attribute>
260

  
261
                      <xsl:text>Download</xsl:text>
262
                    </a>
263
                  </td>
264
                </tr>
265 268
              </xsl:for-each>
266 269
            </table>
267 270
          </xsl:if>

Also available in: Unified diff