- Timestamp:
- 2011-05-09T14:37:04+12:00 (13 years ago)
- Location:
- main/branches/64_bit_Greenstone/greenstone3
- Files:
-
- 24 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
main/branches/64_bit_Greenstone/greenstone3
- Property svn:mergeinfo changed
-
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/about.xsl
r20021 r24007 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 2 <xsl:stylesheet version="1.0" 3 xmlns="http://www.w3.org/1999/xhtml" 3 4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 5 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"6 6 xmlns:gslib="http://www.greenstone.org/skinning" 7 extension-element-prefixes="java util"8 exclude-result-prefixes="java util">7 extension-element-prefixes="java" 8 exclude-result-prefixes="java"> 9 9 10 10 … … 51 51 </xsl:choose> 52 52 53 <div id="content" >53 <div id="content" class="moz-output-escape"> 54 54 <!--Display the description text of the current collection, 55 55 and if some services are available then create a list … … 62 62 </div> 63 63 </div> 64 <span id="language" style="display: none;"><xsl:value-of select="/page/@lang" /></span> 65 <span id="interface" style="display: none;"><xsl:value-of select="$interface_name" /></span> 66 67 <script type="text/javascript"><xsl:text>var placeholder = false;</xsl:text></script> 68 <script type="text/javascript" src="jquery.js"><xsl:comment>jQuery</xsl:comment></script> 69 <script type="text/javascript" src="test.js"><xsl:comment>Client side transforms</xsl:comment></script> 70 64 71 </body> 65 72 </html> -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/applet.xsl
r18388 r24007 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 5 extension-element-prefixes="java" 6 exclude-result-prefixes="java"> 8 7 9 8 <!-- style includes global params interface_name, library_name --> 10 9 <xsl:include href="style.xsl"/> 11 10 12 <xsl:output method="html"/> 11 <xsl:output method="html"/> 13 12 14 13 <!-- the main page layout template is here --> -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/authen.xsl
r18386 r24007 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 5 extension-element-prefixes="java" 6 exclude-result-prefixes="java"> 8 7 9 8 <!-- style includes global params interface_name, library_name --> … … 14 13 15 14 <xsl:template name="pageTitle"> 16 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.authentication')"/>15 <!-- differred for page title --> <span class="getTextFor null document.title.authen.authentication"></span> 17 16 </xsl:template> 18 17 … … 21 20 <head> 22 21 <title> 23 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>22 <xsl:text> </xsl:text> 24 23 </title> 25 24 <xsl:call-template name="globalStyle"/> … … 35 34 <xsl:call-template name="addGroup" /> 36 35 <body> 36 37 <xsl:call-template name="pageTitle"/> 37 38 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute> 38 39 <div id="page-wrapper"> … … 53 54 <table align="left" border="0" width="100%"> 54 55 <tr align="left"> 55 <td><h2 ><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.authentication')"/></h2></td>56 <td><h2 class="getTextFor authen.authentication"></h2></td> 56 57 <td><xsl:if test="$un_s!=''"> 57 58 <xsl:if test="$asn!='' and $asn!='0'"> 58 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username')"/> : <xsl:value-of select="$un_s"/>59 <span class="getTextFor authen.username"></span> : <xsl:value-of select="$un_s"/> 59 60 </xsl:if> 60 61 </xsl:if></td> … … 66 67 <ul id="navbarlist"> 67 68 <!--greenstone home--> 68 <li><a href="{$library_name}">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.greenstone_home')"/></a></li>69 <li><a href="{$library_name}"><span class="getTextFor authen.greenstone_home"></span></a></li> 69 70 70 71 <!--list users--> … … 72 73 <xsl:choose> 73 74 <xsl:when test="$asn!='' and $asn!='0' and $un_s!=''"> 74 <a href="{$library_name}?a=g& rt=r&sa=authen&s=Authentication&s1.aup=ListUsers&s1.asn={$asn}&s1.uan=1&s1.un={$un_s}&s1.pw="><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.list_users')"/></a>75 <a href="{$library_name}?a=g&amp;rt=r&amp;sa=authen&amp;s=Authentication&amp;s1.aup=ListUsers&amp;s1.asn={$asn}&amp;s1.uan=1&amp;s1.un={$un_s}&amp;s1.pw="><span class="getTextFor authen.list_users"></span></a> 75 76 </xsl:when> 76 77 <xsl:otherwise> 77 <a href="{$library_name}?a=g& rt=r&sa=authen&s=Authentication&s1.asn=&s1.aup=Login"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.list_users')"/></a>78 <a href="{$library_name}?a=g&amp;rt=r&amp;sa=authen&amp;s=Authentication&amp;s1.asn=&amp;s1.aup=Login"><span class="getTextFor authen.list_users"></span></a> 78 79 </xsl:otherwise> 79 80 </xsl:choose></li> … … 83 84 <xsl:choose> 84 85 <xsl:when test="$asn!='' and $asn!='0' and $un_s!=''"> 85 <a href="{$library_name}?a=g& rt=r&sa=authen&s=Authentication&s1.aup=AddUser&s1.asn={$asn}&s1.uan=1&s1.un={$un_s}&s1.pw=&s1.umun=&s1.umpw=&s1.umgp=&s1.umas=&s1.umc="><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.add_a_new_user')"/></a>86 <a href="{$library_name}?a=g&amp;rt=r&amp;sa=authen&amp;s=Authentication&amp;s1.aup=AddUser&amp;s1.asn={$asn}&amp;s1.uan=1&amp;s1.un={$un_s}&amp;s1.pw=&amp;s1.umun=&amp;s1.umpw=&amp;s1.umgp=&amp;s1.umas=&amp;s1.umc="><span class="getTextFor authen.add_a_new_user"></span></a> 86 87 </xsl:when> 87 88 <xsl:otherwise> 88 <a href="{$library_name}?a=g& rt=r&sa=authen&s=Authentication&s1.asn=&s1.aup=Login"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.add_a_new_user')"/></a>89 <a href="{$library_name}?a=g&amp;rt=r&amp;sa=authen&amp;s=Authentication&amp;s1.asn=&amp;s1.aup=Login"><span class="getTextFor authen.add_a_new_user"></span></a> 89 90 </xsl:otherwise> 90 91 </xsl:choose> … … 95 96 <xsl:choose> 96 97 <xsl:when test="$asn!='' and $asn!='0' and $un_s!=''"> 97 <a href="{$library_name}?a=g& rt=r&sa=authen&s=Authentication&s1.aup=ModifyPassword&s1.asn={$asn}&s1.uan=1&s1.un={$un_s}&s1.pw=&s1.umpw1=&s1.umpw2=&s1.umpw="><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.change_password')"/></a>98 <a href="{$library_name}?a=g&amp;rt=r&amp;sa=authen&amp;s=Authentication&amp;s1.aup=ModifyPassword&amp;s1.asn={$asn}&amp;s1.uan=1&amp;s1.un={$un_s}&amp;s1.pw=&amp;s1.umpw1=&amp;s1.umpw2=&amp;s1.umpw="><span class="getTextFor authen.change_password"></span></a> 98 99 </xsl:when> 99 100 <xsl:otherwise> 100 <a href="{$library_name}?a=g& rt=r&sa=authen&s=Authentication&s1.asn=&s1.aup=Login"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.change_password')"/></a>101 <a href="{$library_name}?a=g&amp;rt=r&amp;sa=authen&amp;s=Authentication&amp;s1.asn=&amp;s1.aup=Login"><span class="getTextFor authen.change_password"></span></a> 101 102 </xsl:otherwise> 102 103 </xsl:choose> … … 106 107 <xsl:choose> 107 108 <xsl:when test="$un_s!='' and $asn!='' and $asn!='0'"> 108 <a href="{$library_name}?a=g& rt=r&sa=authen&s=Authentication&s1.asn=&s1.aup=Login&s1.un=&s1.pw="><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.logout')"/></a>109 <a href="{$library_name}?a=g&amp;rt=r&amp;sa=authen&amp;s=Authentication&amp;s1.asn=&amp;s1.aup=Login&amp;s1.un=&amp;s1.pw="><span class="getTextFor authen.logout"></span></a> 109 110 </xsl:when> 110 111 <xsl:otherwise> 111 <a href="{$library_name}?a=g& rt=r&sa=authen&s=Authentication&s1.asn=&s1.aup=Login"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.login')"/></a>112 <a href="{$library_name}?a=g&amp;rt=r&amp;sa=authen&amp;s=Authentication&amp;s1.asn=&amp;s1.aup=Login"><span class="getTextFor authen.login"></span></a> 112 113 </xsl:otherwise> 113 114 </xsl:choose> … … 124 125 <xsl:choose> 125 126 <xsl:when test="$asn!='' and $asn!='0'"> 126 <p align="left"> < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.login_successfully')"/></p>127 <p align="left"> <span class="getTextFor authen.login_successfully"></span></p> 127 128 </xsl:when> 128 129 <xsl:otherwise> 129 130 130 131 <p align="left"> 131 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.login_descibe_line_3')"/><br/></p>132 <span class="getTextFor authen.login_describe_line_3"></span><br/></p> 132 133 <xsl:if test="$err='un-pw-err'"> 133 <p align="left"><font color='red'>< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.wrong_password_warning')"/></font></p>134 <p align="left"><font color='red'><span class="getTextFor authen.wrong_password_warning"></span></font></p> 134 135 </xsl:if> 135 136 <xsl:if test="$err='no-permission' and $info='Login'"> 136 <p align="left"><font color='red'>< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.no_permission')"/></font></p>137 <p align="left"><font color='red'><span class="getTextFor authen.no_permission"></span></font></p> 137 138 </xsl:if> 138 139 <xsl:if test="$err='as-false'"> 139 <p align="left"><font color='red'>< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.account_status_false')"/></font></p>140 <p align="left"><font color='red'><span class="getTextFor authen.account_status_false"></span></font></p> 140 141 </xsl:if> 141 142 <xsl:call-template name="login"> … … 159 160 <xsl:if test="$info='Login'"> 160 161 <p align="left"> 161 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.login_descibe_line_2')"/><br/></p>162 <span class="getTextFor authen.login_describe_line_2"></span><br/></p> 162 163 <xsl:if test="$err='no-permission' and $info='Login'"> 163 <p align="left"><font color='red'>< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.no_permission')"/></font></p>164 <p align="left"><font color='red'><span class="getTextFor authen.no_permission"></span></font></p> 164 165 </xsl:if> 165 166 </xsl:if> … … 174 175 <xsl:if test="$asn!='1'"> 175 176 <p align="left"> 176 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.login_descibe_line_2')"/><br/>177 <span class="getTextFor authen.login_describe_line_2"></span><br/> 177 178 </p> 178 179 <xsl:if test="$err='no-permission'"> 179 <p align="left"><font color='red'>< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.no_permission')"/></font></p>180 <p align="left"><font color='red'><span class="getTextFor authen.no_permission"></span></font></p> 180 181 </xsl:if> 181 182 </xsl:if> … … 187 188 188 189 <xsl:if test="$info='adduser_interface'"> 189 <h2 align="left">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.add_a_new_user_title')"/></h2>190 <h2 align="left"><span class="getTextFor authen.add_a_new_user_title"></span></h2> 190 191 <xsl:if test="$err='pw-err'"> 191 <p align="left"><font color="red">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password_err')"/></font></p>192 <p align="left"><font color="red"><span class="getTextFor authen.password_err"></span></font></p> 192 193 </xsl:if> 193 194 <xsl:if test="$err='un-err'"> 194 <p align="left"><font color="red"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.unsername_err')"/></font></p> 195 <!-- not sure if this is meant to be unsername_err; if it is, disregard --> 196 <p align="left"><font color="red"><span class="getTextFor authen.unsername_err"></span></font></p> 195 197 </xsl:if> 196 198 <xsl:if test="$err='un-exist'"> 197 <p align="left"><font color='red'>< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.user_has_existed')"/></font></p>199 <p align="left"><font color='red'><span class="getTextFor authen.user_has_existed"></span></font></p> 198 200 </xsl:if> 199 201 <xsl:call-template name="edituser" > … … 222 224 223 225 <xsl:if test="$err=''"> 224 <h2 align="left">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.change_password_title')"/></h2>225 <p align="left">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.change_password_successed_content')"/></p>226 <h2 align="left"><span class="getTextFor authen.change_password_title"></span></h2> 227 <p align="left"><span class="getTextFor authen.change_password_successed_content"></span></p> 226 228 </xsl:if> 227 229 228 230 <xsl:if test="$asn!='0' and $info='modify_interface'"> 229 <h2 align="left">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.change_password_title')"/></h2>230 <p align="left"><font color="grey">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.change_password_describe_line_1')"/></font></p>231 <h2 align="left"><span class="getTextFor authen.change_password_title"></span></h2> 232 <p align="left"><font color="grey"><span class="getTextFor authen.change_password_describe_line_1"></span></font></p> 231 233 232 234 <xsl:if test="$err='umpw1-err'"> 233 <p align="left"><font color="red">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.new_password_invalid')"/></font></p>235 <p align="left"><font color="red"><span class="getTextFor authen.new_password_invalid"></span></font></p> 234 236 </xsl:if> 235 237 <xsl:if test="$err='umpw2-err'"> 236 <p align="left"><font color="red">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.retyped_password_invalid')"/></font></p>238 <p align="left"><font color="red"><span class="getTextFor authen.retyped_password_invalid"></span>></font></p> 237 239 </xsl:if> 238 240 <xsl:if test="$err='pw-umpw-nm-err' or $err='umpw-null-err'"> 239 <p align="left"><font color="red">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.old_password_warning')"/></font></p>241 <p align="left"><font color="red"><span class="getTextFor authen.old_password_warning"></span></font></p> 240 242 </xsl:if> 241 243 <xsl:if test="$err='umpw1-umpw2-nm-err'"> 242 <p align="left"><font color="red">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.two_password_not_match')"/></font></p>244 <p align="left"><font color="red"><span class="getTextFor authen.two_password_not_match"></span></font></p> 243 245 </xsl:if> 244 246 <xsl:if test="$err='umpw1-umpw2-null-err'"> 245 <p align="left"><font color="red">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password_empty_warning')"/></font></p>247 <p align="left"><font color="red"><span class="getTextFor authen.password_empty_warning"></span></font></p> 246 248 </xsl:if> 247 249 … … 286 288 287 289 <xsl:if test="$info='edituser-interface'"> 288 <h2 align="left">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.edit_user_information')"/></h2>290 <h2 align="left"><span class="getTextFor authen.edit_user_information"></span></h2> 289 291 <xsl:if test="$err='umpw-err'"> 290 <p align="left"><font color="red">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password_err')"/></font></p>292 <p align="left"><font color="red"><span class="getTextFor authen.password_err"></span></font></p> 291 293 </xsl:if> 292 294 <xsl:if test="$err='umun-err'"> 293 <p align="left"><font color="red">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.unsername_err')"/></font></p>295 <p align="left"><font color="red"><span class="getTextFor authen.username_err"></span></font></p> 294 296 </xsl:if> 295 297 <xsl:if test="$err='ini-umpw-err'"> 296 <p align="left"><font color="red">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password_initial')"/></font></p>298 <p align="left"><font color="red"><span class="getTextFor authen.password_initial"></span></font></p> 297 299 </xsl:if> 298 300 <xsl:if test="$err='un-exist'"> 299 <p align="left"><font color='red'>< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.user_has_existed')"/></font></p>301 <p align="left"><font color='red'><span class="getTextFor authen.user_has_existed"></span></font></p> 300 302 </xsl:if> 301 303 <xsl:call-template name="edituser" > … … 358 360 <table align="center"> 359 361 <tr> 360 <td>< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username')"/></td><td><input type="string" name="s1.un" size="10" value=""/></td><td></td>362 <td><span class="getTextFor authen.username"></span></td><td><input type="string" name="s1.un" size="10" value=""/></td><td></td> 361 363 </tr> 362 364 <tr> 363 <td>< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password')"/></td><td><input type="password" name="s1.pw" size="10" value=""/></td><td>365 <td><span class="getTextFor authen.password"></span></td><td><input type="password" name="s1.pw" size="10" value=""/></td><td> 364 366 <input type="submit" value="submit"></input></td> 365 367 </tr> … … 371 373 <!--template name="listusers"--> 372 374 <xsl:template name="listusers" > 373 <h2 align="left">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.list_of_current_users_title')"/></h2>375 <h2 align="left"><span class="getTextFor authen.list_of_current_users_title"></span></h2> 374 376 375 377 <table id='mainTable' align="left" border="0" cellspacing="1" cellpadding="3" width="100%" > 376 378 <tr> 377 <th bgcolor="#d0d0d0" ><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username')"/></th>378 <th bgcolor="#d0d0d0" ><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.account_status')"/></th>379 <th bgcolor="#d0d0d0" ><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.groups')"/></th>380 <th bgcolor="#d0d0d0" ><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.comment')"/></th>379 <th bgcolor="#d0d0d0" class="getTextFor authen.username"></th> 380 <th bgcolor="#d0d0d0" class="getTextFor authen.account_status"></th> 381 <th bgcolor="#d0d0d0" class="getTextFor authen.groups"></th> 382 <th bgcolor="#d0d0d0" class="getTextFor authen.comment"></th> 381 383 <th bgcolor="#d0d0d0"></th> 382 384 </tr> … … 453 455 <input type='hidden' name='s1.aup' value='{$pro_action}'/> 454 456 455 <table align="center"><tr><td align="right" >456 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.old_password')"/></td><td><input type="password" name="s1.umpw" size="10" value=""/></td></tr>457 <tr><td align="right" >458 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.new_password')"/></td><td><input type="password" name="s1.umpw1" size="10" value=""/></td></tr>459 <tr><td align="right" >460 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.retype_new_password')"/></td><td><input type="password" name="s1.umpw2" size="10" value=""/></td></tr>457 <table align="center"><tr><td align="right" class="getTextFor authen.old_password"> 458 </td><td><input type="password" name="s1.umpw" size="10" value=""/></td></tr> 459 <tr><td align="right" class="getTextFor authen.new_password"> 460 </td><td><input type="password" name="s1.umpw1" size="10" value=""/></td></tr> 461 <tr><td align="right" class="getTextFor authen.retype_new_password"> 462 </td><td><input type="password" name="s1.umpw2" size="10" value=""/></td></tr> 461 463 <tr><td></td><td> 462 464 <input type="submit" value="submit"></input></td> … … 485 487 <input type='hidden' name='s1.uan' value='1'/> 486 488 <input type='hidden' name='s1.umun' value='{$umun_s}'/> 487 <p><font color='red' ><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.do_you_really_want_to_permanently_remove_user')"/> <xsl:value-of select="$umun_s"/>" ?</font></p>489 <p><font color='red' class="getTextFor authen.do_you_really_want_to_permanently_remove_user"> <xsl:value-of select="$umun_s"/>" ?</font></p> 488 490 <input type="submit" value="yes"><xsl:attribute name="name">s1.cm</xsl:attribute></input> 489 491 <input type="submit" value="no"><xsl:attribute name="name">s1.cm</xsl:attribute></input> … … 518 520 <input type='hidden' name='s1.pw' value='{$pw_s}'/> 519 521 520 <table align="left" ><tr><td >521 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username')"/></td><td><input type="text" name="s1.umun" size="15" value="{$umun_s}"/></td><td><font color="gray"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username_describe')"/></font></td></tr>522 <tr><td >523 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password')"/></td><td><input type="password" name="s1.umpw" size="15" value="{$umpw_s}"/></td><td><font color="gray"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password_describe')"/></font></td></tr>524 <tr><td >525 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.account_status')"/></td><td>522 <table align="left" ><tr><td class="getTextFor authen.username"> 523 </td><td><input type="text" name="s1.umun" size="15" value="{$umun_s}"/></td><td><font color="gray" class="getTextFor authen.username_describe"></font></td></tr> 524 <tr><td class="getTextFor authen.password"> 525 </td><td><input type="password" name="s1.umpw" size="15" value="{$umpw_s}"/></td><td><font color="gray" class="getTextFor authen.password_describe"></font></td></tr> 526 <tr><td class="getTextFor authen.account_status"> 527 </td><td> 526 528 <select name="s1.umas"> 527 529 <xsl:if test="$umas_s=''"> 528 <option value="true" selected="selected" ><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.enabled')"/></option>529 <option value="false" ><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.disabled')"/></option>530 <option value="true" selected="selected" class="getTextFor authen.enabled"></option> 531 <option value="false" class="getTextFor authen.disabled"></option> 530 532 </xsl:if> 531 533 <xsl:if test="$umas_s='true'"> 532 <option value="true" selected="selected" ><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.enabled')"/></option>533 <option value="false" ><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.disabled')"/></option>534 <option value="true" selected="selected" class="getTextFor authen.enabled"></option> 535 <option value="false" class="getTextFor authen.disabled"></option> 534 536 </xsl:if> 535 537 <xsl:if test="$umas_s='false'"> 536 <option value="true" ><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.enabled')"/></option>537 <option value="false" selected="selected" ><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.disabled')"/></option>538 <option value="true" class="getTextFor authen.enabled"></option> 539 <option value="false" selected="selected" class="getTextFor authen.disabled"></option> 538 540 </xsl:if> 539 541 </select></td><td></td></tr> 540 <tr><td >541 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.groups')"/></td><td><input type="text" id="group" name="s1.umgp" size="70" value="{$umgp_s}"/></td><td><font color="gray"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.groups_describe')"/></font></td></tr>542 <tr><td class="getTextFor authen.groups"> 543 </td><td><input type="text" id="group" name="s1.umgp" size="70" value="{$umgp_s}"/></td><td><font color="gray" class="getTextFor authen.groups_describe"></font></td></tr> 542 544 <tr> 543 545 <td></td> … … 597 599 <td><input type="button" name="addGroupButton" value="add" onClick="addGroup('collects')"/></td> 598 600 </tr> 599 <tr><td >600 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.comment')"/></td><td colspan="2"><div><textarea cols="40" rows="5" name="s1.umc"><xsl:value-of select="$umc_s"/>601 <tr><td class="getTextFor authen.comment"> 602 </td><td colspan="2"><div><textarea cols="40" rows="5" name="s1.umc"><xsl:value-of select="$umc_s"/> 601 603 602 604 </textarea></div></td></tr> -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/berry.xsl
r18388 r24007 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 5 extension-element-prefixes="java" 6 exclude-result-prefixes="java"> 8 7 9 8 <!--<xsl:include href="style.xsl"/>--> … … 115 114 116 115 117 if (target.id.toLowerCase() == 'urlcheck' & & urlonly){116 if (target.id.toLowerCase() == 'urlcheck' &amp;&amp; urlonly){ 118 117 var urlcheck = YAHOO.util.Dom.get('urlcheck'); 119 118 urlcheck.src = 'interfaces/default/images/check3.gif'; … … 125 124 } 126 125 127 if (target.id.toLowerCase() == 'urlcheck' & & !urlonly ){126 if (target.id.toLowerCase() == 'urlcheck' &amp;&amp; !urlonly ){ 128 127 var urlcheck = YAHOO.util.Dom.get('urlcheck'); 129 128 urlcheck.src = 'interfaces/default/images/check4.gif'; … … 211 210 var a = document.createElement('a'); 212 211 var text =""; 213 a.href ="?a=d& c="+doc['collection']+"&d="+doc['name'];212 a.href ="?a=d&amp;c="+doc['collection']+"&amp;d="+doc['name']; 214 213 a.appendChild(document.createTextNode(doc['title'])); 215 214 if (doc['root_title'] != ""){ … … 218 217 li.appendChild(a); 219 218 var metadata = ""; 220 for (var metaItem in doc & & metaItem != 'title'){219 for (var metaItem in doc &amp;&amp; metaItem != 'title'){ 221 220 metadata = "\n"+metaItem+": "+ doc[metaItem]+"\n"; 222 221 } … … 249 248 var textview = YAHOO.util.Dom.get('textview'); 250 249 251 if (previousView != null & & textview !=null){250 if (previousView != null &amp;&amp; textview !=null){ 252 251 previousView.style.backgroundImage = 'url("interfaces/default/images/bg_on.png")'; 253 252 } … … 326 325 var email = YAHOO.util.Dom.get('email'); 327 326 328 if (previousView != null & & email !=null ){327 if (previousView != null &amp;&amp; email !=null ){ 329 328 previousView.style.backgroundImage = 'url("interfaces/default/images/bg_on.png")'; 330 329 } … … 437 436 for (var i in docList){ 438 437 var doc = docList[i]; 439 urls +=root_url+"?a=d& c="+doc["collection"]+"&d="+doc["name"]+"\n\n";438 urls +=root_url+"?a=d&amp;c="+doc["collection"]+"&amp;d="+doc["name"]+"\n\n"; 440 439 441 440 } … … 453 452 for (var i in docList){ 454 453 var doc = docList[i]; 455 var url =root_url+"?a=d& c="+doc['collection']+"&d="+doc['name']+"\n";454 var url =root_url+"?a=d&amp;c="+doc['collection']+"&amp;d="+doc['name']+"\n"; 456 455 for (var metaItem in doc){ 457 456 var metadata = metaItem+": "+ doc[metaItem]+"\n"; … … 466 465 467 466 function sendMail(){ 468 var url = "?a=pr& rt=r&ro=1&s=SendMail&c=";467 var url = "?a=pr&amp;rt=r&amp;ro=1&amp;s=SendMail&amp;c="; 469 468 var request_type = "POST"; 470 469 var postdata = ""; … … 476 475 var input = YAHOO.util.Dom.get(i); 477 476 var value = input.value; 478 postdata +="& s1."+i+"="+value;477 postdata +="&amp;s1."+i+"="+value; 479 478 } 480 479 … … 482 481 var content = YAHOO.util.Dom.get('pretextarea').value; 483 482 484 content = content.replace(/& /g,'-------');485 postdata +="& s1.content="+content;483 content = content.replace(/&amp;/g,'-------'); 484 postdata +="&amp;s1.content="+content; 486 485 487 486 … … 530 529 function mailBoxUpdate(e) { 531 530 var target = e.target; 532 if (target.id.toLowerCase() == 'sendasemail' & & !show){531 if (target.id.toLowerCase() == 'sendasemail' &amp;&amp; !show){ 533 532 showMailBox(); 534 533 show = true; 535 534 } 536 535 else{ 537 if (target.id.toLowerCase() == 'sendasemail' & & show){536 if (target.id.toLowerCase() == 'sendasemail' &amp;&amp; show){ 538 537 hideMailBox(); 539 538 show = false; … … 551 550 function showMailBox(){ 552 551 var mailbox = YAHOO.util.Dom.get('mailbox'); 553 if (table != null & & !show){552 if (table != null &amp;&amp; !show){ 554 553 mailbox.appendChild(table); 555 554 return; … … 669 668 670 669 function sendMail(){ 671 var url = "?a=pr& rt=r&ro=1&s=SendMail&c=";670 var url = "?a=pr&amp;rt=r&amp;ro=1&amp;s=SendMail&amp;c="; 672 671 var request_type = "POST"; 673 672 var postdata = ""; … … 679 678 var input = YAHOO.util.Dom.get(i); 680 679 var value = input.value; 681 postdata +="& s1."+i+"="+value;680 postdata +="&amp;s1."+i+"="+value; 682 681 } 683 682 … … 686 685 var input = YAHOO.util.Dom.get(i); 687 686 var value = input.value; 688 postdata +="& s1."+i+"="+value;687 postdata +="&amp;s1."+i+"="+value; 689 688 } 690 689 691 690 var content = YAHOO.util.Dom.get('pretextarea').value; 692 691 693 content = content.replace(/& /g,'-------');694 postdata +="& s1.content="+content;692 content = content.replace(/&amp;/g,'-------'); 693 postdata +="&amp;s1.content="+content; 695 694 696 695 … … 721 720 <div class='pageinfo'> 722 721 <p class='bannerlinks'> 723 <a class='navlink' href='{$library_name}?a=p& sa=home' title='Library home page' >HOME</a>724 <a class='navlink' href='{$library_name}?a=p& sa=help&c=' title='Help pages' >HELP</a>725 <a class='navlink' href='{$library_name}?a=p& sa=pref&c=' title='Change your interface preferences'>PREFERENCES</a>722 <a class='navlink' href='{$library_name}?a=p&amp;sa=home' title='Library home page' >HOME</a> 723 <a class='navlink' href='{$library_name}?a=p&amp;sa=help&amp;c=' title='Help pages' >HELP</a> 724 <a class='navlink' href='{$library_name}?a=p&amp;sa=pref&amp;c=' title='Change your interface preferences'>PREFERENCES</a> 726 725 </p> 727 726 </div> -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/berrytools.xsl
r12031 r24007 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 5 extension-element-prefixes="java" 6 exclude-result-prefixes="java"> 8 7 9 8 <xsl:param name="berryBaskets"/> … … 79 78 var checkout = function(){ 80 79 var request_type = "GET"; 81 var url = "?a=pr& rt=r&ro=1&s=ItemNum&o=XML&c=";80 var url = "?a=pr&amp;rt=r&amp;ro=1&amp;s=ItemNum&amp;o=XML&amp;c="; 82 81 83 82 var responseSuccess = function(o){ … … 97 96 parent.removeChild(item); 98 97 99 if (parent !=null & & parent.id == "documentberries"){98 if (parent !=null &amp;&amp; parent.id == "documentberries"){ 100 99 var root = YAHOO.util.Dom.get(itemID+":root"); 101 100 var section = YAHOO.util.Dom.get(itemID+":section"); 102 if(root!=null & & root.id.indexOf(itemID) !=-1){101 if(root!=null &amp;&amp; root.id.indexOf(itemID) !=-1){ 103 102 parent.removeChild(root); 104 103 } 105 104 106 if(section!=null & & section.id.indexOf(itemID) !=-1){105 if(section!=null &amp;&amp; section.id.indexOf(itemID) !=-1){ 107 106 parent.removeChild(section); 108 107 } … … 130 129 131 130 132 if (parent !=null & & parent.id == "documentberries"){131 if (parent !=null &amp;&amp; parent.id == "documentberries"){ 133 132 var root = YAHOO.util.Dom.get(berry.id+":root"); 134 133 var section = YAHOO.util.Dom.get(berry.id+":section"); 135 if(root!=null & & root.id.indexOf(berry.id) !=-1){134 if(root!=null &amp;&amp; root.id.indexOf(berry.id) !=-1){ 136 135 root.style.visibility ="visible" ; 137 136 } 138 137 139 if(section!=null & & section.id.indexOf(berry.id) !=-1){138 if(section!=null &amp;&amp; section.id.indexOf(berry.id) !=-1){ 140 139 section.style.visibility ="visible" ; 141 140 } … … 144 143 } 145 144 146 if (berry.className & & berry.className == 'pick')145 if (berry.className &amp;&amp; berry.className == 'pick') 147 146 { 148 147 berry.style.visibility = "visible"; … … 168 167 function updateBerryImages(){ 169 168 170 for (var i =0;i < berryList.length & & i <12 ; i++ ){169 for (var i =0;i < berryList.length &amp;&amp; i <12 ; i++ ){ 171 170 var berries = YAHOO.util.Dom.get('berries'); 172 171 var img = document.createElement('img'); … … 183 182 var target = e.target; 184 183 185 if ((target.id.toLowerCase() == 'berrybasket' || target.id.toLowerCase() == 'berries') & & !show){184 if ((target.id.toLowerCase() == 'berrybasket' || target.id.toLowerCase() == 'berries') &amp;&amp; !show){ 186 185 showBasket(); 187 186 show = true; 188 187 } 189 188 else{ 190 if (target.id.toLowerCase() == 'hideview' & & show){189 if (target.id.toLowerCase() == 'hideview' &amp;&amp; show){ 191 190 hideBasket(); 192 191 show = false; … … 264 263 fullView.appendChild(document.createTextNode("Full View")); 265 264 hideView.setAttribute("id","hideview"); 266 fullView.setAttribute("href","?a=g& sa=berry&c=&s=DisplayList&rt=r");265 fullView.setAttribute("href","?a=g&amp;sa=berry&amp;c=&amp;s=DisplayList&amp;rt=r"); 267 266 fullView.setAttribute("class","fullview"); 268 267 … … 293 292 294 293 function addBerry(el){ 295 var addurl = "?a=pr& rt=r&ro=1&s=AddItem&c=&s1.id=2&o=XML&s1.item=" + el.id;294 var addurl = "?a=pr&amp;rt=r&amp;ro=1&amp;s=AddItem&amp;c=&amp;s1.id=2&amp;o=XML&amp;s1.item=" + el.id; 296 295 var addSuccess = function(o){ 297 296 var result = o.responseXML; … … 307 306 308 307 var itemID = item.getAttribute('collection')+":"+item.getAttribute('name'); 309 if (parent !=null & & parent.id == "documentberries"){308 if (parent !=null &amp;&amp; parent.id == "documentberries"){ 310 309 var root = YAHOO.util.Dom.get(itemID+":root"); 311 310 var section = YAHOO.util.Dom.get(itemID+":section"); 312 if(root!=null & & root.id.indexOf(itemID) !=-1){311 if(root!=null &amp;&amp; root.id.indexOf(itemID) !=-1){ 313 312 parent.removeChild(root); 314 313 } 315 314 316 if(section!=null & & section.id.indexOf(itemID) !=-1){315 if(section!=null &amp;&amp; section.id.indexOf(itemID) !=-1){ 317 316 parent.removeChild(section); 318 317 } 319 318 } 320 319 321 if (!YAHOO.util.Dom.get('hideview') & & berryList.length < 13){320 if (!YAHOO.util.Dom.get('hideview') &amp;&amp; berryList.length < 13){ 322 321 while (berries.hasChildNodes()) { 323 322 berries.removeChild(berries.firstChild); -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/classifier.xsl
r23336 r24007 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 5 extension-element-prefixes="java" 6 exclude-result-prefixes="java"> 8 7 9 8 <!-- style includes global params interface_name, library_name --> … … 20 19 <title> 21 20 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 22 <xsl: call-template name="pageTitle"/><xsl:text> </xsl:text>21 <xsl:text> </xsl:text> 23 22 </title> 24 23 <xsl:call-template name="globalStyle"/> … … 31 30 <xsl:call-template name="greenstoneFooter"/> 32 31 </div> 32 <xsl:call-template name="pageTitle"/> 33 33 </body> 34 34 </html> … … 38 38 39 39 <xsl:template name="pageTitle"> 40 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>40 <span class="getTextFor null document.title.gsdl">&amp;nbsp;</span> 41 41 </xsl:template> 42 42 … … 48 48 </xsl:if> 49 49 </xsl:template> 50 51 50 52 51 <xsl:template match="pageResponse"> … … 61 60 </xsl:call-template> 62 61 63 <div id="content" >62 <div id="content" class="moz-output-escape"> 64 63 <xsl:apply-templates select="service/classifierList"> 65 64 <xsl:with-param name="collName" select="$collName"/> … … 88 87 </xsl:when> 89 88 <xsl:otherwise> 90 <li><a href="{$library_name}?a=b& rt=r&s={$serviceName}&c={$collName}&cl={@name}"><xsl:value-of select="displayItem[@name='name']"/></a></li></xsl:otherwise></xsl:choose>89 <li><a href="{$library_name}?a=b&amp;rt=r&amp;s={$serviceName}&amp;c={$collName}&amp;cl={@name}"><xsl:value-of select="displayItem[@name='name']"/></a></li></xsl:otherwise></xsl:choose> 91 90 92 91 </xsl:for-each> -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/classifiertools.xsl
r18316 r24007 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 5 extension-element-prefixes="java" 6 exclude-result-prefixes="java"> 8 7 9 8 <xsl:template match="classifier"> … … 95 94 <xsl:param name="collName"/> 96 95 <xsl:param name="serviceName"/> 97 <a href="{$library_name}?a=d&c={$collName}&d={@nodeID}&dt={@docType}&p.a=b&p.s={$serviceName}"><xsl:apply-templates select="." mode="displayNodeIcon"/></a><xsl: value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/>96 <a href="{$library_name}?a=d&c={$collName}&d={@nodeID}&dt={@docType}&p.a=b&p.s={$serviceName}"><xsl:apply-templates select="." mode="displayNodeIcon"/></a><xsl:text>Test</xsl:text><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/> 98 97 </xsl:template> 99 98 … … 105 104 <xsl:param name="serviceName"/> 106 105 <a><xsl:attribute name='href'><xsl:value-of select='$library_name'/>?a=b&rt=r&s=<xsl:value-of select='$serviceName'/>&c=<xsl:value-of select='$collName'/>&cl=<xsl:value-of select='@nodeID'/><xsl:if test="classifierNode|documentNode">.pr</xsl:if></xsl:attribute><xsl:call-template name="bookshelfimg"/></a><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/> 106 107 107 </xsl:template> 108 108 -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/document.xsl
r18437 r24007 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"6 5 xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" 7 extension-element-prefixes="java util" 8 exclude-result-prefixes="java util gsf"> 9 6 extension-element-prefixes="java" 7 exclude-result-prefixes="java gsf"> 10 8 11 9 <!-- style includes global params interface_name, library_name --> … … 56 54 <xsl:template name="pageTitle"> 57 55 <xsl:variable name="docID" select="/page/pageResponse/document/@selectedNode"/> 58 <xsl:for-each select= '/page/pageResponse/document/descendant::documentNode[@nodeID=$docID]/ancestor-or-self::documentNode'><xsl:if test='position()!=1'>::</xsl:if><xsl:value-of select="metadataList/metadata[@name='Title']"/></xsl:for-each>56 <xsl:for-each select="/page/pageResponse/document/descendant::documentNode[@nodeID=$docID]/ancestor-or-self::documentNode"><xsl:if test='position()!=1'>::</xsl:if><xsl:value-of select="metadataList/metadata[@name='Title']"/></xsl:for-each> 59 57 </xsl:template> 60 58 … … 70 68 </xsl:text> 71 69 </style> 70 72 71 <!--TODO: add berry basket switch--> 73 72 <!--<xsl:if test="$berryBaskets = 'true'">--> … … 138 137 <xsl:text disable-output-escaping="yes"> 139 138 var doc_url = document.URL; 140 doc_url = doc_url.replace(/(& |\?)book=[a-z]+/gi,'');141 doc_url += '& book=flashxml';139 doc_url = doc_url.replace(/(&amp;|\?)book=[a-z]+/gi,''); 140 doc_url += '&amp;book=flashxml'; 142 141 143 142 var flash_plug_html = "" 144 flash_plug_html += '& lt;OBJECT align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" \n';143 flash_plug_html += '&lt;OBJECT align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" \n'; 145 144 flash_plug_html += ' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" \n'; 146 145 flash_plug_html += ' height="100%" id="Book" swLiveConnect="true" \n'; 147 flash_plug_html += ' width="100%"& gt;\n';148 flash_plug_html += ' & lt;PARAM name="allowScriptAccess" value="always" />\n';149 flash_plug_html += ' & lt;PARAM name="movie" value="Book.swf';146 flash_plug_html += ' width="100%"&gt;\n'; 147 flash_plug_html += ' &lt;PARAM name="allowScriptAccess" value="always" /&gt;\n'; 148 flash_plug_html += ' &lt;PARAM name="movie" value="Book.swf'; 150 149 flash_plug_html += '?src_image=' + escape(img_cover); 151 flash_plug_html += '& doc_url=' + escape(doc_url)152 flash_plug_html += '" /& gt;\n';153 flash_plug_html += ' & lt;PARAM name="quality" value="high" />\n';154 flash_plug_html += ' & lt;PARAM name="bgcolor" value="#FFFFFF" />\n';155 flash_plug_html += ' & lt;EMBED align="middle" \n';150 flash_plug_html += '&amp;doc_url=' + escape(doc_url) 151 flash_plug_html += '" /&gt;\n'; 152 flash_plug_html += ' &lt;PARAM name="quality" value="high" /&gt;\n'; 153 flash_plug_html += ' &lt;PARAM name="bgcolor" value="#FFFFFF" /&gt;\n'; 154 flash_plug_html += ' &lt;EMBED align="middle" \n'; 156 155 flash_plug_html += ' allowScriptAccess="always" swLiveConnect="true" \n'; 157 156 flash_plug_html += ' bgcolor="#FFFFFF" height="100%" name="Book" \n'; … … 160 159 flash_plug_html += ' src="Book.swf'; 161 160 flash_plug_html += '?src_image=' + escape(img_cover); 162 flash_plug_html += '& doc_url=' + escape(doc_url);161 flash_plug_html += '&amp;doc_url=' + escape(doc_url); 163 162 flash_plug_html += '"\n'; 164 flash_plug_html += ' type="application/x-shockwave-flash" width="100%" /& gt;\n';165 flash_plug_html += '& lt;/OBJECT>\n';163 flash_plug_html += ' type="application/x-shockwave-flash" width="100%" /&gt;\n'; 164 flash_plug_html += '&lt;/OBJECT&gt;\n'; 166 165 var flash_div = document.getElementById("bookdiv"); 167 166 flash_div.innerHTML = flash_plug_html; … … 199 198 <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> 200 199 <div id="documentheading"> 201 <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"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'close_book')"/></xsl:with-param>200 <a href="{$library_name}?a={$p.a}&amp;sa={$p.sa}&amp;s={$p.s}&amp;c={$p.c}&amp;rt=rd"><xsl:call-template name="openbookimg"><xsl:with-param name="title"><xsl:value-of select="'close_book'"/></xsl:with-param> 202 201 </xsl:call-template></a> 203 202 <xsl:choose><xsl:when test="@docType='simple'"><xsl:value-of select="metadataList/metadata[@name='Title']" disable-output-escaping="yes"/></xsl:when><xsl:otherwise><xsl:value-of select="documentNode/metadataList/metadata[@name='Title']" disable-output-escaping="yes"/></xsl:otherwise></xsl:choose> … … 253 252 </xsl:when> 254 253 <xsl:otherwise> 255 <img><xsl:attribute name= 'src'><xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>/index/assoc/<xsl:value-of select="metadataList/metadata[@name='archivedir']"/>/cover.jpg</xsl:attribute></img>254 <img><xsl:attribute name="src"><xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>/index/assoc/<xsl:value-of select="metadataList/metadata[@name='archivedir']"/>/cover.jpg</xsl:attribute></img> 256 255 </xsl:otherwise> 257 256 </xsl:choose> … … 270 269 <li> 271 270 <xsl:choose><xsl:when test="string($ed)='1'"> 272 <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> 273 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_doc_b')"/> 274 </a> 271 <a href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ed=0" class="getTextFor doc.contract_doc_b this.title.doc.contract_doc_tip"></a> 275 272 </xsl:when> 276 273 <xsl:otherwise> 277 <a href="{$library_name}?a=d&d={$docID}&c={$collName}&sib={$sib}&ed=1"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_doc_tip')"/></xsl:attribute> 278 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_doc_b')"/> 279 </a> 274 <a href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ed=1" class="getTextFor doc.expand_doc_b this.title.doc.expand_doc_tip"></a> 280 275 </xsl:otherwise> 281 276 </xsl:choose> … … 287 282 <li> 288 283 <xsl:choose><xsl:when test="string($ec)='1'"> 289 <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> 290 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_b')"/></a> 284 <a href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ec=0" class="getTextFor doc.contract_contents_b this.title.doc.contract_contents_tip"></a> 291 285 </xsl:when> 292 286 <xsl:otherwise> 293 <a href="{$library_name}?a=d&d={$docID}&c={$collName}&sib={$sib}&ec=1"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_contents_tip')"/></xsl:attribute> 294 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_contents_b')"/> 295 </a> 287 <a href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ec=1" class="getTextFor doc.expand_contents_b this.title.doc.expand_contents_tip"></a> 296 288 </xsl:otherwise> 297 289 </xsl:choose> … … 302 294 <xsl:variable name="paramList" select="/page/pageRequest/paramList"/> 303 295 <li> 304 <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> 305 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.detach_page_b')"/> 306 </a></li> 296 <a target="_blank" class="getTextFor doc.detach_page_b this.title.doc.detach_page_tip"><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;d=<xsl:value-of select="$docID"/>&amp;c=<xsl:value-of select="$collName"/>&amp;sib=<xsl:value-of select="$sib"/>&amp;dt=<xsl:value-of select="$paramList/param[@name='dt']/@value"/>&amp;ec=<xsl:value-of select="$paramList/param[@name='ec']/@value"/>&amp;et=<xsl:value-of select="$paramList/param[@name='et']/@value"/>&amp;p.a=<xsl:value-of select="$paramList/param[@name='p.a']/@value"/>&amp;p.s=<xsl:value-of select="$paramList/param[@name='p.s']/@value"/>&amp;p.sa=<xsl:value-of select="$paramList/param[@name='p.sa']/@value"/></xsl:attribute></a></li> 307 297 </xsl:template> 308 298 … … 333 323 <xsl:variable name="p.a" select="/page/pageRequest/paramList/param[@name='p.a']/@value"/> 334 324 <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> 335 <xsl:if test="documentNode[@nodeID]"> 325 <script type="text/javascript"> 326 <xsl:text> 327 // Load up the initial document using AJAX! 328 var initialHash = '</xsl:text> 329 <xsl:value-of select="$d" /><xsl:text>'; 330 </xsl:text> 331 </script> 332 <xsl:if test="documentNode[@nodeID]"> 336 333 <ul id="tocnodes"> 337 <li >334 <li id="tocstart"> 338 335 <xsl:choose><xsl:when test="string($oc)='0'"> 339 <a href="{$library_name}?a=d& c={$collName}&d={$d}&sib={$sib}&oc=1&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><xsl:call-template name="closedfolderimg"><xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.open_toc')"/></xsl:with-param></xsl:call-template></a>336 <a href="{$library_name}?a=d&amp;c={$collName}&amp;d={$d}&amp;sib={$sib}&amp;oc=1&amp;p.s={$p.s}&amp;p.sa={$p.sa}&amp;p.a={$p.a}&amp;p.c={$p.c}"><xsl:call-template name="closedfolderimg"><xsl:with-param name="title"><xsl:value-of select="'doc.open_toc'"/></xsl:with-param></xsl:call-template></a> 340 337 </xsl:when> 341 <xsl:otherwise><a href="{$library_name}?a=d& c={$collName}&d={$d}&sib={$sib}&oc=0&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><xsl:call-template name="openfolderimg"><xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.close_toc')"/></xsl:with-param></xsl:call-template></a></xsl:otherwise></xsl:choose><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.table_of_contents')"/>338 <xsl:otherwise><a href="{$library_name}?a=d&amp;c={$collName}&amp;d={$d}&amp;sib={$sib}&amp;oc=0&amp;p.s={$p.s}&amp;p.sa={$p.sa}&amp;p.a={$p.a}&amp;p.c={$p.c}"><xsl:call-template name="openfolderimg"><xsl:with-param name="title"><xsl:value-of select="'doc.close_toc'"/></xsl:with-param></xsl:call-template></a></xsl:otherwise></xsl:choose><span class="getTextFor doc.table_of_contents">&amp;nbsp;</span> 342 339 <xsl:if test="string($oc)!='0'"> 343 340 <ul class="tocnode"> … … 362 359 <!-- Display the appropriate image, depending on the node type --> 363 360 <li> 364 <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>361 <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;c=<xsl:value-of select="$collName"/>&amp;d=<xsl:value-of select="@nodeID"/><xsl:if test="documentNode">.pr</xsl:if>&amp;sib=1<xsl:if test="string($ec) = '1'">&amp;ec=1</xsl:if>&amp;p.a=<xsl:value-of select="$p.a"/>&amp;p.sa=<xsl:value-of select="$p.sa"/>&amp;p.s=<xsl:value-of select="$p.s"/>&amp;p.c=<xsl:value-of select="$p.c"/></xsl:attribute> 365 362 <xsl:apply-templates select="." mode="displayNodeIcon"/> 366 363 </a> … … 372 369 </xsl:when> 373 370 <xsl:otherwise> 374 < xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/>371 <span><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/></span> 375 372 </xsl:otherwise> 376 373 </xsl:choose> … … 394 391 <xsl:when test="@docType='simple'"><xsl:apply-templates select="nodeContent"/></xsl:when> 395 392 <xsl:otherwise> 396 < xsl:apply-templates select="descendant-or-self::node()/documentNode" mode="content"/>393 <!--<xsl:apply-templates select="descendant-or-self::node()/documentNode" mode="content"/>--> 397 394 </xsl:otherwise> 398 395 </xsl:choose> … … 411 408 <!-- the actual text/content --> 412 409 <xsl:template match="nodeContent"> 413 <p/>414 410 <xsl:for-each select="node()"> 415 411 <xsl:choose> 416 412 <xsl:when test="not(name())"> 417 <xsl:value-of select="." disable-output-escaping="yes" />413 <xsl:value-of select="." disable-output-escaping="yes" /> 418 414 </xsl:when> 419 415 <xsl:otherwise><xsl:apply-templates select="."/></xsl:otherwise> … … 444 440 <xsl:when test="nodeContent"> 445 441 <xsl:text disable-output-escaping="yes"> 446 & lt;Section>447 & lt;Description>448 & lt;Metadata name="Title">442 &lt;Section&gt; 443 &lt;Description&gt; 444 &lt;Metadata name="Title"&gt; 449 445 </xsl:text> 450 446 <xsl:value-of select="normalize-space(metadataList/metadata[@name='Title'])"/> 451 447 <xsl:text disable-output-escaping="yes"> 452 & lt;/Metadata>453 & lt;/Description>448 &lt;/Metadata&gt; 449 &lt;/Description&gt; 454 450 </xsl:text> 455 451 <xsl:value-of select="normalize-space(nodeContent)" disable-output-escaping="yes"/> 456 <xsl:text disable-output-escaping="yes">& lt;/Sec></xsl:text>452 <xsl:text disable-output-escaping="yes">&lt;/Sec&gt;</xsl:text> 457 453 </xsl:when> 458 454 </xsl:choose> … … 465 461 <!-- end the section --> 466 462 <xsl:text disable-output-escaping="yes"> 467 & lt;/Section>463 &lt;/Section&gt; 468 464 </xsl:text> 469 465 </xsl:template> … … 473 469 <xsl:variable name="httpPath" select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/> 474 470 <xsl:choose> 475 <xsl:when test=" util:isImage(@mimeType)">471 <xsl:when test="starts-with(@mimeType, 'image/')"> 476 472 <img src="{$httpPath}/{@href}"/> 477 473 </xsl:when> … … 488 484 <xsl:choose> 489 485 <xsl:when test="@type='document'">a=d</xsl:when> 490 <xsl:when test="@type='query'">a=q& s=<xsl:value-of select="@service"/>&rt=rd</xsl:when>486 <xsl:when test="@type='query'">a=q&amp;s=<xsl:value-of select="@service"/>&amp;rt=rd</xsl:when> 491 487 <xsl:otherwise> 492 488 p … … 495 491 </xsl:variable> 496 492 <xsl:variable name="serviceargs"> 497 <xsl:for-each select="param">& s1.<xsl:value-of select="@name"/>=<xsl:value-of select="@value"/></xsl:for-each>493 <xsl:for-each select="param">&amp;s1.<xsl:value-of select="@name"/>=<xsl:value-of select="@value"/></xsl:for-each> 498 494 </xsl:variable> 499 <a href="{$library_name}?{$actionargs}& c={$collName}{$serviceargs}"><xsl:value-of disable-output-escaping="yes" select="."/></a>495 <a href="{$library_name}?{$actionargs}&amp;c={$collName}{$serviceargs}"><xsl:value-of disable-output-escaping="yes" select="."/></a> 500 496 </xsl:template> 501 497 … … 518 514 </td> 519 515 <td align="center"><center> 520 <b ><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.pages', $children)"/></b>516 <b class="getTextFor doc.pages"></b> 521 517 </center></td> 522 518 <td align="right"> 523 <a href="{$library_name}?a=d& c={$collName}&d={@selectedNode}.fc"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a>519 <a href="{$library_name}?a=d&amp;c={$collName}&amp;d={@selectedNode}.fc"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a> 524 520 </td> 525 521 </tr> … … 530 526 <td align="left"> 531 527 <xsl:if test=" not ( $pos = 1 )"> 532 <a href="{$library_name}?a=d& c={$collName}&d={@selectedNode}.ps"><img src="interfaces/default/images/less.gif" border="0" align="absbottom" /></a>528 <a href="{$library_name}?a=d&amp;c={$collName}&amp;d={@selectedNode}.ps"><img src="interfaces/default/images/less.gif" border="0" align="absbottom" /></a> 533 529 </xsl:if> 534 530 </td> 535 531 <td align="center"><center> 536 <b><xsl: value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.pageof', concat($pos, ';', $length))"/></b>532 <b><xsl:attribute name="class"><xsl:value-of select="concat('getTextFor null this.innerText.doc.pageof|', $pos, ';', $length)"/></xsl:attribute></b> 537 533 </center></td> 538 534 <td align="right"> 539 535 <xsl:if test=" not($pos = $length)"> 540 <a href="{$library_name}?a=d& c={$collName}&d={@selectedNode}.ns"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a>536 <a href="{$library_name}?a=d&amp;c={$collName}&amp;d={@selectedNode}.ns"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a> 541 537 </xsl:if> 542 538 </td> … … 551 547 <input type='hidden' name='d' value='{@selectedNode}'/> 552 548 <input type="text" name="gp" size="3" maxlength="4"/> 553 <input type="submit" ><xsl:attribute name='value'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.gotopage')"/></xsl:attribute></input>549 <input type="submit" class="getTextFor null this.value.doc.gotopage"></input> 554 550 </form> 555 551 </td> … … 568 564 <form name="EnrichForm" method="get" action="{$library_name}"> 569 565 <xsl:apply-templates select="paramList"/> 570 <input type= 'hidden' name='a' value='d'/>571 <input type= 'hidden' name='d' value='{$docID}'/>572 <input type= 'hidden' name='c' value='{$collName}'/>573 <xsl:if test= '$request-params/param[@name="sib"]'>574 <input type= 'hidden' name='sib'><xsl:attribute name='value'><xsl:value-of select='$request-params/param[@name="sib"]/@value'/></xsl:attribute></input></xsl:if>575 <input type= 'hidden' name='s' value='{@name}'/>576 <input type= 'hidden' name='p.a'><xsl:attribute name='value'><xsl:value-of select='$request-params/param[@name="p.a"]'/></xsl:attribute></input>577 <input type= 'hidden' name='p.sa'><xsl:attribute name='value'><xsl:value-of select='$request-params/param[@name="p.sa"]'/></xsl:attribute></input>578 <input type= 'hidden' name='p.s'><xsl:attribute name='value'><xsl:value-of select='$request-params/param[@name="p.s"]'/></xsl:attribute></input>579 <input type= 'hidden' name='end'value='1'/>566 <input type="hidden" name="a" value="d"/> 567 <input type="hidden" name="d" value="{$docID}"/> 568 <input type="hidden" name="c" value="{$collName}"/> 569 <xsl:if test="$request-params/param[@name='sib']"> 570 <input type="hidden" name="sib"><xsl:attribute name="value"><xsl:value-of select="$request-params/param[@name='sib']/@value"/></xsl:attribute></input></xsl:if> 571 <input type="hidden" name="s" value="{@name}"/> 572 <input type="hidden" name="p.a"><xsl:attribute name="value"><xsl:value-of select="$request-params/param[@name='p.a']"/></xsl:attribute></input> 573 <input type="hidden" name="p.sa"><xsl:attribute name="value"><xsl:value-of select="$request-params/param[@name='p.sa']"/></xsl:attribute></input> 574 <input type="hidden" name="p.s"><xsl:attribute name="value"><xsl:value-of select="$request-params/param[@name='p.s']"/></xsl:attribute></input> 575 <input type="hidden" name="end" value='1'/> 580 576 <input type="submit"><xsl:attribute name="value"><xsl:value-of select="displayItem[@name='submit']"/></xsl:attribute></input> 581 577 </form> … … 615 611 <xsl:param name="direction"/> 616 612 <xsl:variable name="request-params" select="/page/pageRequest/paramList"/> 617 <xsl:if test= '$request-params/param[@name="dt"]/@value != "simple"'>618 <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d& c=<xsl:value-of select="$collName"/>&d=<xsl:value-of select="@selectedNode"/><xsl:choose><xsl:when test="$direction='back'">.pp</xsl:when><xsl:otherwise>.np</xsl:otherwise></xsl:choose>&sib=1&p.s=<xsl:value-of select='$request-params/param[@name="p.s"]/@value'/>&p.sa=<xsl:value-of select='$request-params/param[@name="p.sa"]/@value'/>&p.a=<xsl:value-of select='$request-params/param[@name="p.a"]/@value'/></xsl:attribute><xsl:choose><xsl:when test="$direction='back'"><img class="lessarrow" src="interfaces/default/images/less.gif" /></xsl:when><xsl:otherwise><img class="morearrow" src="interfaces/default/images/more.gif" /></xsl:otherwise></xsl:choose></a>613 <xsl:if test="$request-params/param[@name='dt']/@value != 'simple'"> 614 <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;c=<xsl:value-of select="$collName"/>&amp;d=<xsl:value-of select="@selectedNode"/><xsl:choose><xsl:when test="$direction='back'">.pp</xsl:when><xsl:otherwise>.np</xsl:otherwise></xsl:choose>&amp;sib=1&amp;p.s=<xsl:value-of select="$request-params/param[@name='p.s']/@value"/>&amp;p.sa=<xsl:value-of select="$request-params/param[@name='p.sa']/@value"/>&amp;p.a=<xsl:value-of select="$request-params/param[@name='p.a']/@value"/></xsl:attribute><xsl:choose><xsl:when test="$direction='back'"><img class="lessarrow" src="interfaces/default/images/less.gif" /></xsl:when><xsl:otherwise><img class="morearrow" src="interfaces/default/images/more.gif" /></xsl:otherwise></xsl:choose></a> 619 615 </xsl:if> 620 616 </xsl:template> … … 622 618 <xsl:template name="externalPage"> 623 619 <xsl:param name="external"/> 624 <xsl:variable name="go_forward_link"><a ><xsl:attribute name="href"><xsl:value-of select="$external"/></xsl:attribute><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'external.go_forward')"/></a></xsl:variable>625 <h2 ><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'external.title')"/></h2>626 <p><xsl: value-of select="util:getInterfaceTextWithDOM($interface_name, /page/@lang, 'external.text', $go_forward_link)" disable-output-escaping="yes"/>620 <xsl:variable name="go_forward_link"><a class="getTextfor external.go_forward"><xsl:attribute name="href"><xsl:value-of select="$external"/></xsl:attribute></a></xsl:variable> 621 <h2 class="getTextFor external.title"></h2> 622 <p><xsl:attribute name="class"><xsl:value-of select="concat('getTextFor null this.innerText.external.text|', $go_forward_link)" /></xsl:attribute> 627 623 </p> 628 624 </xsl:template> 629 625 630 626 </xsl:stylesheet> 631 632 633 634 -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/gli4gs3.xsl
r18388 r24007 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 5 extension-element-prefixes="java" 6 exclude-result-prefixes="java"> 8 7 9 8 <!-- style includes global params interface_name, library_name --> -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/help.xsl
r18388 r24007 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 5 extension-element-prefixes="java" 6 exclude-result-prefixes="java"> 8 7 9 8 <!-- style includes global params interface_name, library_name --> … … 18 17 <title> 19 18 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 20 <xsl: call-template name="pageTitle"/><xsl:text> </xsl:text>19 <xsl:text> </xsl:text> 21 20 </title> 22 21 <xsl:call-template name="globalStyle"/> … … 29 28 <xsl:call-template name="greenstoneFooter"/> 30 29 </div> 30 <xsl:call-template name="pageTitle"/> 31 31 </body> 32 32 </html> … … 34 34 35 35 <xsl:template name="pageTitle"> 36 <xsl:choose><xsl:when test="/page/pageResponse/*/displayItem[@name='name']"><xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/></xsl:when><xsl:otherwise><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/></xsl:otherwise></xsl:choose>: <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_t')"/> 36 <xsl:choose> 37 <xsl:when test="/page/pageResponse/*/displayItem[@name='name']"> 38 <span> 39 <xsl:attribute name="class"> 40 <xsl:text>getTextFor null document.title.text:'</xsl:text> 41 <xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/> 42 <xsl:text>'</xsl:text> 43 </xsl:attribute> 44 </span> 45 </xsl:when> 46 <xsl:otherwise> 47 <span class="getTextFor null document.title.gsdl">&amp;nbsp;</span> 48 </xsl:otherwise> 49 </xsl:choose> 50 <span class="getTextFor null document.title.text:' : '[a],document.title.help_t[a]">&amp;nbsp;</span> 37 51 </xsl:template> 38 52 -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/home.xsl
r20291 r24007 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 2 <xsl:stylesheet version="1.0" 3 xmlns="http://www.w3.org/1999/xhtml" 3 4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 5 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"6 6 xmlns:gslib="http://www.greenstone.org/skinning" 7 extension-element-prefixes="java util"8 exclude-result-prefixes="java util">7 extension-element-prefixes="java" 8 exclude-result-prefixes="java"> 9 9 10 10 … … 16 16 <head> 17 17 <title> 18 < gslib:siteHomePageTitle/>18 <xsl:text> </xsl:text> 19 19 </title> 20 20 <link rel="stylesheet" href="interfaces/default/style/core.css" type="text/css"/> 21 21 </head> 22 22 23 <body> <gslib:textDirectionAttribute/>23 <body> 24 24 25 25 <div id="page-wrapper"> … … 29 29 <div id="banner"> 30 30 <p> 31 <img src="interfaces/default/images/gsdlhead.gif"><xsl:attribute name="alt"><gslib:greenstoneLogoAlternateText/></xsl:attribute> 32 </img> 31 <img src="interfaces/default/images/gsdlhead.gif" class="getTextFor null this.alt.gsdl" /> 33 32 </p> 34 33 </div> 35 34 36 <div id="content" >35 <div id="content" class="moz-output-escape"> 37 36 38 37 <div class="divbar"><gslib:selectACollectionTextBar/></div> … … 63 62 <li><gslib:authenticationLink/></li> 64 63 </xsl:for-each> 65 <!--uncomment the line below to display a library interface link inside a <li>-->66 <!--<gslib:libraryInterfaceLink/>-->67 64 </ul> 68 65 … … 71 68 72 69 <div id="footer"> 73 <div class="divbar"><gslib:poweredByGS3TextBar/></div> 70 <div class="divbar"> 71 <span class="getTextFor gs3power">&nbsp;</span> 72 </div> 74 73 </div> 75 74 76 75 </div> 76 77 <span class="getTextFor null document.title.gsdl">&nbsp;</span> 78 79 <span id="language" style="display: none;"><xsl:value-of select="/page/@lang" /></span> 80 <span id="interface" style="display: none;"><xsl:value-of select="$interface_name" /></span> 81 82 <script type="text/javascript">var placeholder = false;</script> 83 <script type="text/javascript" src="jquery.js"> 84 <xsl:comment>Filler for browser</xsl:comment> 85 </script> 86 <script type="text/javascript" src="test.js"> 87 <xsl:comment>Filler for browser</xsl:comment> 88 </script> 77 89 78 90 </body> -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/html.xsl
r8660 r24007 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 5 extension-element-prefixes="java" 6 exclude-result-prefixes="java"> 8 7 9 8 <xsl:output method="html"/> … … 11 10 <xsl:template match="page"> 12 11 <html> 13 <head></head> 12 <head> 13 14 </head> 15 <body> 14 16 <frameset rows="68,*" noresize="" border="0"> 15 <frame frameborder="0"><xsl:attribute name="src">?a=p& sa=nav&c=<xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value" /></xsl:attribute></frame>17 <frame frameborder="0"><xsl:attribute name="src">?a=p&amp;sa=nav&amp;c=<xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value" /></xsl:attribute></frame> 16 18 <frame frameborder="0"><xsl:attribute name="src"><xsl:value-of select="/page/pageRequest/paramList/param[@name='url']/@value"/></xsl:attribute></frame> 17 19 <noframes> 18 <p ><xsl:value-of select="util:getInterfaceText('default', /page/@lang, 'textframebrowser')"/></p>20 <p class="getTextFor textframebrowser">&amp;nbsp;</p> 19 21 </noframes> 20 22 </frameset> 23 <script type="text/javascript" src="jquery.js"><!-- jQuery --></script> 24 <script type="text/javascript" src="test.js"><!-- Scripts for client side XSL transformations --></script> 25 </body> 21 26 </html> 22 27 </xsl:template> -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/icons.xsl
r18385 r24007 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 2 <xsl:stylesheet version="1.0" 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 8 4 9 5 <!-- some global parameters - these are set by whoever is invoking the transformation --> … … 19 15 <xsl:when test="documentNode"> 20 16 <xsl:call-template name="openbookimg"> 21 <xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'close_book')"/></xsl:with-param>22 17 </xsl:call-template> 23 18 </xsl:when> 24 19 <xsl:otherwise> 25 20 <xsl:call-template name="closedbookimg"> 26 <xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'open_book')"/></xsl:with-param>27 21 </xsl:call-template> 28 22 </xsl:otherwise> … … 35 29 <xsl:when test="documentNode"> 36 30 <xsl:call-template name="openfolderimg"> 37 <xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'close_folder')"/></xsl:with-param>38 31 </xsl:call-template> 39 32 </xsl:when> 40 33 <xsl:otherwise> 41 34 <xsl:call-template name="closedfolderimg"> 42 <xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'open_folder')"/></xsl:with-param>43 35 </xsl:call-template> 44 36 </xsl:otherwise> … … 49 41 <xsl:otherwise> 50 42 <xsl:call-template name="textpageimg"> 51 <xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'view_document')"/></xsl:with-param>52 43 </xsl:call-template> 53 44 </xsl:otherwise> … … 56 47 57 48 <xsl:template name="openbookimg"> 49 <xsl:param name="title"/> 58 50 <xsl:param name="alt"/> 59 <xsl:param name="title"/>60 51 <img border="0" width="28" height="23" 61 52 src="interfaces/default/images/openbook.gif" 62 alt="{$alt}" title="{$title}"/>53 alt="{$alt}" class="getTextFor null this.title.{$title}" /> 63 54 </xsl:template> 64 55 65 56 <xsl:template name="closedbookimg"> 66 57 <xsl:param name="alt"/> 67 <xsl:param name="title"/>68 58 <img border="0" width="18" height="11" 69 59 src="interfaces/default/images/book.gif" 70 alt="{$alt}" title="{$title}"/>60 alt="{$alt}" class="getTextFor null this.title.open_book" /> 71 61 </xsl:template> 72 62 73 63 <xsl:template name="openfolderimg"> 64 <xsl:param name="title"/> 74 65 <xsl:param name="alt"/> 75 <xsl:param name="title"/>76 66 <img border="0" width="23" height="15" 77 67 src="interfaces/default/images/openfldr.gif" 78 alt="{$alt}" title="{$title}"/>68 alt="{$alt}" class="getTextFor null this.title.{$title}" /> 79 69 </xsl:template> 80 70 81 71 <xsl:template name="closedfolderimg"> 72 <xsl:param name="title"/> 82 73 <xsl:param name="alt"/> 83 <xsl:param name="title"/>84 74 <img border="0" width="23" height="15" 85 75 src="interfaces/default/images/clsdfldr.gif" 86 alt="{$alt}" title="{$title}"/>76 alt="{$alt}" class="getTextFor null this.title.{$title}" /> 87 77 </xsl:template> 88 78 89 79 <xsl:template name="textpageimg"> 90 80 <xsl:param name="alt"/> 91 <xsl:param name="title"/>92 81 <img border="0" width="16" height="21" 93 82 src="interfaces/default/images/itext.gif" 94 alt="{$alt}" title="{$title}"/> 83 alt="{$alt}" class="getTextFor null this.title.view_document,parent.class.text:'clientDocView'" /> 84 <span><xsl:value-of select="$alt" /></span> 95 85 </xsl:template> 96 86 … … 105 95 <xsl:template name="iconpdf"> 106 96 <xsl:param name="alt">PDF</xsl:param> 107 <xsl:param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'texticonpdf')"/></xsl:param>108 97 <img border="0" width='26' height='26' 109 98 src='interfaces/default/images/ipdf.gif' 110 alt='{$alt}' title='{$title}'/>99 alt='{$alt}' class="getTextFor null this.title.texticonpdf" /> 111 100 </xsl:template> 112 101 113 102 <xsl:template name="icondoc"> 114 103 <xsl:param name="alt">Word</xsl:param> 115 <xsl:param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'texticonmsword')"/></xsl:param>116 104 <img border="0" width='26' height='26' 117 105 src='interfaces/default/images/imsword.gif' 118 alt='{$alt}' title='{$title}'/>106 alt='{$alt}' class="getTextFor null this.title.texticonmsword" /> 119 107 </xsl:template> 120 108 -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/library.xsl
r20022 r24007 4 4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 5 5 xmlns:gslib="http://www.greenstone.org/XSL/Library" 6 exclude-result-prefixes="util xalan gslib gsf xslt gs3"> 7 6 exclude-result-prefixes="gslib"> 8 7 9 8 <xsl:output -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/nav.xsl
r18388 r24007 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 5 extension-element-prefixes="java" 6 exclude-result-prefixes="java"> 8 7 9 8 <!-- style includes global params interface_name, library_name --> -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/pref.xsl
r18388 r24007 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 5 extension-element-prefixes="java" 6 exclude-result-prefixes="java"> 8 7 9 8 <!-- style includes global params interface_name, library_name --> … … 29 28 <xsl:call-template name="greenstoneFooter"/> 30 29 </div> 30 <xsl:call-template name="pageTitleDeferred" /> 31 31 </body> 32 32 </html> … … 34 34 35 35 <xsl:template name="pageTitle"> 36 <xsl:choose><xsl:when test="/page/pageResponse/*/displayItem[@name='name']"><xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/></xsl:when><xsl:otherwise><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/></xsl:otherwise></xsl:choose>: <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_t')"/> 36 <xsl:choose><xsl:when test="/page/pageResponse/*/displayItem[@name='name']"><xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/></xsl:when><xsl:otherwise></xsl:otherwise></xsl:choose> 37 </xsl:template> 38 39 <xsl:template name="pageTitleDeferred"> 40 <xsl:choose><xsl:when test="/page/pageResponse/*/displayItem[@name='name']"></xsl:when><xsl:otherwise><span class="getTextFor null document.title.gsdl,document.title.text:' : '[a],document.title.pref_t[a]"></span>:</xsl:otherwise></xsl:choose> 37 41 </xsl:template> 38 42 … … 59 63 <input type='hidden' name='sa' value='pref'/> 60 64 <input type='hidden' name='c' value="{$collName}"/> 61 <div class="formheading">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.prespref')"/></div>65 <div class="formheading"><span class="getTextFor pref.prespref"></span></div> 62 66 <ul id="presprefs"><xsl:call-template name="pres-prefs"/></ul> 63 67 <ul id="berrybasketprefs" ><xsl:call-template name="berrybasket-prefs"/></ul> … … 67 71 </xsl:if> 68 72 69 <div class="formheading">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.searchpref')"/></div>73 <div class="formheading"><span class="getTextFor pref.searchpref"></span></div> 70 74 <ul id="searchprefs"><xsl:call-template name="search-prefs"/></ul> 71 <input type='submit' ><xsl:attribute name="value"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.set_prefs')"/></xsl:attribute></input>75 <input type='submit' class="getTextFor null this.value.pref.set_prefs" id="test"></input> 72 76 </form> 73 77 </div> … … 75 79 76 80 <xsl:template name="pres-prefs"> 77 <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.interfacelang')"/> <xsl:call-template name="lang-list"/></li> 78 <li><span class="rightspace"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.encoding')"/></span>x</li> 81 <li><span class="getTextFor pref.interfacelang"></span></li> 82 <li><xsl:call-template name="lang-list"/></li> 83 <li><span class="rightspace"><span class="getTextFor pref.encoding"></span></span>x</li> 79 84 </xsl:template> 80 85 … … 90 95 <xsl:template name="search-prefs"> 91 96 <xsl:variable name="hits"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='hitsPerPage']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='hitsPerPage']/@value"/></xsl:when><xsl:otherwise>20</xsl:otherwise></xsl:choose></xsl:variable> 92 <li>< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.hitsperpage')"/>97 <li><span class="getTextFor pref.hitsperpage">&amp;nbsp;</span> 93 98 <select name="hitsPerPage"> 94 99 <option value="20"><xsl:if test="$hits=20"><xsl:attribute name="selected"></xsl:attribute></xsl:if>20</option> 95 100 <option value="50"><xsl:if test="$hits=50"><xsl:attribute name="selected"></xsl:attribute></xsl:if>50</option> 96 101 <option value="100"><xsl:if test="$hits=100"><xsl:attribute name="selected"></xsl:attribute></xsl:if>100</option> 97 <option value="-1" ><xsl:if test="$hits=-1"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.all')"/></option>102 <option value="-1" class="getTextFor pref.all"><xsl:if test="$hits=-1"><xsl:attribute name="selected"></xsl:attribute></xsl:if></option> 98 103 </select> 99 104 </li> … … 103 108 <xsl:variable name="berrybasket"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='berrybasket']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='berrybasket']/@value"/></xsl:when><xsl:otherwise>off</xsl:otherwise></xsl:choose></xsl:variable> 104 109 105 <li>< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.berrybasket')"/> <select name="berrybasket">106 <option value="on" ><xsl:if test="$berrybasket='on'"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.berrybasket.on')"/></option>107 <option value="off" ><xsl:if test="$berrybasket='off'"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.berrybasket.off')"/></option>110 <li><span class="getTextFor pref.berrybasket">&amp;nbsp;</span> <select name="berrybasket"> 111 <option value="on" class="getTextFor pref.berrybasket.on"><xsl:if test="$berrybasket='on'"><xsl:attribute name="selected"></xsl:attribute></xsl:if></option> 112 <option value="off" class="getTextFor pref.berrybasket.off"><xsl:if test="$berrybasket='off'"><xsl:attribute name="selected"></xsl:attribute></xsl:if></option> 108 113 </select> 109 114 </li> … … 113 118 <xsl:variable name="book"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='book']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='book']/@value"/></xsl:when><xsl:otherwise>off</xsl:otherwise></xsl:choose></xsl:variable> 114 119 115 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.book')"/> <select name="book">116 <option value="on" ><xsl:if test="$book='on'"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.berrybasket.on')"/></option>117 <option value="off" ><xsl:if test="$book='off'"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.berrybasket.off')"/></option>120 <span class="getTextFor pref.book">&amp;nbsp;</span> <select name="book"> 121 <option value="on" class="getTextFor pref.berrybasket.on"><xsl:if test="$book='on'"><xsl:attribute name="selected"></xsl:attribute></xsl:if></option> 122 <option value="off" class="getTextFor pref.berrybasket.off"><xsl:if test="$book='off'"><xsl:attribute name="selected"></xsl:attribute></xsl:if></option> 118 123 </select> 119 124 -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/process.xsl
r18388 r24007 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 5 extension-element-prefixes="java" 6 exclude-result-prefixes="java"> 8 7 9 8 <!-- style includes global params interface_name, library_name --> … … 83 82 <center/> 84 83 <applet code="org.greenstone.gsdl3.build.StatusDisplay.class" codebase='lib' archive='gsdl3.jar, xercesImpl.jar, xml-apis.jar' width='600' height='150'>The status display applet. 85 <param name='library'><xsl:attribute name="value"><xsl:value-of select='$library_name'/>?a=pr& rt=s&c=<xsl:value-of select='$clusterName'/>&s=<xsl:value-of select='/page/pageResponse/service/@name'/>&o=xml&ro=1&l=<xsl:value-of select='/page/@lang'/>&pid=<xsl:value-of select="@pid"/><xsl:apply-templates select="/page/pageResponse/service/paramList" mode="cgi"/></xsl:attribute></param>84 <param name='library'><xsl:attribute name="value"><xsl:value-of select='$library_name'/>?a=pr&amp;rt=s&amp;c=<xsl:value-of select='$clusterName'/>&amp;s=<xsl:value-of select='/page/pageResponse/service/@name'/>&amp;o=xml&amp;ro=1&amp;l=<xsl:value-of select='/page/@lang'/>&amp;pid=<xsl:value-of select="@pid"/><xsl:apply-templates select="/page/pageResponse/service/paramList" mode="cgi"/></xsl:attribute></param> 86 85 <param name='initial_text'><xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute></param> 87 86 <param name='initial_code'><xsl:attribute name="value"><xsl:value-of select="@code"/></xsl:attribute></param></applet> -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/query.xsl
r18388 r24007 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 5 extension-element-prefixes="java" 6 exclude-result-prefixes="java"> 8 7 9 8 <!-- style includes global params interface_name, library_name --> … … 21 20 <title> 22 21 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 23 <xsl: call-template name="pageTitle"/><xsl:text> </xsl:text>22 <xsl:text> </xsl:text> 24 23 </title> 25 24 <xsl:call-template name="globalStyle"/> … … 27 26 </head> 28 27 <body> 28 29 29 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute> 30 30 <div id="page-wrapper"> … … 32 32 <xsl:call-template name="greenstoneFooter"/> 33 33 </div> 34 <xsl:call-template name="pageTitle"/> 34 35 </body> 35 36 </html> … … 39 40 40 41 <xsl:template name="pageTitle"> 41 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>42 <span class="getTextFor null document.title.gsdl"></span> 42 43 </xsl:template> 43 44 … … 81 82 <xsl:template name="query-response"> 82 83 <xsl:param name="collName"/> 83 <xsl:call-template name="dividerBar"><xsl:with-param name='text'> <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.results')"/></xsl:with-param></xsl:call-template>84 <xsl:call-template name="dividerBar"><xsl:with-param name='text'>query.results</xsl:with-param></xsl:call-template> 84 85 85 86 <!-- If query term information is available, display it --> -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/querytools.xsl
r18316 r24007 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 5 extension-element-prefixes="java" 6 exclude-result-prefixes="java"> 8 7 9 8 <!-- have changed this so it uses service hitsPerPage and startPage if the service description has a param called hitsPerPage, otherwise uses interface ones --> … … 61 60 <div> 62 61 <div> 63 <xsl:if test="$here > 1"><a href="{$library_name}?a=q&sa={$sa}&c={$collName}&s={$service}&rt=rd&{$page-param}={$prev}"><img src="interfaces/default/images/less.gif" width='30' height='16' border='0' align='top'/>< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.matches')"/><xsl:text> </xsl:text><xsl:value-of select="number(($prev - 1)*$hpp + 1)"/> - <xsl:value-of select="number(($prev * $hpp))"/></a></xsl:if>62 <xsl:if test="$here > 1"><a href="{$library_name}?a=q&sa={$sa}&c={$collName}&s={$service}&rt=rd&{$page-param}={$prev}"><img src="interfaces/default/images/less.gif" width='30' height='16' border='0' align='top'/><span class="getTextFor query.matches"></span><xsl:text> </xsl:text><xsl:value-of select="number(($prev - 1)*$hpp + 1)"/> - <xsl:value-of select="number(($prev * $hpp))"/></a></xsl:if> 64 63 65 64 … … 67 66 <xsl:variable name='m' select="number($next * $hpp)"/> 68 67 <xsl:variable name='mm'><xsl:choose><xsl:when test="$m < $td"><xsl:value-of select='$m'/></xsl:when><xsl:otherwise><xsl:value-of select='$td'/></xsl:otherwise></xsl:choose></xsl:variable> 69 <a href="{$library_name}?a=q&sa={$sa}&c={$collName}&s={$service}&rt=rd&{$page-param}={$next}">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.matches')"/><xsl:text> </xsl:text><xsl:value-of select="number(($next - 1)*$hpp + 1)"/> - <xsl:value-of select="$mm"/><img src="interfaces/default/images/more.gif" width='30' height='16' border='0' align='top'/></a></xsl:if></div>68 <a href="{$library_name}?a=q&sa={$sa}&c={$collName}&s={$service}&rt=rd&{$page-param}={$next}"><span class="getTextFor query.matches"></span><xsl:text> </xsl:text><xsl:value-of select="number(($next - 1)*$hpp + 1)"/> - <xsl:value-of select="$mm"/><img src="interfaces/default/images/more.gif" width='30' height='16' border='0' align='top'/></a></xsl:if></div> 70 69 </div> 71 70 </xsl:if> … … 80 79 <xsl:choose> 81 80 <xsl:when test="$numDocsMatched='0' or $numDocsReturned='0'"> 82 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.nodocsmatch')"/>81 <span class="getTextFor query.nodocsmatch"></span> 83 82 </xsl:when> 84 83 <xsl:when test="$numDocsMatched='1' or $numDocsReturned='1'"> 85 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.onedocsmatch')"/>84 <span class="getTextFor query.onedocsmatch"></span> 86 85 </xsl:when> 87 86 <xsl:when test="$numDocsMatched"> 88 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.manydocsmatch', $numDocsMatched)"/>89 <xsl:if test="$numDocsReturned"> (< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.docsreturned', $numDocsReturned)"/>)</xsl:if>87 <span><xsl:attribute name="class"><xsl:value-of select="concat('getTextFor null this.innerText.query.manydocsmatch|', $numDocsMatched)"/></xsl:attribute></span> 88 <xsl:if test="$numDocsReturned"> (<span><xsl:attribute name="class"><xsl:value-of select="concat('getTextFor null this.innerText.query.docsreturned|', $numDocsReturned)" /></xsl:attribute></span>)</xsl:if> 90 89 </xsl:when> 91 90 <xsl:when test="$numDocsReturned"> 92 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.atleastdocsmatch', $numDocsReturned)"/>91 <span><xsl:attribute name="class"><xsl:value-of select="concat('getTextFor null this.innerText.query.atleastdocsmatch|', $numDocsReturned)" /></xsl:attribute></span> 93 92 </xsl:when> 94 93 </xsl:choose> … … 136 135 <xsl:param name="serviceName"/> 137 136 <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="@nodeType='leaf'">&sib=1</xsl:if>&dt=<xsl:value-of select='@docType'/>&p.a=q&&p.sa=<xsl:value-of select="/page/pageRequest/@subaction"/>&p.s=<xsl:value-of select="$serviceName"/></xsl:attribute> 138 <xsl:apply-templates select="." mode="displayNodeIcon"/> 137 <xsl:apply-templates select="." mode="displayNodeIcon"/><xsl:text>sample</xsl:text> 139 138 </a> 140 <span><xsl: value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/></span>139 <span><xsl:text>Testing</xsl:text><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/></span> 141 140 </xsl:template> 142 141 … … 144 143 <div class="terminfo"> 145 144 <xsl:if test="count(termList/term) > 0"> 146 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.wordcount')"/>145 <span class="getTextFor query.wordcount">&nbsp;</span> 147 146 <xsl:for-each select="termList/term"> 148 147 <xsl:if test="position() > 1">, </xsl:if> -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/service-params.xsl
r19940 r24007 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 5 extension-element-prefixes="java"> 6 6 7 7 <!-- handling of the different types of params on a service form 8 - these now only output the selection box/text box etc, not the name -->9 8 - these now only output the selection box/text box etc, not the name --> 9 10 10 <!-- the default param list handling --> 11 11 <xsl:template match="paramList"> … … 13 13 <ul id="queryitemlist"> 14 14 <xsl:for-each select="param"> 15 16 17 18 19 20 21 22 23 15 <xsl:choose> 16 <xsl:when test="@type='multi'"> 17 <li><xsl:apply-templates select='.'><xsl:with-param name="ns" select="$ns"/></xsl:apply-templates></li> 18 </xsl:when> 19 <xsl:otherwise> 20 <xsl:variable name="pvalue"><xsl:apply-templates select="." mode="calculate-default"><xsl:with-param name="ns" select="$ns"/></xsl:apply-templates></xsl:variable> 21 <li><xsl:value-of select="displayItem[@name='name']"/><xsl:apply-templates select="."><xsl:with-param name="default" select="$pvalue"/><xsl:with-param name="ns" select="$ns"/></xsl:apply-templates></li> 22 </xsl:otherwise> 23 </xsl:choose> 24 24 </xsl:for-each> 25 25 </ul> … … 27 27 28 28 <!-- puts all the params into a=p&p=h type form - need to change this if use 29 multi params -->29 multi params --> 30 30 <xsl:template match="paramList" mode="cgi"> 31 31 <xsl:param name="ns">s1.</xsl:param> … … 35 35 </xsl:for-each> 36 36 </xsl:template> 37 37 38 38 <xsl:template match="param" mode="calculate-default"> 39 39 <xsl:param name="ns">s1.</xsl:param> … … 41 41 <xsl:choose> 42 42 <xsl:when test="/page/pageRequest/paramList/param[@name=$pname]"> 43 44 45 46 47 48 49 50 51 52 43 <xsl:choose> 44 <xsl:when test="@type='enum_multi'"><xsl:text>,</xsl:text> 45 <xsl:for-each select="/page/pageRequest/paramList/param[@name=$pname]"> 46 <xsl:value-of select="@value"/>, 47 </xsl:for-each> 48 </xsl:when> 49 <xsl:otherwise> 50 <xsl:value-of select="/page/pageRequest/paramList/param[@name=$pname]/@value"/> 51 </xsl:otherwise> 52 </xsl:choose> 53 53 </xsl:when> 54 54 <xsl:otherwise> 55 55 <xsl:value-of select="@default"/> 56 56 </xsl:otherwise> 57 57 </xsl:choose> 58 58 </xsl:template> 59 59 60 60 <!-- invisible params - used by other stuff. in the query form, we set to teh default --> 61 61 <xsl:template match="param[@type='invisible']"> 62 62 <xsl:param name="ns">s1.</xsl:param> 63 <input type='hidden' name=' {$ns}{@name}' value='{@default}'/>63 <input type='hidden' name='concat($ns, @name)' value='{@default}'/> 64 64 </xsl:template> 65 65 <!-- boolean params --> … … 67 67 <xsl:param name="ns">s1.</xsl:param> 68 68 <xsl:param name="default"/> 69 69 70 <select name='{$ns}{@name}'> 70 71 <option value="0"><xsl:if test="$default='0'"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="option[@name='0']/displayItem[@name='name']"/></option> … … 76 77 <xsl:template match="param[@type='integer']"> 77 78 <xsl:param name="ns">s1.</xsl:param> 78 <xsl:param name="default"/> 79 <xsl:param name="default"/> 80 79 81 <input type="text" name="{$ns}{@name}" size="3" value="{$default}"/> 80 82 </xsl:template> 81 83 82 84 <!-- single selection enum params --> 83 85 <xsl:template match="param[@type='enum_single']"> 84 86 <xsl:param name="ns">s1.</xsl:param> 85 87 <xsl:param name="default"/> 88 86 89 <xsl:choose> 87 90 <xsl:when test="count(option) = 1"> 88 89 91 <xsl:text> </xsl:text><xsl:value-of select="option/displayItem[@name='name']"/> 92 <input type='hidden' name='{$ns}{@name}'><xsl:attribute name='value'><xsl:value-of select='option/@name'/></xsl:attribute></input> 90 93 </xsl:when> 91 94 <xsl:otherwise> 92 <select name="{$ns}{@name}"> 93 <xsl:for-each select="option"> 94 <option value="{@name}"><xsl:if test="@name=$default"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="displayItem[@name='name']"/></option> 95 </xsl:for-each> 96 </select> 95 96 <select name="{$ns}{@name}"> 97 <xsl:for-each select="option"> 98 <option value="{@name}"><!--<xsl:if test="@name=$default"><xsl:attribute name="selected"></xsl:attribute></xsl:if>--><xsl:value-of select="displayItem[@name='name']"/></option> 99 </xsl:for-each> 100 </select> 97 101 </xsl:otherwise> 98 102 </xsl:choose> 99 103 </xsl:template> 100 101 104 105 102 106 <!-- multiple selection enum params --> 103 107 <!-- how to do defaults for this?? --> 108 <!-- Don't need to do anything here, handled automatically in the list --> 104 109 <xsl:template match="param[@type='enum_multi']"> 105 110 <xsl:param name="ns">s1.</xsl:param> … … 107 112 <select name="{$ns}{@name}" size='2'><xsl:attribute name="multiple"></xsl:attribute> 108 113 <xsl:for-each select="option"> 109 114 <option value="{@name}"><xsl:if test="contains($default, concat(',', @name, ','))"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="displayItem[@name='name']"/></option> 110 115 </xsl:for-each> 111 116 </select> … … 116 121 <xsl:param name="ns">s1.</xsl:param> 117 122 <xsl:param name="default"/> 123 118 124 <input type="text" name="{$ns}{@name}" size="50" value="{$default}"/> 119 125 </xsl:template> … … 122 128 <xsl:template match="param[@type='text']"> 123 129 <xsl:param name="ns">s1.</xsl:param> 124 <xsl:param name="default"/> 130 <xsl:param name="default"/> 131 125 132 <textarea name="{$ns}{@name}" cols="50" rows="3"><xsl:value-of select='$default'/></textarea> 126 133 </xsl:template> 127 134 128 135 <!-- multi params - params that are combinations of other params --> 129 136 <xsl:template match="param[@type='multi']"> … … 132 139 <table> 133 140 <tr class="queryfieldheading"><xsl:value-of select="displayItem[@name='name']"/> 134 135 136 141 <xsl:for-each select="param"> 142 <td class="queryfieldname"><xsl:value-of select="displayItem[@name='name']"/></td> 143 </xsl:for-each> 137 144 </tr> 138 145 … … 140 147 </table> 141 148 </xsl:template> 142 149 143 150 <xsl:template match="param[@type='multi']" mode="contents"> 144 151 <xsl:param name="ns">s1.</xsl:param> … … 146 153 <xsl:variable name="pos" select="@occurs - $occurs"/> 147 154 <tr class="queryfieldrow"><xsl:for-each select="param"> 148 149 150 151 152 <xsl:apply-templates select='.'><xsl:with-param name="default" select="java:org.greenstone.gsdl3.util.XSLTUtil.getNumberedItem($values, $pos)"/><xsl:with-param name="ns" select="$ns"/></xsl:apply-templates>153 154 155 156 157 158 155 <xsl:variable name="pname" select="@name"/> 156 <xsl:variable name="values" select="/page/pageRequest/paramList/param[@name=$pname]/@value"/> 157 <td class="queryfieldcell"><xsl:choose> 158 <xsl:when test="not(@ignore) or @ignore != $pos"> 159 <xsl:apply-templates select='.'><xsl:with-param name="default" select="$values|$pos"/><xsl:with-param name="ns" select="$ns"/></xsl:apply-templates> 160 </xsl:when> 161 <xsl:otherwise><!-- put in a hidden placeholder --> 162 <input type="hidden" name='{$ns}{@name}' value=''/> 163 </xsl:otherwise> 164 </xsl:choose></td> 165 </xsl:for-each></tr> 159 166 <!-- recursively call this template to get multiple entries --> 160 167 <xsl:if test="$occurs > 1"> … … 162 169 </xsl:if> 163 170 </xsl:template> 164 171 165 172 166 173 </xsl:stylesheet> 167 174 168 175 <!-- a param list that puts params in pairs- wont work as is with new 169 176 param handling stuff --> 170 177 <!-- 171 178 <xsl:template match="paramList"> 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 179 <p/><table width="537"> 180 <xsl:choose> 181 <xsl:when test='count(param)>4'> 182 <xsl:for-each select="param[position() mod 2 = 1]"> 183 <tr><xsl:apply-templates select="."/> 184 <xsl:if test="following-sibling::param[1]"><xsl:apply-templates select='following-sibling::param[1]'/></xsl:if></tr> 185 </xsl:for-each> 186 </xsl:when> 187 <xsl:otherwise> 188 <xsl:for-each select="param"> 189 <tr><xsl:apply-templates select='.'/></tr> 190 </xsl:for-each> 191 </xsl:otherwise> 192 </xsl:choose> 193 </table> 187 194 </xsl:template> 188 195 --> -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/style.xsl
r21282 r24007 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 2 <xsl:stylesheet version="1.0" 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 xmlns:java="http://xml.apache.org/xslt/java" 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 extension-element-prefixes="java util" 7 exclude-result-prefixes="java util"> 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 8 4 9 5 <xsl:include href="icons.xsl"/> … … 23 19 <script language="Javascript"> 24 20 <xsl:text disable-output-escaping="yes"> 25 function removeAllChildren(node) { 26 while (node.hasChildNodes()) { 27 node.removeChild(node.firstChild); 28 } 21 function removeAllChildren(node) { 22 while (node.hasChildNodes()) { 23 node.removeChild(node.firstChild); 29 24 } 25 } 30 26 31 27 function toggleHideError(obj) { 32 if (obj.style.display == "none") { 33 obj.style.display = ""; 34 hide_link = document.getElementById("hide"); 35 removeAllChildren(hide_link); 36 hide_link.appendChild(document.createTextNode("</xsl:text><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'hide_error')"/><xsl:text disable-output-escaping="yes">")); 37 } else { 38 obj.style.display = "none"; 39 hide_link = document.getElementById("hide"); 40 removeAllChildren(hide_link); 41 hide_link.appendChild(document.createTextNode("</xsl:text><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'show_error')"/><xsl:text disable-output-escaping="yes">")); 42 } 28 if (obj.style.display == "none") { 29 obj.style.display = ""; 30 hide_link = document.getElementById("hide"); 31 removeAllChildren(hide_link); 32 var theText = getText('hide_error', null); 33 alert(theText); 34 var hide_text = document.createTextNode(theText); 35 hide_link.appendChild(hide_text)); 36 } else { 37 obj.style.display = "none"; 38 hide_link = document.getElementById("hide"); 39 removeAllChildren(hide_link); 40 var theText = getText('show_error', null); 41 alert(theText); 42 var show_text = document.createTextNode(theText); 43 hide_link.appendChild(show_text); 44 } 43 45 } 44 46 </xsl:text> 45 47 </script> 46 <p align='right'><a id="hide" href="javascript:toggleHideError( error);"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'show_error')"/></a></p>48 <p align='right'><a id="hide" href="javascript:toggleHideError($('#error'));"><xsl:call-template name="getTextFor"><xsl:with-param name="key" select="'show_error'" /><xsl:with-param name="affect" select="''" /></xsl:call-template></a></p> 47 49 <div id="error" style="display: none;"> 48 50 <xsl:apply-templates select="descendant::error"/> … … 54 56 <div id="footer"> 55 57 <xsl:call-template name="dividerBar"> 56 <xsl:with-param name="text" select="util:getInterfaceText($interface_name, /page/@lang, 'gs3power')"/> 58 <xsl:with-param name="text"><xsl:text>powered-by</xsl:text></xsl:with-param> 57 59 </xsl:call-template> 60 <script type="text/javascript">var placeholder = false;</script> 61 <script type="text/javascript" src="jquery.js"> 62 <xsl:comment>Filler for browser</xsl:comment> 63 </script> 64 <script type="text/javascript" src="test.js"> 65 <xsl:comment>Filler for browser</xsl:comment> 66 </script> 58 67 </div> 59 68 </xsl:template> 60 69 61 70 <xsl:template match="error"> 62 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'error')"/> <xsl:value-of select="."/>71 <span class="getTextFor error"></span> <xsl:value-of select="."/> 63 72 </xsl:template> 64 73 … … 67 76 <xsl:param name="pageType"/> 68 77 <xsl:variable name="this-element" select="/page/pageResponse/collection|/page/pageResponse/serviceCluster"/> 69 <div id="banner"> 78 <div id="loading" style="display: none; position: fixed; top: 0; right: 0; padding: 10px;"><img src="interfaces/default/images/loading.gif" alt="Loading interface..." /></div> 79 <span id="language" style="display: none;"><xsl:value-of select="/page/@lang" /></span> 80 <span id="interface" style="display: none;"><xsl:value-of select="$interface_name" /></span> 81 <div id="banner"> 70 82 <p> 71 83 <a href="{$library_name}?a=p&sa=about&c={$collName}"> … … 78 90 <xsl:attribute name="alt"> 79 91 <xsl:value-of select="$this-element/displayItem[@name='name']"/> 80 </xsl:attribute> 81 <xsl:attribute name="title"> 82 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'aboutpage')"/> 83 </xsl:attribute> 84 </img> 92 </xsl:attribute></img> 85 93 </xsl:when> 86 94 <xsl:otherwise> … … 90 98 </a> 91 99 </p> 100 <xsl:call-template name="getTextFor"> 101 <xsl:with-param name="key" select="'null'" /> 102 <xsl:with-param name="affect" select="'parent.title.aboutpage'" /> 103 <xsl:with-param name="display" select="'none'" /> 104 </xsl:call-template> 92 105 <ul id="bannerlist"> 93 106 <xsl:call-template name="top-buttons"> … … 102 115 <xsl:param name="collName"/> 103 116 <xsl:param name="pageType"/> 104 <li><a href="{$library_name}?a=p&sa=home"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_tip')"/></xsl:attribute> 105 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/> 117 <li><a href="{$library_name}?a=p&sa=home"> 118 <xsl:call-template name="getTextFor"> 119 <xsl:with-param name="key" select="'home_b'" /> 120 <xsl:with-param name="parentTip" select="'home_tip'" /> 121 </xsl:call-template> 106 122 </a></li> 107 123 <xsl:choose> 108 124 <xsl:when test="$pageType='help'"> 109 <li><a><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></a></li> 110 </xsl:when> 111 <xsl:otherwise> 112 <li><a href="{$library_name}?a=p&sa=help&c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute> 113 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/> 125 <li><a> 126 <xsl:call-template name="getTextFor"> 127 <xsl:with-param name="key" select="'help_b'" /> 128 <xsl:with-param name="affect" select="'parent.title.help_tip'" /> 129 </xsl:call-template> 130 </a></li> 131 </xsl:when> 132 <xsl:otherwise> 133 <li><a href="{$library_name}?a=p&sa=help&c={$collName}"> 134 <xsl:call-template name="getTextFor"> 135 <xsl:with-param name="key" select="'help_b'" /> 136 <xsl:with-param name="affect" select="'parent.title.help_tip'" /> 137 </xsl:call-template> 114 138 </a></li> 115 139 </xsl:otherwise> … … 117 141 <xsl:choose> 118 142 <xsl:when test="$pageType='pref'"> 119 <li><a><xsl: value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/></a></li>120 </xsl:when> 121 <xsl:otherwise> 122 <li><a href="{$library_name}?a=p&sa=pref&c={$collName}"> <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_tip')"/></xsl:attribute>123 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/>143 <li><a><xsl:call-template name="getTextFor"><xsl:with-param name="key" select="'pref_b'" /><xsl:with-param name="affect" select="''" /></xsl:call-template></a></li> 144 </xsl:when> 145 <xsl:otherwise> 146 <li><a href="{$library_name}?a=p&sa=pref&c={$collName}"> 147 <xsl:call-template name="getTextFor"><xsl:with-param name="key" select="'pref_b'" /><xsl:with-param name="affect" select="'parent.title.pref_tip'" /></xsl:call-template> 124 148 </a></li> 125 149 </xsl:otherwise> 126 150 </xsl:choose> 151 </xsl:template> 152 153 <xsl:template name="getTextFor"> 154 <xsl:param name="key" /> 155 <xsl:param name="affect" /> 156 <xsl:param name="display" select="'yes'" /> 157 158 <xsl:variable name="extra"> 159 <xsl:choose> 160 <xsl:when test="$affect!=''"> 161 <xsl:text> </xsl:text> 162 <xsl:value-of select="$affect" /> 163 </xsl:when> 164 <xsl:otherwise> 165 <xsl:value-of select="' '" /> 166 </xsl:otherwise> 167 </xsl:choose> 168 </xsl:variable> 169 170 <span class="getTextFor {$key}{$extra}"><xsl:if test="$display='none'"><xsl:attribute name="style"><xsl:text>display: </xsl:text><xsl:value-of select="$display" /><xsl:text>;</xsl:text></xsl:attribute></xsl:if><xsl:value-of select="$key" /></span> 127 171 </xsl:template> 128 172 … … 170 214 <xsl:choose> 171 215 <xsl:when test="$text"> 172 <div class="divbar"><xsl:value-of select="$text"/></div>173 </xsl:when> 174 <xsl:otherwise> 175 <div class="divbar"><xsl:text disable-output-escaping="yes">& amp;nbsp;</xsl:text></div>216 <div class="divbar"><xsl:choose><xsl:when test="$text='powered-by'"><span class="getTextFor gs3power">&nbsp;</span></xsl:when><xsl:when test="$text='query.results'"><span class="getTextFor query.results">&nbsp;</span></xsl:when><xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise></xsl:choose></div> 217 </xsl:when> 218 <xsl:otherwise> 219 <div class="divbar"><xsl:text disable-output-escaping="yes"> </xsl:text></div> 176 220 </xsl:otherwise> 177 221 </xsl:choose> 178 222 </xsl:template> 179 180 223 181 224 <xsl:template name="direction"> 182 225 <xsl:if test="/page/@lang='ar' or /page/@lang='fa' or /page/@lang='he' or /page/@lang='ur' or /page/@lang='ps' or /page/@lang='prs'">rtl</xsl:if> -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/system.xsl
r18388 r24007 14 14 <title> 15 15 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 16 <xsl: call-template name="pageTitle"/><xsl:text> </xsl:text>16 <xsl:text> </xsl:text> 17 17 </title> 18 18 <xsl:call-template name="globalStyle"/> … … 24 24 <xsl:call-template name="response" /> 25 25 <xsl:call-template name="greenstoneFooter"/> 26 <xsl:call-template name="pageTitle"/> 26 27 </div> 27 28 </body> … … 30 31 31 32 <xsl:template name="pageTitle"> 32 < xsl:value-of select="java:org.greenstone.gsdl3.util.XSLTUtil.getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>33 <span class="getTextFor null document.title.gsdl">&nbsp;</span> 33 34 </xsl:template> 34 35 -
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/default/transform/util.xsl
r23336 r24007 4 4 xmlns:gslib="http://www.greenstone.org/XSL/Library" 5 5 xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" 6 xmlns:util="http://org.greenstone.gsdl3.util.XSLTUtil" 7 exclude-result-prefixes="util gslib gsf"> 6 exclude-result-prefixes="gslib gsf"> 8 7 9 8 <!-- some global parameters - these are set by whoever is invoking the transformation --> … … 11 10 <xsl:param name="library_name"/> 12 11 12 <!-- Get rid of XSLT parameters from view --> 13 <xsl:template match="xsltparams/param"> 14 <xsl:text></xsl:text> 15 </xsl:template> 16 13 17 <!-- every pages ................................................. --> 14 18 … … 60 64 hide_link = document.getElementById("hide"); 61 65 removeAllChildren(hide_link); 62 hide_link.appendChild(document.createTextNode("</xsl:text><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'hide_error')"/><xsl:text disable-output-escaping="yes">")); 66 var theText = getText('hide_error', null); 67 var hide_text = document.createTextNode(theText); 68 hide_link.appendChild(hide_text)); 63 69 } else { 64 70 obj.style.display = "none"; 65 71 hide_link = document.getElementById("hide"); 66 72 removeAllChildren(hide_link); 67 hide_link.appendChild(document.createTextNode("</xsl:text><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'show_error')"/><xsl:text disable-output-escaping="yes">")); 73 var theText = getText('show_error', null); 74 var show_text = document.createTextNode(theText); 75 hide_link.appendChild(show_text); 68 76 } 69 77 } 70 78 </xsl:text> 71 79 </script> 72 <p align='right'><a id="hide" href="javascript:toggleHideError(error);">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'show_error')"/></a></p>80 <p align='right'><a id="hide" href="javascript:toggleHideError(error);"></a></p> 73 81 <div id="error" style="display: none;"> 74 82 <xsl:apply-templates select="descendant::error"/> … … 84 92 85 93 <xsl:template name="poweredByGS3TextBar"> 86 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gs3power')"/>94 <span class="getTextFor gs3power">&nbsp;</span> 87 95 </xsl:template> 88 96 … … 92 100 <xsl:template name="siteHomePageTitle"> 93 101 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 94 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/><xsl:text> </xsl:text>102 <span class="getTextFor gsdl">&nbsp;</span><xsl:text> </xsl:text> 95 103 </xsl:template> 96 104 97 105 98 106 <xsl:template name="selectACollectionTextBar"> 99 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.select_a_collection')"/>107 <span class="getTextFor home.select_a_collection">&nbsp;</span> 100 108 </xsl:template> 101 109 … … 112 120 <input type="hidden" name="s1.collection" value="all"/> 113 121 <input type="text" name="s1.query" size="20"/> 114 <input type="submit" ><xsl:attribute name="value"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.quick_search')"/></xsl:attribute></input>122 <input type="submit" class="getTextFor null this.value.home.quick_search" /> 115 123 </form> 116 124 </xsl:template> … … 162 170 163 171 <xsl:template name="libraryInterfaceLink"> 164 <li><a href="{$library_name}?a=p&sa=gli4gs3">< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.librarian_interface')"/></a></li>172 <li><a href="{$library_name}?a=p&sa=gli4gs3"><span class="getTextFor home.librarian_interface">&nbsp;</span></a></li> 165 173 </xsl:template> 166 167 168 <xsl:template name="greenstoneLogoAlternateText">169 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>170 </xsl:template>171 174 172 175 <!-- about page - collection home ......................... --> … … 177 180 <xsl:variable name="this-service" select="/page/pageResponse/service/@name"/> 178 181 179 180 182 <xsl:template name="aboutCollectionPageTitle"> 181 183 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> … … 188 190 <xsl:choose> 189 191 <xsl:when test="$this-element/displayItem[@name='icon']"> 190 <img border="0" >192 <img border="0" class="getTextFor null this.title.aboutpage"> 191 193 <xsl:attribute name="src"> 192 194 <xsl:value-of select="$this-element/metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="$this-element/displayItem[@name='icon']"/> … … 194 196 <xsl:attribute name="alt"> 195 197 <xsl:value-of select="$this-element/displayItem[@name='name']"/> 196 </xsl:attribute>197 <xsl:attribute name="title">198 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'aboutpage')"/>199 198 </xsl:attribute> 200 199 </img> … … 209 208 210 209 <xsl:template name="homeButtonTop"> 211 <a href="{$library_name}?a=p&sa=home"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_tip')"/></xsl:attribute> 212 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/></a> 210 <a href="{$library_name}?a=p&sa=home" class="getTextFor home_b this.title.home_tip">&nbsp;</a> 213 211 </xsl:template> 214 212 … … 217 215 <xsl:choose> 218 216 <xsl:when test="$pageType='help'"> 219 <li><a><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></a></li> 220 </xsl:when> 221 <xsl:otherwise> 222 <li><a href="{$library_name}?a=p&sa=help&c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute> 223 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/> 224 </a></li> 217 <li><a class="getTextFor help_b"></a></li> 218 </xsl:when> 219 <xsl:otherwise> 220 <li><a href="{$library_name}?a=p&sa=help&c={$collName}" class="getTextFor help_b this.title.help_tip">&nbsp;</a></li> 225 221 </xsl:otherwise> 226 222 </xsl:choose> … … 231 227 <xsl:choose> 232 228 <xsl:when test="$pageType='pref'"> 233 <li><a><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/></a></li> 234 </xsl:when> 235 <xsl:otherwise> 236 <li><a href="{$library_name}?a=p&sa=pref&c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_tip')"/></xsl:attribute> 237 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/> 238 </a></li> 229 <li><a class="getTextFor pref_b">&nbsp;</a></li> 230 </xsl:when> 231 <xsl:otherwise> 232 <li><a href="{$library_name}?a=p&sa=pref&c={$collName}" class="getTextFor pref_b this.title.pref_tip">&nbsp;</a></li> 239 233 </xsl:otherwise> 240 234 </xsl:choose> … … 279 273 <xsl:template match="serviceList"> 280 274 <xsl:param name="collName"/> 281 <h3 ><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.services')"/></h3>275 <h3 class="getTextFor about.services">&nbsp;</h3> 282 276 <xsl:choose> 283 277 <xsl:when test="service"> 284 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.servicehelp')"/>285 </xsl:when> 286 <xsl:otherwise> 287 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.noservices')"/>278 <span class="getTextFor about.servicehelp">&nbsp;</span> 279 </xsl:when> 280 <xsl:otherwise> 281 <span class="getTextFor about.noservices">&nbsp;</span> 288 282 </xsl:otherwise> 289 283 </xsl:choose>
Note:
See TracChangeset
for help on using the changeset viewer.