- Timestamp:
- 2006-12-14T15:39:54+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/web/interfaces/default/transform/document.xsl
r13267 r13505 59 59 60 60 <!-- display the document --> 61 <div class="document">61 <div id="content"> 62 62 <xsl:apply-templates select="document"> 63 63 <xsl:with-param name="collName" select="$collName"/> … … 92 92 <xsl:variable name="p.s" select="/page/pageRequest/paramList/param[@name='p.s']/@value"/> 93 93 <xsl:variable name="p.c"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='p.c']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='p.c']/@value"/></xsl:when><xsl:otherwise><xsl:value-of select="$collName"/></xsl:otherwise></xsl:choose></xsl:variable> 94 <div class="documentheading">94 <div id="documentheading"> 95 95 <a href="{$library_name}?a={$p.a}&sa={$p.sa}&s={$p.s}&c={$p.c}&rt=rd"><xsl:call-template name="openbookimg"><xsl:with-param name="title">Close this book and return to search/browse</xsl:with-param> 96 96 </xsl:call-template></a> … … 98 98 </div> 99 99 100 <div class="documentinfo">101 <div class="headingimage">100 <div id="documentinfo"> 101 <div id="headingimage"> 102 102 <xsl:if test="string($doCoverImage) != 'false' and (@docType='paged' or @docType='hierarchy')"> 103 103 <xsl:call-template name="coverImage"/> … … 105 105 </div> 106 106 107 < div class="docbuttons" >107 <ul id="docbuttons" > 108 108 <xsl:call-template name="documentButtons"> 109 109 <xsl:with-param name="collName" select="$collName"/> 110 110 </xsl:call-template> 111 </ div>112 111 </ul> 112 </div> 113 113 <!--<div><xsl:call-template name="enrichServices"> 114 114 <xsl:with-param name="collName" select="$collName"/> 115 115 </xsl:call-template></div>--> 116 116 <xsl:if test="string($doTOC) != 'false'"> 117 <div class="toc">117 <div id="toc"> 118 118 <xsl:call-template name="TOC"> 119 119 <xsl:with-param name="collName" select="$collName"/> … … 140 140 141 141 <xsl:if test="@docType = 'hierarchy' or @docType = 'paged'"> 142 <div class="docbutton"> 143 <span class="docbutton"> 144 <xsl:choose><xsl:when test="string($ed)='1'"> 142 <li> 143 <xsl:choose><xsl:when test="string($ed)='1'"> 145 144 <a href="{$library_name}?a=d&d={$docID}&c={$collName}&sib={$sib}&ed=0"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_doc_tip')"/></xsl:attribute> 146 145 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_doc_b')"/> … … 153 152 </xsl:otherwise> 154 153 </xsl:choose> 155 </span> 156 </div> 154 </li> 157 155 </xsl:if> 158 156 159 157 <!-- expand contents --> 160 158 <xsl:if test="@docType = 'hierarchy' and string(/page/pageResponse/format/gsf:option[@name='documentTOC']/@value) != 'false'"> 161 <div class="docbutton"> 162 <span class="docbutton"> 163 <xsl:choose><xsl:when test="string($ec)='1'"> 159 <li> 160 <xsl:choose><xsl:when test="string($ec)='1'"> 164 161 <a href="{$library_name}?a=d&d={$docID}&c={$collName}&sib={$sib}&ec=0"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_tip')"/></xsl:attribute> 165 162 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_b')"/> </a> … … 171 168 </xsl:otherwise> 172 169 </xsl:choose> 173 </span> 174 </div> 170 </li> 175 171 </xsl:if> 176 172 177 173 <!-- detach page --> 178 174 <xsl:variable name="paramList" select="/page/pageRequest/paramList"/> 179 <div class="docbutton"> 180 <span class="docbutton"> 175 <li> 181 176 <a target="_blank"><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&d=<xsl:value-of select="$docID"/>&c=<xsl:value-of select="$collName"/>&sib=<xsl:value-of select="$sib"/>&dt=<xsl:value-of select="$paramList/param[@name='dt']/@value"/>&ec=<xsl:value-of select="$paramList/param[@name='ec']/@value"/>&et=<xsl:value-of select="$paramList/param[@name='et']/@value"/>&p.a=<xsl:value-of select="$paramList/param[@name='p.a']/@value"/>&p.s=<xsl:value-of select="$paramList/param[@name='p.s']/@value"/>&p.sa=<xsl:value-of select="$paramList/param[@name='p.sa']/@value"/></xsl:attribute><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.detach_page_tip')"/></xsl:attribute> 182 177 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.detach_page_b')"/> 183 </a></ span></div>178 </a></li> 184 179 </xsl:template> 185 180 … … 211 206 <xsl:variable name="p.c"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='p.c']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='p.c']/@value"/></xsl:when><xsl:otherwise><xsl:value-of select="$collName"/></xsl:otherwise></xsl:choose></xsl:variable> 212 207 <xsl:if test="documentNode[@nodeID]"> 213 < div class="tocnodes">214 < div class="tocnode">208 <ul id="tocnodes"> 209 <li> 215 210 <xsl:choose><xsl:when test="string($oc)='0'"> 216 211 <a href="{$library_name}?a=d&c={$collName}&d={$d}&sib={$sib}&oc=1"><xsl:call-template name="closedfolderimg"><xsl:with-param name="title">open the table of contents</xsl:with-param></xsl:call-template></a> 217 212 </xsl:when> 218 <xsl:otherwise><a href="{$library_name}?a=d&c={$collName}&d={$d}&sib={$sib}&oc=0"><xsl:call-template name="openfolderimg"><xsl:with-param name="title">close the table of contents</xsl:with-param></xsl:call-template></a></xsl:otherwise></xsl:choose> 219 <span>Table of Contents</span> 213 <xsl:otherwise><a href="{$library_name}?a=d&c={$collName}&d={$d}&sib={$sib}&oc=0"><xsl:call-template name="openfolderimg"><xsl:with-param name="title">close the table of contents</xsl:with-param></xsl:call-template></a></xsl:otherwise></xsl:choose>Table of Contents 220 214 <xsl:if test="string($oc)!='0'"> 215 <ul class="tocnode"> 221 216 <xsl:for-each select="documentNode/documentNode[@nodeID]"> 222 217 <xsl:apply-templates select='.'><xsl:with-param name="collName" select="$collName"/><xsl:with-param name="ec" select="$ec"/><xsl:with-param name="p.a" select="$p.a"/><xsl:with-param name="p.s" select="$p.s"/><xsl:with-param name="p.sa" select="$p.sa"/><xsl:with-param name="p.c" select="$p.c"/></xsl:apply-templates> 223 218 </xsl:for-each> 219 </ul> 224 220 </xsl:if> 225 </ div>226 </ div>221 </li> 222 </ul> 227 223 </xsl:if> 228 224 </xsl:template> … … 237 233 <xsl:param name="p.c"/> 238 234 <!-- Display the appropriate image, depending on the node type --> 239 < div class="tocnode">235 <li> 240 236 <a><xsl:attribute name="href"><xsl:value-of select='$library_name'/>?a=d&c=<xsl:value-of select='$collName'/>&d=<xsl:value-of select='@nodeID'/><xsl:if test="documentNode">.pr</xsl:if>&sib=1<xsl:if test="string($ec) = '1'">&ec=1</xsl:if>&p.a=<xsl:value-of select="$p.a"/>&p.sa=<xsl:value-of select="$p.sa"/>&p.s=<xsl:value-of select="$p.s"/>&p.c=<xsl:value-of select="$p.c"/></xsl:attribute> 241 237 <xsl:apply-templates select="." mode="displayNodeIcon"/> … … 243 239 244 240 <!-- Display associated title, bolded if the node has content --> 245 <span>246 241 <xsl:choose> 247 242 <xsl:when test="nodeContent"> … … 252 247 </xsl:otherwise> 253 248 </xsl:choose> 254 </span>255 249 <!-- Apply recursively to the children of this node --> 256 250 <xsl:if test="documentNode[@nodeID]"> 257 < xsl:apply-templates select="documentNode[@nodeID]">251 <ul class="tocnode"> <xsl:apply-templates select="documentNode[@nodeID]"> 258 252 <xsl:with-param name="collName" select="$collName"/> 259 253 <xsl:with-param name="ec" select="$ec"/> … … 261 255 <!--<xsl:with-param name="depth" select="$depth + 1"/>--> 262 256 </xsl:apply-templates> 257 </ul> 263 258 </xsl:if> 264 </ div>259 </li> 265 260 </xsl:template> 266 261
Note:
See TracChangeset
for help on using the changeset viewer.