Changeset 1226 for MDService2/trunk
- Timestamp:
- 04/20/11 19:48:57 (13 years ago)
- Location:
- MDService2/trunk/MDService2
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/trunk/MDService2/WebContent/ExceptionXML.jsp
r1187 r1226 4 4 <diagnostics> 5 5 <diagnostic xmlns="http://www.loc.gov/zing/srw/diagnostic"> 6 <uri>info:srw/diagnostic/1/1</uri> 7 <details></details> 8 <message>Exception occured.</message> 9 <addinfo><s:property value="%{exception.message}"/></addinfo> 6 <uri>info:srw/diagnostic/1/1</uri> 7 <message>Exception occurred: <s:property value="%{exception.message}"/></message> 8 <details><s:property value="%{exceptionStack}"/></details> 10 9 </diagnostic> 11 10 </diagnostics> -
MDService2/trunk/MDService2/WebContent/scripts/mdservice_model.js
r1223 r1226 530 530 531 531 /** 532 A singleton-object holding all queries.533 @ field532 @class A singleton-object holding all queries. 533 @static 534 534 */ 535 535 var queryset = { queries: [], -
MDService2/trunk/MDService2/WebContent/style/cmds-ui.css
r1223 r1226 7 7 #main {margin-left:260px; /* max-width: .. */} 8 8 #query-input { padding: 6px; /* max-width: 600px; */ } 9 #repositories {margin: 6px ;0px; }9 #repositories {margin: 6px 0px; } 10 10 #notify {max-width: 400px; position: relative; overflow: auto; height: 40px;} 11 11 #user {text-align: right;} … … 80 80 81 81 .cmds-elem-prop .label { } 82 .cmds-elem-prop .value {} 83 84 .value-text {} 82 .cmds-elem-prop .value { } 83 84 85 .value-text { } 85 86 .value-unspecified {} 86 87 .value-empty {} … … 89 90 .cmds-xmlelem {padding:2px; border-top: 1px dashed #A6C9E2; } 90 91 .cmds-xmlelem.has-children { border: 1px solid #A6C9E2; margin: 2px;} 92 .value-text .value { margin-left: 20%; display:block; } 93 .value-text .label { float:left; } 91 94 .cmds-xmlelem .attributes .label {} 92 95 .cmds-xmlelem .attributes .value {} … … 107 110 .wwFormTable {width: 100%; } 108 111 #input-simplequery { width: 85%; margin: 12px 0px 6px 0px; font-size: 1.2em;} 109 #submit-query { }112 #submit-query { font-size: 1.2em; font-weight: bold;} 110 113 #searchclauselist {margin: 0px;} 111 114 .searchclause { } … … 140 143 h2 {font-size: 1.4em; margin: 1em 0 0.4em 0;} 141 144 h3 {font-size: 1.2em; margin: 0.8em 0 0.4em 0;} 142 .title {font-size: 1.2 em; font-weight: bold; margin: 1em 0 0 0.2em;}145 .title {font-size: 1.2 em; font-weight: bold; margin: 0.4em 0 0 0.2em;} 143 146 dt { padding: 1em 0 0.2em 1.5em; font-weight: bold;} 144 147 dd { padding-left: 2.5em; display:block; -moz-margin-start: 0px;} -
MDService2/trunk/MDService2/src/xsl/cmd_commons.xsl
r1076 r1226 234 234 </xsl:template> 235 235 236 <xsl:template name="getName" > 237 <xsl:value-of select="(.//*[name() = $name_element])[1]" /> 238 </xsl:template> 239 240 <xsl:template name="getContext" > 241 <!-- <div class="is-part-of collections" ><xsl:value-of select=".//IsPartOf" /> </div>--> 242 <xsl:apply-templates select=".//IsPartOfList" /> 243 </xsl:template> 244 245 246 <xsl:template match="IsPartOfList" > 247 <div class="ispartof-list"><span class="label">in: </span> 248 <xsl:apply-templates select=".//IsPartOf" /> 249 </div> 250 </xsl:template> 251 252 <xsl:template match="IsPartOf" > 253 <a class="internal" href="{concat($default_prefix, my:encodePID(.))}"><xsl:value-of select="." /></a> > 254 </xsl:template> 255 236 256 237 257 </xsl:stylesheet> -
MDService2/trunk/MDService2/src/xsl/mdinst2view.xsl
r1221 r1226 56 56 </xsl:when> 57 57 <xsl:otherwise> 58 <span class="inner_title"><xsl:attribute name="value"><xsl:value-of select="$inner_title"/></xsl:attribute> 59 </span> 58 59 <xsl:call-template name="getContext" /> 60 <!-- <div class="is-part-of collections" ><xsl:value-of select=".//IsPartOf[@level=1]" /> </div> --> 61 <div class="title" ><xsl:call-template name="getName" /></div> 62 <!-- 63 <span class="inner_title"><xsl:attribute name="value"><xsl:value-of select="$inner_title"/> 64 </xsl:attribute> 65 </span> 66 --> 60 67 </xsl:otherwise> 61 </xsl:choose> 68 </xsl:choose> 69 <!--<span class="label">MDRecord View: </span> 70 <div class="title" ><xsl:value-of select="$inner_title"/></div>--> 71 62 72 63 64 <!--<span class="label">MDRecord View: </span> -->65 <div class="title" ><xsl:value-of select="$inner_title"/></div>66 67 <xsl:apply-templates select=".//IsPartOfList" />68 73 <xsl:apply-templates select=".//ResourceProxyList" /> 69 74 <xsl:apply-templates select=".//Components/*" mode="format-xmlelem" /> 70 75 </div> 71 </xsl:template>72 73 <xsl:template match="IsPartOfList" >74 <div class="ispartof-list"><span class="label">IsPartOf:</span>75 <xsl:apply-templates select=".//IsPartOf" />76 </div>77 </xsl:template>78 79 <xsl:template match="IsPartOf" >80 <a class="internal" href="{concat($default_prefix, my:encodePID(.))}"><xsl:value-of select="." /></a>,81 76 </xsl:template> 82 77 -
MDService2/trunk/MDService2/src/xsl/mdset2view.xsl
r1219 r1226 104 104 <!-- <xsl:param name="lv" select="1" />--> 105 105 <!--<xsl:variable name="lv" select="count(ancestor::d)" /> --> 106 < xsl:if test="string-length(.//text()) > 1" >106 <!-- <xsl:if test="string-length(string-join(.//text(),'')) > 1" > --> 107 107 <xsl:variable name="has_text" > 108 108 <xsl:choose> 109 <xsl:when test="normalize-space(text())='Unspecified'">unspecified</xsl:when> 110 <xsl:when test="not(normalize-space(text())='')">text</xsl:when> 109 <!-- FIXME: text()[1] ? is that safe?--> 110 <xsl:when test="normalize-space(text()[1])='Unspecified'">unspecified</xsl:when> 111 <xsl:when test="not(normalize-space(text()[1])='')">text</xsl:when> 111 112 <xsl:otherwise>empty</xsl:otherwise> 112 113 </xsl:choose> … … 116 117 <span class="elem_value"><xsl:value-of select="text()" /></span> 117 118 <xsl:apply-templates select="*" /> 118 </div> 119 </xsl:if>119 </div> 120 120 121 </xsl:template> 121 122 … … 216 217 <xsl:variable name="terms" > 217 218 <Terms> 218 <!-- if already provided by mdrepo, use that, otherwise DIY -->219 <!-- TODO: if already provided by mdrepo, use that, otherwise DIY --> 219 220 <xsl:choose> 220 221 <xsl:when test="extraResponseData/resultSummary"><xsl:copy-of select="extraResponseData/resultSummary/Term" /></xsl:when> … … 254 255 </xsl:template> 255 256 257 <!-- this should be `record` to make it SRU-compatible --> 256 258 <xsl:template match="CMD" mode="table"> 257 259 <xsl:variable name="absolute_position" select="if (number($startItem)=number($startItem)) then number($startItem) + position() - 1 else position()" /> 260 <xsl:variable name="curr_record" select="." /> 258 261 <tr> 259 <td >262 <td rowspan="2"> 260 263 <xsl:choose> 261 264 <xsl:when test="exists(.//MdSelfLink)" > … … 268 271 <xsl:otherwise><xsl:value-of select="$absolute_position" /></xsl:otherwise> 269 272 </xsl:choose> 273 </td> 274 <td colspan="{count($columns/*)}" > 275 <xsl:call-template name="getContext" /> 276 <div class="title" ><xsl:call-template name="getName" /></div> 270 277 </td> 271 <xsl:variable name="curr_cmd" select="." /> 278 </tr> 279 <tr> 272 280 <!-- <xsl:for-each select="$cols/col" > 273 281 <td ><xsl:value-of select="$curr_cmd//*[name()=current()]" /></td> … … 293 301 <xsl:variable name="curr_col_xpath" select="@xpath" /> 294 302 <td> 295 <xsl:for-each select="$curr_ cmd">303 <xsl:for-each select="$curr_record"> 296 304 <xsl:call-template name="format-field" > 297 305 <xsl:with-param name="elems" select="saxon:evaluate(concat('.//', $curr_col_xpath))" /> … … 333 341 </td> 334 342 335 <xsl:variable name="curr_ cmd" select="." />343 <xsl:variable name="curr_record" select="." /> 336 344 337 345 <xsl:variable name="cmd_sel_fields" > 338 346 <xsl:for-each select="$columns/*"> 339 347 <xsl:variable name="curr_col_xpath" select="@xpath" /> 340 <xsl:for-each select="$curr_ cmd">348 <xsl:for-each select="$curr_record"> 341 349 <xsl:copy-of select="saxon:evaluate(concat('.//', $curr_col_xpath))" /> 342 350 </xsl:for-each> … … 352 360 353 361 354 355 362 </xsl:stylesheet> -
MDService2/trunk/MDService2/src/xsl/params.xsl
r1187 r1226 57 57 <xsl:param name="cache_cols_" >id date duration repository collection lang query squery startItem maximumItems maxDepth</xsl:param> 58 58 <xsl:param name="cache_cols" select="tokenize($cache_cols_,'\s+')" /> 59 60 <xsl:param name="name_element" select="('title', 'Title', 'Name', 'name', 'ResourceName')" /> 59 61 60 62
Note: See TracChangeset
for help on using the changeset viewer.