Changeset 25361
- Timestamp:
- 2012-04-12T14:54:08+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/oran/transform/config_format.xsl
r25279 r25361 73 73 <xslt:attribute name='href'> 74 74 <xslt:value-of select='$library_name'/> 75 76 <!-- 75 77 <xsl:text>?a=b&rt=r&s=</xsl:text> 76 78 <xslt:value-of select='/page/pageResponse/service/@name'/> … … 85 87 <xsl:text>&sib=1</xsl:text> 86 88 </xslt:if> 89 --> 87 90 </xslt:attribute> 88 91 <xsl:apply-templates/> … … 102 105 <xslt:value-of select="/page/pageRequest/paramList/param[@name='book']/@value"/> 103 106 </xslt:variable> 104 <xslt:choose> 105 <xslt:when test="$bookswitch = 'on' or $bookswitch = 'flashxml'"> 106 <a> 107 <xslt:attribute name="href"> 108 <xslt:value-of select='$library_name'/> 109 <xsl:text>?a=d&ed=1&book=on&c=</xsl:text> 110 <xslt:value-of select='/page/pageResponse/collection/@name'/> 111 <xsl:text>&d=</xsl:text> 112 <xslt:value-of select='@nodeID'/> 113 <xsl:text>&dt=</xsl:text> 114 <xslt:value-of select='@docType'/> 115 <xslt:if test="@nodeType='leaf'"> 116 <xsl:text>&sib=1</xsl:text> 117 </xslt:if> 118 <xsl:text>&p.a=</xsl:text> 119 <xslt:value-of select="/page/pageRequest/@action"/> 120 <xsl:text>&p.sa=</xsl:text> 121 <xsl:value-of select="/page/pageRequest/@subaction"/> 122 <xsl:text>&p.s=</xsl:text> 123 <xslt:value-of select="/page/pageResponse/service/@name"/> 124 <xsl:text>#</xsl:text> 125 <xslt:value-of select="@nodeID"/> 126 </xslt:attribute> 127 <xsl:apply-templates/> 128 </a> 129 </xslt:when> 130 <xslt:otherwise> 131 <a> 132 <xslt:attribute name="href"> 133 <xslt:value-of select='$library_name'/> 134 <xsl:text>?a=d&book=off</xsl:text> 135 <xslt:if test="not(@docType = 'paged')"> 136 <xsl:text>&ed=1</xsl:text> 137 </xslt:if> 138 <xsl:text>&c=</xsl:text> 139 <xslt:value-of select='/page/pageResponse/collection/@name'/> 140 <xsl:text>&d=</xsl:text> 141 <xslt:value-of select='@nodeID'/> 142 <xsl:text>&dt=</xsl:text> 143 <xslt:value-of select='@docType'/> 144 <xslt:if test="@nodeType='leaf'"> 145 <xsl:text>&sib=1</xsl:text> 146 </xslt:if> 147 <xsl:text>&p.a=</xsl:text> 148 <xslt:value-of select="/page/pageRequest/@action"/> 149 <xsl:text>&p.sa=</xsl:text> 150 <xsl:value-of select="/page/pageRequest/@subaction"/> 151 <xsl:text>&p.s=</xsl:text> 152 <xslt:value-of select="/page/pageResponse/service/@name"/> 153 <xsl:text>#</xsl:text> 154 <xslt:value-of select="@nodeID"/> 155 </xslt:attribute> 156 <xsl:apply-templates/> 157 </a> 158 </xslt:otherwise> 159 </xslt:choose> 107 <a> 108 <xslt:attribute name="href"> 109 <xslt:value-of select='$library_name'/> 110 <xsl:text>/collection/</xsl:text> 111 <xslt:value-of select='/page/pageResponse/collection/@name'/> 112 <xsl:text>/document/</xsl:text> 113 <xslt:value-of select='@nodeID'/> 114 <xslt:if test="$bookswitch = 'on' or $bookswitch = 'flashxml'"> 115 <xsl:text>?book=on</xsl:text> 116 </xslt:if> 117 </xslt:attribute> 118 <xsl:apply-templates/> 119 </a> 160 120 </xsl:otherwise> 161 121 </xsl:choose> … … 167 127 <img style="border:0px"><xsl:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'bookshelf_image')"/></xsl:attribute></img> 168 128 </xsl:when> 169 <xsl:when test=" @type='document'">129 <xsl:when test="not(@type) or @type='document'"> 170 130 <img style="border:0px"><xslt:attribute name="id">documentBasketBook<xslt:value-of select="/page/pageResponse/collection/@name"/>:<xslt:value-of select="@nodeID"/></xslt:attribute><xslt:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'page_icon_image')"/></xslt:attribute></img> 171 131 </xsl:when>
Note:
See TracChangeset
for help on using the changeset viewer.