Project

General

Profile

« Previous | Next » 

Revision 3236

Added by sledge over 17 years ago

Added predicates to return paths.

View differences:

lib/style/skins/kepler/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>
lib/style/skins/kepler/index.html
64 64
  <input name="enableediting" value="false" type="hidden">
65 65
  <input name="operator" value="UNION" type="hidden">
66 66
  <input name="returnfield" value="entity/@name" type="hidden">
67
  <input name="returnfield" value="entity/property/@name" type="hidden">
68
  <input name="returnfield" value="entity/property/@value" type="hidden">
69
  <!--input name="returnfield" value="entity/property/property/@name" type="hidden">
70
  <input name="returnfield" value="entity/property/property/configure" type="hidden"-->
67
  <input name="returnfield" value="entity/property[@name='karId']/@value" type="hidden">
68
  <input name="returnfield" value="entity/property[@name='documentation']/property[@name='author']/configure" type="hidden">
69
  <input name="returnfield" value="entity/property[@name='documentation']/property[@name='version']/configure" type="hidden">
70
  <input name="returnfield" value="entity/property[@name='documentation']/property[@name='description']/configure" type="hidden">
71
  <input name="returnfield" value="entity/property[@name='documentation']/property[@name='userLevelDocumentation']/configure" type="hidden">
71 72
  <input name="returndoctype" value="entity" type="hidden">
72 73
  <input name="returndoctype" value="kepler://kepler-project.org/kepler-moml-1.0.0" type="hidden">
73 74
  <input value="Search" type="submit">
......
80 81
      </menu>
81 82
  <p>&nbsp;</p>
82 83
  <li>
83
  <a href="@servlet-path@?action=query&amp;operator=INTERSECT&amp;anyfield=%25&amp;qformat=kepler&amp;enableediting=false&amp;returndoctype=entity&returndoctype=kepler://kepler-project.org/kepler-moml-1.0.0&returnfield=entity/@name&returnfield=entity/property/@name&returnfield=entity/property/property/@name">Browse existing Kepler analytical components</a>
84
  <!--a href="@servlet-path@?action=query&amp;operator=INTERSECT&amp;anyfield=%25&amp;qformat=kepler&amp;enableediting=false&amp;returndoctype=entity&returndoctype=kepler://kepler-project.org/kepler-moml-1.0.0&returnfield=entity/@name&returnfield=entity/property/@name&returnfield=entity/property/property/@name&returnfield=entity/property/property/configure&returnfield=entity/property/@value">Browse existing Kepler analytical components</a--><br />
84
  <a href="@servlet-path@?action=query&operator=INTERSECT&qformat=kepler&enableediting=false&operator=UNION&returnfield=entity%2F%40name&returnfield=entity%2Fproperty%5B%40name%3D%27karId%27%5D%2F%40value&returnfield=entity%2Fproperty%5B%40name%3D%27documentation%27%5D%2Fproperty%5B%40name%3D%27author%27%5D%2Fconfigure&returnfield=entity%2Fproperty%5B%40name%3D%27documentation%27%5D%2Fproperty%5B%40name%3D%27version%27%5D%2Fconfigure&returnfield=entity%2Fproperty%5B%40name%3D%27documentation%27%5D%2Fproperty%5B%40name%3D%27description%27%5D%2Fconfigure&returnfield=entity%2Fproperty%5B%40name%3D%27documentation%27%5D%2Fproperty%5B%40name%3D%27userLevelDocumentation%27%5D%2Fconfigure&returndoctype=entity&returndoctype=kepler%3A%2F%2Fkepler-project.org%2Fkepler-moml-1.0.0">Browse existing Kepler analytical components</a>
85
  <br />
85 86
    <menu>
86 87
    Browse all existing data sets by title.  This operation can slow as the
87 88
    number of entries in the repository grows.

Also available in: Unified diff