Changeset 18318 for greenstone3/trunk/web/interfaces/gs2
- Timestamp:
- 2009-01-06T14:52:16+13:00 (15 years ago)
- Location:
- greenstone3/trunk/web/interfaces/gs2/transform
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/web/interfaces/gs2/transform/about.xsl
r17019 r18318 14 14 <xsl:output method="html"/> 15 15 16 16 <!-- the main page layout template is here --> 17 17 <xsl:template match="page"> 18 18 <html> 19 <head>20 21 <!-- 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>23 24 25 26 </head>19 <head> 20 <title> 21 <!-- 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> 23 </title> 24 <xsl:call-template name="globalStyle"/> 25 <xsl:call-template name="pageStyle"/> 26 </head> 27 27 <body class="bgimage"> 28 28 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute> 29 29 <div id="page"> 30 31 30 <xsl:apply-templates select="pageResponse"/> 31 <xsl:call-template name="greenstoneFooter"/> 32 32 </div> 33 33 </body> … … 45 45 <xsl:template match="pageResponse"> 46 46 <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/> 47 47 <xsl:apply-templates select="collection"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates> 48 48 49 49 </xsl:template> … … 59 59 </xsl:call-template> 60 60 <div class="document"> 61 <xsl:if test="/page/pageRequest/paramList/param[@name='ct']/@value = 0">62 63 64 65 </xsl:if>61 <xsl:if test="/page/pageRequest/paramList/param[@name='ct']/@value = 0"> 62 <xsl:apply-templates select="serviceList/service[@name='TextQuery']"> 63 <xsl:with-param name="collName" select="$collName"/></xsl:apply-templates> 64 <xsl:call-template name="dividerBar"/> 65 </xsl:if> 66 66 </div> 67 67 <div> 68 <xsl:if test="displayItem[@name='description']">69 70 71 </xsl:if>72 <xsl:apply-templates select="." mode="simplehelp"/>68 <xsl:if test="displayItem[@name='description']"> 69 <h3><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.aboutcoll')"/></h3> 70 <p><xsl:value-of select="displayItem[@name='description']" disable-output-escaping='yes'/></p> 71 </xsl:if> 72 <xsl:apply-templates select="." mode="simplehelp"/> 73 73 </div> 74 74 </xsl:template> -
greenstone3/trunk/web/interfaces/gs2/transform/applet.xsl
r17019 r18318 12 12 <xsl:output method="html"/> 13 13 14 14 <!-- the main page layout template is here --> 15 15 <xsl:template match="page"> 16 16 <html> 17 <head>18 19 <!-- 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>21 22 23 24 </head>17 <head> 18 <title> 19 <!-- 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> 21 </title> 22 <xsl:call-template name="globalStyle"/> 23 <xsl:call-template name="pageStyle"/> 24 </head> 25 25 <body class="bgimage"> 26 26 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute> 27 27 <div id="page"> 28 29 28 <xsl:apply-templates select="pageResponse"/> 29 <xsl:call-template name="greenstoneFooter"/> 30 30 </div> 31 31 </body> … … 48 48 </xsl:call-template> 49 49 <p/> 50 <xsl:call-template name="navigationBar">51 52 </xsl:call-template>53 <!-- <xsl:call-template name="dividerBar">54 55 50 <xsl:call-template name="navigationBar"> 51 <xsl:with-param name="collName" select="$collName"/> 52 </xsl:call-template> 53 <!-- <xsl:call-template name="dividerBar"> 54 <xsl:with-param name="text" select="service/displayItem[@name='name']"/> 55 </xsl:call-template>--> 56 56 <p/> 57 57 <xsl:copy-of select="service/applet"/> -
greenstone3/trunk/web/interfaces/gs2/transform/authen.xsl
r17019 r18318 13 13 <xsl:output method="html"/> 14 14 15 15 <!-- the main page layout template is here --> 16 16 <xsl:template match="page"> 17 17 <html> 18 <head>19 20 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->21 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>22 23 24 25 </head>18 <head> 19 <title> 20 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 21 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text> 22 </title> 23 <xsl:call-template name="globalStyle"/> 24 <xsl:call-template name="pageStyle"/> 25 </head> 26 26 <body class="bgimage"> 27 27 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute> 28 28 <div id="page"> 29 30 29 <xsl:apply-templates select="pageResponse"/> 30 <xsl:call-template name="greenstoneFooter"/> 31 31 </div> 32 32 </body> … … 40 40 </xsl:template> 41 41 42 <xsl:template name="pageStyle"/>42 <xsl:template name="pageStyle"/> 43 43 44 44 <xsl:template match="page"> … … 67 67 <td><xsl:if test="$un_s!=''"> 68 68 <xsl:if test="$asn!='' and $asn!='0'"> 69 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username')"/> : <xsl:value-of select="$un_s"/>69 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username')"/> : <xsl:value-of select="$un_s"/> 70 70 </xsl:if> 71 71 </xsl:if></td> … … 75 75 76 76 <div id="navbar"> 77 77 78 78 <ul id="navbarlist"> 79 79 <!--greenstone home--> … … 85 85 <xsl:when test="$asn!='' and $asn!='0' and $un_s!=''"> 86 86 <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> 87 88 89 <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>90 91 87 </xsl:when> 88 <xsl:otherwise> 89 <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> 90 </xsl:otherwise> 91 </xsl:choose></li> 92 92 93 93 <!--add a new user--> … … 102 102 </xsl:choose> 103 103 </li> 104 104 105 105 <!-- change password--> 106 106 <li> … … 140 140 <xsl:otherwise> 141 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 142 <p align="left"> 143 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.login_descibe_line_3')"/><br/></p> 144 <xsl:if test="$err='un-pw-err'"> 145 <p align="left"><font color='red'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.wrong_password_warning')"/></font></p> 146 </xsl:if> 147 <xsl:if test="$err='no-permission' and $info='Login'"> 148 <p align="left"><font color='red'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.no_permission')"/></font></p> 149 </xsl:if> 150 <xsl:if test="$err='as-false'"> 151 <p align="left"><font color='red'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.account_status_false')"/></font></p> 152 </xsl:if> 153 <xsl:call-template name="login"> 154 <xsl:with-param name="sub_action" select="$sub_action"/> 155 <xsl:with-param name="authen_service" select="$authen_service"/> 156 <xsl:with-param name="pro_action" select="$pro_action"/> 157 </xsl:call-template> 158 158 159 159 </xsl:otherwise> 160 </xsl:choose>160 </xsl:choose> 161 161 </xsl:if> 162 162 … … 181 181 <xsl:if test="$pro_action='AddUser'"> 182 182 <xsl:if test="$err!='' and $err!='no-permission' and $err!='un-exist' and $err!='un-err' and $err!='pw-err'"> 183 183 <p align="left"><font color='red'><xsl:value-of select="$err" /></font></p> 184 184 </xsl:if> 185 185 … … 187 187 <p align="left"> 188 188 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.login_descibe_line_2')"/><br/> 189 </p>189 </p> 190 190 <xsl:if test="$err='no-permission'"> 191 191 <p align="left"><font color='red'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.no_permission')"/></font></p> … … 206 206 <p align="left"><font color="red"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.unsername_err')"/></font></p> 207 207 </xsl:if> 208 <xsl:if test="$err='un-exist'">208 <xsl:if test="$err='un-exist'"> 209 209 <p align="left"><font color='red'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.user_has_existed')"/></font></p> 210 210 </xsl:if> … … 308 308 <p align="left"><font color="red"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password_initial')"/></font></p> 309 309 </xsl:if> 310 310 <xsl:if test="$err='un-exist'"> 311 311 <p align="left"><font color='red'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.user_has_existed')"/></font></p> 312 312 </xsl:if> … … 346 346 </xsl:template> 347 347 348 <!--template name="login"-->348 <!--template name="login"--> 349 349 <xsl:template name="login"> 350 350 <xsl:param name="sub_action"/> … … 376 376 <input type="submit" value="submit"></input></td> 377 377 </tr> 378 378 </table> 379 379 </form> 380 380 </div> 381 381 </xsl:template> 382 382 383 <!--template name="listusers"-->383 <!--template name="listusers"--> 384 384 <xsl:template name="listusers" > 385 <h2 align="left"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.list_of_current_users_title')"/></h2>385 <h2 align="left"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.list_of_current_users_title')"/></h2> 386 386 387 387 <table id='mainTable' align="left" border="0" cellspacing="1" cellpadding="3" width="100%" > … … 394 394 </tr> 395 395 <xsl:for-each select="/page/pageResponse/authenticationNode/service/userNodeList/userNode"> 396 397 <td bgcolor="#eeeeee"><xsl:value-of select="@umun"/></td>398 <td id="status" bgcolor="#eeeeee">396 <tr> 397 <td bgcolor="#eeeeee"><xsl:value-of select="@umun"/></td> 398 <td id="status" bgcolor="#eeeeee"> 399 399 <script type="text/javascript"> 400 400 <xsl:text disable-output-escaping="yes"> 401 401 var status="</xsl:text><xsl:value-of select="@umas"/><xsl:text disable-output-escaping="yes">"; 402 402 if (status=="true"){ 403 403 document.getElementById("status").innerHTML="enabled"; 404 404 } 405 405 if (status=="false"){ 406 406 document.getElementById("status").innerHTML="disabled"; 407 407 } 408 408 </xsl:text> 409 409 </script> 410 410 </td> 411 <td id="group" bgcolor="#eeeeee">412 411 <td id="group" bgcolor="#eeeeee"> 412 <script type="text/javascript"> 413 413 <xsl:text disable-output-escaping="yes"> 414 414 var groups="</xsl:text><xsl:value-of select="@umgp"/><xsl:text disable-output-escaping="yes">"; … … 416 416 var new_groups=""; 417 417 for (j=0; j < split_groups.length ; j++){ 418 419 420 418 new_groups+=split_groups[j]+" <br /> "; 419 } 420 document.getElementById('group').innerHTML=new_groups; 421 421 </xsl:text> 422 422 </script> 423 423 </td> 424 <td bgcolor="#eeeeee"><xsl:value-of select="@umc"/></td>425 <td bgcolor="#eeeeee">424 <td bgcolor="#eeeeee"><xsl:value-of select="@umc"/></td> 425 <td bgcolor="#eeeeee"> 426 426 <form name="ListUsersForm" method="get" action="{$library_name}"> 427 427 <input type='hidden' name='a' value='g'/> … … 439 439 <input type="submit"><xsl:attribute name="name">s1.aup</xsl:attribute><xsl:attribute name="value">DeleteUser</xsl:attribute></input> 440 440 </form> 441 </td>441 </td> 442 442 </tr> 443 443 </xsl:for-each> 444 444 </table> 445 445 </xsl:template> 446 446 447 <!--template name="modifypassword"-->448 <xsl:template name="modifypassword" >447 <!--template name="modifypassword"--> 448 <xsl:template name="modifypassword" > 449 449 <xsl:param name="sub_action"/> 450 450 <xsl:param name="authen_service"/> … … 466 466 467 467 <table align="center"><tr><td align="right"> 468 <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>468 <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> 469 469 <tr><td align="right"> 470 <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>470 <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> 471 471 <tr><td align="right"> 472 <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>472 <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> 473 473 <tr><td></td><td> 474 <input type="submit" value="submit"></input></td>475 476 477 478 479 </xsl:template> 480 481 <!--template name="deleteuser"-->474 <input type="submit" value="submit"></input></td> 475 </tr> 476 </table> 477 </form> 478 </div> 479 </xsl:template> 480 481 <!--template name="deleteuser"--> 482 482 <xsl:template name="deleteuser"> 483 483 <xsl:param name="sub_action"/> … … 504 504 </xsl:template> 505 505 506 <!--template name="edituser"-->506 <!--template name="edituser"--> 507 507 <xsl:template name="edituser" > 508 508 <xsl:param name="sub_action"/> … … 556 556 <td align="right"> <select id="groups" size="0"> 557 557 <script type="text/javascript"> 558 558 <xsl:text disable-output-escaping="yes"> 559 559 var group_arr=Array("administrator","all-collections-editor","personal-collections-editor"); 560 560 var group_string=document.getElementById("group").value; … … 562 562 var find=0; 563 563 for (i=0; i < group_arr.length; i++){ 564 565 566 567 568 569 570 571 572 573 574 575 564 find=0; 565 for (j=0; j < group_arr.length; j++){ 566 if (split_group_string[j]==group_arr[i]){ 567 find=1; 568 } 569 } 570 if (find==0){ 571 op = document.createElement('option'); 572 op.innerHTML = group_arr[i]; 573 op.setAttribute("value", group_arr[i]); 574 document.getElementById("groups").appendChild(op); 575 } 576 576 } 577 577 578 578 </xsl:text> 579 579 </script> … … 592 592 var find=0; 593 593 for (i=0; i < split_group_string.length; i++){ 594 595 596 594 if (split_group_string[i]==group){ 595 find=1; 596 } 597 597 } 598 598 if (find==0){ 599 600 601 602 599 op = document.createElement('option'); 600 op.innerHTML = group; 601 op.setAttribute("value", group); 602 document.getElementById("collects").appendChild(op); 603 603 } 604 604 </xsl:text> 605 605 </script> 606 606 </xsl:for-each> 607 607 </select> 608 608 </td> … … 612 612 <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"/> 613 613 614 </textarea></div></td></tr>614 </textarea></div></td></tr> 615 615 <tr> 616 616 617 <td></td><td>617 <td></td><td> 618 618 <input type="submit" value="submit"><xsl:attribute name="name">s1.cm</xsl:attribute></input> 619 620 621 619 <xsl:if test="$pro_action!='AddUser'"> 620 <input type="submit" value="cancel"><xsl:attribute name="name">s1.cm</xsl:attribute></input> 621 </xsl:if> 622 622 </td><td></td></tr> 623 623 </table> … … 627 627 </xsl:template> 628 628 629 <!-- addGroup() javascript -->629 <!-- addGroup() javascript --> 630 630 <xsl:template name="addGroup"> 631 631 <script type="text/javascript"> 632 632 <xsl:text disable-output-escaping="yes"> 633 633 function addGroup(g){ 634 635 636 637 638 if (document.getElementById("editForm")!=null){634 var itemSelected; 635 var splitGroup; 636 var groupExit; 637 638 if (document.getElementById("editForm")!=null){ 639 639 //itemSelected=document.getElementById("editForm").groups.options.selectedIndex; 640 640 itemSelected=document.getElementById(g).options.selectedIndex; 641 641 if (document.getElementById(g).options[itemSelected].text!=""){ 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 }659 }642 if (document.getElementById("group").value==""){ 643 document.getElementById("group").value=document.getElementById("group").value+document.getElementById(g).options[itemSelected].text; 644 }else{ 645 splitGroup=document.getElementById("group").value.split(","); 646 for (var i=0; i < splitGroup.length; i++){ 647 if (splitGroup[i]==document.getElementById(g).options[itemSelected].text){ 648 alert(document.getElementById(g).options[itemSelected].text + " has been added."); 649 groupExit=1; 650 break; 651 } 652 } 653 if (groupExit!=1) { 654 document.getElementById("group").value=document.getElementById("group").value+","+document.getElementById(g).options[itemSelected].text; 655 } 656 } 657 document.getElementById(g).options[itemSelected]=new Option("",itemSelected); 658 } 659 } 660 660 } 661 661 </xsl:text> -
greenstone3/trunk/web/interfaces/gs2/transform/classifier.xsl
r17019 r18318 16 16 <xsl:template match="page"> 17 17 <html> 18 <head>19 20 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->21 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>22 23 24 25 </head>18 <head> 19 <title> 20 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 21 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text> 22 </title> 23 <xsl:call-template name="globalStyle"/> 24 <xsl:call-template name="pageStyle"/> 25 </head> 26 26 <body class="bgimage"> 27 27 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute> 28 28 <div id="page"> 29 30 29 <xsl:apply-templates select="pageResponse"/> 30 <xsl:call-template name="greenstoneFooter"/> 31 31 </div> 32 32 </body> … … 53 53 </xsl:choose> 54 54 </xsl:variable> 55 56 57 58 59 60 61 62 63 64 55 <xsl:call-template name="standardPageBanner"> 56 <xsl:with-param name="collName" select="$collName"/> 57 <xsl:with-param name="pageType">browse</xsl:with-param> 58 <xsl:with-param name="clTop" select="$clTop"/> 59 </xsl:call-template> 60 <xsl:call-template name="navigationBar"> 61 <xsl:with-param name="collName" select="$collName"/> 62 <xsl:with-param name="clTop" select="$clTop"/> 63 </xsl:call-template> 64 <div class="document"> 65 65 <xsl:apply-templates select="classifier"> 66 66 <xsl:with-param name="collName" select="$collName"/> 67 67 <xsl:with-param name="serviceName" select="$serviceName"/> 68 68 </xsl:apply-templates> 69 69 </div> 70 70 </xsl:template> 71 71 -
greenstone3/trunk/web/interfaces/gs2/transform/document.xsl
r18315 r18318 13 13 <xsl:output method="html"/> 14 14 15 16 17 15 <!-- the main page layout template is here --> 18 16 <!-- override the one in style so we can display the doc over the whole page and get rid of the green bar down the side --> 19 17 <xsl:template match="page" priority='2'> 20 18 <html> 21 <head>22 23 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->24 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>25 26 27 28 </head>19 <head> 20 <title> 21 <!-- 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> 23 </title> 24 <xsl:call-template name="globalStyle"/> 25 <xsl:call-template name="pageStyle"/> 26 </head> 29 27 <body> 30 28 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute> 31 29 <div id="page"> 32 33 30 <xsl:apply-templates select="pageResponse"/> 31 <xsl:call-template name="greenstoneFooter"/> 34 32 </div> 35 33 </body> 36 34 </html> 37 35 </xsl:template> … … 64 62 </xsl:call-template> 65 63 <div class="document"> 66 <!-- display the document --> 67 <xsl:apply-templates select="document"> 68 <xsl:with-param name="collName" select="$collName"/> 69 </xsl:apply-templates> 70 </div> 71 </xsl:template> 64 <!-- display the document --> 65 <xsl:apply-templates select="document"> 66 <xsl:with-param name="collName" select="$collName"/> 67 </xsl:apply-templates> 68 </div> 69 </xsl:template> 70 71 <xsl:template match="document"> 72 <xsl:param name="collName"/> 73 74 <xsl:variable name="external"><xsl:value-of select="/page/pageResponse/document/@external"/></xsl:variable> 75 <xsl:choose><xsl:when test="$external != ''"> 76 <xsl:call-template name="externalPage"> 77 <xsl:with-param name="external" select="$external"/> 78 </xsl:call-template> 79 </xsl:when> 80 <xsl:otherwise> 72 81 73 <xsl:template match="document">74 <xsl:param name="collName"/>75 76 <xsl:variable name="external"><xsl:value-of select="/page/pageResponse/document/@external"/></xsl:variable>77 <xsl:choose><xsl:when test="$external != ''">78 <xsl:call-template name="externalPage">79 <xsl:with-param name="external" select="$external"/>80 </xsl:call-template>81 </xsl:when>82 <xsl:otherwise>83 84 82 <xsl:call-template name="documentHeading"> 85 86 87 88 89 90 91 92 93 94 95 96 97 83 <xsl:with-param name="collName" select="$collName"/> 84 </xsl:call-template> 85 86 <xsl:call-template name="documentArrows"> 87 <xsl:with-param name="collName" select="$collName"/> 88 </xsl:call-template> 89 <xsl:call-template name="documentContent"> 90 <xsl:with-param name="collName" select="$collName"/> 91 </xsl:call-template> 92 <xsl:call-template name="documentArrows"> 93 <xsl:with-param name="collName" select="$collName"/> 94 </xsl:call-template> 95 <br/> 98 96 </xsl:otherwise></xsl:choose> 99 97 </xsl:template> … … 107 105 108 106 <div class="documentarrows"> 109 <xsl:if test="not(string($ed)='1')">110 111 112 113 114 115 116 117 118 119 120 </xsl:if>107 <xsl:if test="not(string($ed)='1')"> 108 <xsl:call-template name="documentArrow"> 109 <xsl:with-param name="collName" select="$collName"/> 110 <xsl:with-param name="direction" select="$firstDir"/> 111 <xsl:with-param name="pageDir" select="$dir"/> 112 </xsl:call-template> 113 <xsl:call-template name="documentArrow"> 114 <xsl:with-param name="collName" select="$collName"/> 115 <xsl:with-param name="direction" select="$secondDir"/> 116 <xsl:with-param name="pageDir" select="$dir"/> 117 </xsl:call-template> 118 </xsl:if> 121 119 </div> 122 120 </xsl:template> … … 126 124 <xsl:param name="direction"/> 127 125 <xsl:param name="pageDir"/> 128 126 129 127 <xsl:variable name="disp"> 130 131 132 133 134 128 <xsl:choose> 129 <xsl:when test="$direction ='back' and nodeStructureInfo/info[@name='siblingPosition']/@value = -1">n</xsl:when> 130 <xsl:when test="$direction ='forward' and nodeStructureInfo/info[@name='siblingPosition']/@value = nodeStructureInfo/info[@name='numSiblings']/@value">n</xsl:when> 131 <xsl:otherwise>y</xsl:otherwise> 132 </xsl:choose> 135 133 </xsl:variable> 136 134 137 135 <xsl:variable name="request-params" select="/page/pageRequest/paramList"/> 138 136 <xsl:if test='$request-params/param[@name="dt"]/@value != "simple" and $disp = "y"'> 139 <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>140 137 <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> 138 <xsl:when test="$direction='back'"><img class="lessarrow{$pageDir}" src="interfaces/default/images/less.gif" /></xsl:when><xsl:otherwise><img class="morearrow{$pageDir}" src="interfaces/default/images/more.gif" /></xsl:otherwise></xsl:choose></a> 141 139 </xsl:if> 142 140 </xsl:template> 143 141 144 142 145 143 <xsl:template name="documentHeading"> … … 152 150 <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> 153 151 <div id="documentheading"> 154 155 156 157 </div>158 159 <div id="docheadwrapper">160 <div id="documentinfo">152 <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> 153 </xsl:call-template></a> 154 <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> 155 </div> 156 157 <div id="docheadwrapper"> 158 <div id="documentinfo"> 161 159 <xsl:if test="string($doCoverImage) != 'false' and (@docType='paged' or @docType='hierarchy')"> 162 160 <div id="headingimage"> 163 161 <xsl:call-template name="coverImage"/> 164 162 </div> 165 163 </xsl:if> 166 164 167 165 <ul id="docbuttons" > 168 169 <xsl:with-param name="collName" select="$collName"/>170 171 172 </div>173 166 <xsl:call-template name="documentButtons"> 167 <xsl:with-param name="collName" select="$collName"/> 168 </xsl:call-template> 169 </ul> 170 </div> 171 174 172 <!--<div><xsl:call-template name="enrichServices"> 173 <xsl:with-param name="collName" select="$collName"/> 174 </xsl:call-template></div>--> 175 176 <xsl:if test="string($doTOC) != 'false'"> 177 <div id="toc"> 178 <xsl:call-template name="TOC"> 175 179 <xsl:with-param name="collName" select="$collName"/> 176 </xsl:call-template></div>--> 177 178 <xsl:if test="string($doTOC) != 'false'"> 179 <div id="toc"> 180 <xsl:call-template name="TOC"> 181 <xsl:with-param name="collName" select="$collName"/> 182 </xsl:call-template> 183 </div> 184 </xsl:if> 180 </xsl:call-template> 181 </div> 182 </xsl:if> 185 183 </div> 186 184 </xsl:template> 187 185 188 186 <xsl:template name="coverImage"> … … 202 200 <xsl:variable name="p.a" select="/page/pageRequest/paramList/param[@name='p.a']/@value"/> 203 201 <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> 204 205 <!-- expand document --> 206 <!-- this doesn't work with MG so comment it out for now --> 207 <!--<xsl:if test="@docType = 'hierarchy' or @docType = 'paged'">--> 208 <!-- shouldn't appear for paged document --> 209 <xsl:if test="@docType = 'hierarchy'"> 202 203 <!-- expand document --> 204 <xsl:if test="@docType = 'hierarchy'"> 210 205 <div class="button"> 211 206 <span class="button"> 212 207 <xsl:choose><xsl:when test="string($ed)='1'"> 213 208 <a href="{$library_name}?a=d&d={$docID}&c={$collName}&sib={$sib}&ed=0&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_doc_tip')"/></xsl:attribute> 214 209 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_doc_b')"/> 215 210 </a> 216 211 </xsl:when> 217 212 <xsl:otherwise> 218 219 213 <a href="{$library_name}?a=d&d={$docID}&c={$collName}&sib={$sib}&ed=1&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_doc_tip')"/></xsl:attribute> 214 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_doc_b')"/> 220 215 </a> 221 216 </xsl:otherwise> 222 217 </xsl:choose> 223 224 225 226 227 228 218 </span> 219 </div> 220 </xsl:if> 221 222 <!-- expand contents --> 223 <xsl:if test="@docType = 'hierarchy' and string(/page/pageResponse/format/gsf:option[@name='documentTOC']/@value) != 'false'"> 229 224 <div class="button"> 230 225 <span class="button"> 231 226 <xsl:choose><xsl:when test="string($ec)='1'"> 232 227 <a href="{$library_name}?a=d&d={$docID}&c={$collName}&sib={$sib}&ec=0&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_tip')"/></xsl:attribute> 233 228 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_b')"/> 234 229 </a> 235 230 </xsl:when> … … 240 235 </xsl:otherwise> 241 236 </xsl:choose> 242 </span> 243 </div> 244 </xsl:if> 245 <!-- detach page --> 246 <xsl:variable name="paramList" select="/page/pageRequest/paramList"/> 247 <div class="button"> 248 <span class="button"> 249 <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> 250 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.detach_page_b')"/> 251 </a> 252 </span> 237 </span> 253 238 </div> 254 </xsl:template> 239 </xsl:if> 240 <!-- detach page --> 241 <xsl:variable name="paramList" select="/page/pageRequest/paramList"/> 242 <div class="button"> 243 <span class="button"> 244 <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> 245 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.detach_page_b')"/> 246 </a> 247 </span> 248 </div> 249 </xsl:template> 255 250 256 251 <xsl:template name="TOC"> … … 269 264 </xsl:choose> 270 265 </xsl:template> 271 266 272 267 <xsl:template name="hierarchicalContents"> 273 268 <xsl:param name="collName"/> … … 284 279 285 280 <xsl:if test="documentNode[@nodeID]"> 286 281 <ul id="tocnodes"> 287 282 <li> 288 289 290 291 283 <xsl:choose><xsl:when test="string($oc)='0'"> 284 <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> 285 </xsl:when> 286 <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> 292 287 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.table_of_contents')"/> 293 <xsl:if test="string($oc)!='0'">294 <ul class="tocnode">295 296 288 <xsl:if test="string($oc)!='0'"> 289 <ul class="tocnode"> 290 <xsl:for-each select="documentNode/documentNode[@nodeID]"> 291 <xsl:apply-templates select='.'> 297 292 <xsl:with-param name="collName" select="$collName"/><xsl:with-param name="ec" select="$ec"/> 298 293 … … 304 299 305 300 </xsl:apply-templates> 306 307 301 </xsl:for-each> 302 </ul> 308 303 </xsl:if> 309 304 </li> 310 305 </ul> 311 306 </xsl:if> … … 323 318 <xsl:param name="p.c"/> 324 319 <!-- Display the appropriate image, depending on the node type --> 325 326 <li> 327 <!-- 328 <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><xsl:if test="@nodeType='leaf'">&sib=1</xsl:if><xsl:if test="string($ec) = '1'">&ec=1</xsl:if></xsl:attribute> 329 --> 320 321 <li> 322 <!-- 323 <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><xsl:if test="@nodeType='leaf'">&sib=1</xsl:if><xsl:if test="string($ec) = '1'">&ec=1</xsl:if></xsl:attribute> 324 --> 325 326 <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> 330 327 331 <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> 332 333 <xsl:apply-templates select="." mode="displayNodeIcon"/> 334 </a> 328 <xsl:apply-templates select="." mode="displayNodeIcon"/> 329 </a> 335 330 336 331 <!-- Display associated title, bolded if the node has content --> 337 338 339 340 341 342 343 344 345 346 <!-- Apply recursively to the children of this node -->347 <xsl:if test="documentNode[@nodeID]">348 349 350 351 352 353 354 355 356 357 332 <xsl:choose> 333 <xsl:when test="nodeContent"> 334 <span class="bold"><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/></span> 335 </xsl:when> 336 <xsl:otherwise> 337 <xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/> 338 </xsl:otherwise> 339 </xsl:choose> 340 341 <!-- Apply recursively to the children of this node --> 342 <xsl:if test="documentNode[@nodeID]"> 343 344 <ul class="tocnode"> <xsl:apply-templates select="documentNode[@nodeID]"> 345 <xsl:with-param name="collName" select="$collName"/> 346 <xsl:with-param name="ec" select="$ec"/> 347 348 <!-- added parameters --> 349 <xsl:with-param name="p.a" select="$p.a"/><xsl:with-param name="p.s" select="$p.s"/><xsl:with-param name="p.sa" select="$p.sa"/><xsl:with-param name="p.c" select="$p.c"/> 350 <!--<xsl:with-param name="depth" select="$depth + 1"/>--> 351 </xsl:apply-templates> 352 </ul> 358 353 </xsl:if> 359 354 </li> … … 380 375 </xsl:if> 381 376 <xsl:apply-templates select="nodeContent"/> 382 377 </xsl:if> 383 378 384 379 </xsl:template> … … 422 417 <xsl:variable name="serviceargs"> 423 418 <xsl:for-each select="param">&s1.<xsl:value-of select="@name"/>=<xsl:value-of select="@value"/></xsl:for-each> 424 </xsl:variable>419 </xsl:variable> 425 420 <a href="{$library_name}?{$actionargs}&c={$collName}{$serviceargs}"><xsl:value-of disable-output-escaping="yes" select="."/></a> 426 421 </xsl:template> … … 439 434 <!-- parameters for the bookicon to work properly --> 440 435 <xsl:variable name="p.s" select="/page/pageRequest/paramList/param[@name='p.s']/@value"/> 441 442 443 436 <xsl:variable name="p.sa" select="/page/pageRequest/paramList/param[@name='p.sa']/@value"/> 437 <xsl:variable name="p.a" select="/page/pageRequest/paramList/param[@name='p.a']/@value"/> 438 <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> 444 439 445 440 <xsl:choose> 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 441 <xsl:when test="$pos=-1"><!-- a doc --> 442 <tr valign="top"> 443 <td align="left"> 444 </td> 445 <td align="center"><center> 446 <b><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.pages', $children)"/></b> 447 </center></td> 448 <td align="right"> 449 <a href="{$library_name}?a=d&c={$collName}&d={@selectedNode}.fc&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a> 450 </td> 451 </tr> 452 </xsl:when> 453 454 <xsl:otherwise> <!-- an internal node --> 455 <tr valign="top"> 456 <td align="left"> 457 <xsl:if test=" not ( $pos = 1 )"> 458 <a href="{$library_name}?a=d&c={$collName}&d={@selectedNode}.ps&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><img src="interfaces/default/images/less.gif" border="0" align="absbottom" /></a> 459 </xsl:if> 460 </td> 461 <td align="center"><center> 462 <b><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.pageof', concat($pos, ';', $length))"/></b> 463 </center></td> 464 <td align="right"> 465 <xsl:if test=" not($pos = $length)"> 466 <a href="{$library_name}?a=d&c={$collName}&d={@selectedNode}.ns&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a> 467 </xsl:if> 468 </td> 469 </tr> 470 </xsl:otherwise> 471 </xsl:choose> 472 <tr valign="middle"> 473 <td align='center' valign='top' colspan='3'> 474 <form name="GotoForm" method="get" action="{$library_name}"> 475 <input type='hidden' name='a' value='d'/> 476 <input type='hidden' name='c' value='{$collName}'/> 477 <!--<input type='hidden' name='d' value='{@selectedNode}'/>--> 478 <input type='hidden' name='d'> 479 <xsl:attribute name='value'> 480 <xsl:if test="contains(@selectedNode, '.')"><xsl:value-of select="@selectedNode"/></xsl:if> 481 <xsl:if test="not(contains(@selectedNode, '.'))"><xsl:value-of select="@selectedNode"/>.0</xsl:if> 482 </xsl:attribute> 483 </input> 484 485 <input type='hidden' name='p.s' value='{$p.s}'/> 486 <input type='hidden' name='p.sa' value='{$p.sa}'/> 487 <input type='hidden' name='p.a' value='{$p.a}'/> 488 <input type='hidden' name='p.c' value='{$p.c}'/> 489 490 <input type="text" name="gp" size="3" maxlength="4"/> 491 <input type="submit"><xsl:attribute name='value'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.gotopage')"/></xsl:attribute></input> 492 </form> 493 </td> 494 </tr> 495 </xsl:template> 501 496 502 497 <xsl:template name="enrichServices"> … … 535 530 536 531 <xsl:template name="externalPage"> 537 538 532 <xsl:param name="external"/> 533 <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> 539 534 <h2><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'external.title')"/></h2> 540 535 <p><xsl:value-of select="util:getInterfaceTextWithDOM($interface_name, /page/@lang, 'external.text', $go_forward_link)" disable-output-escaping="yes"/> -
greenstone3/trunk/web/interfaces/gs2/transform/gli4gs3.xsl
r17019 r18318 12 12 <xsl:output method="html"/> 13 13 14 14 <!-- the main page layout template is here --> 15 15 <xsl:template match="page"> 16 16 <html> 17 <head>18 19 <!-- 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>21 22 23 24 </head>17 <head> 18 <title> 19 <!-- 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> 21 </title> 22 <xsl:call-template name="globalStyle"/> 23 <xsl:call-template name="pageStyle"/> 24 </head> 25 25 <body class="bgimage"> 26 26 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute> 27 27 <div id="page"> 28 29 28 <xsl:apply-templates select="pageResponse"/> 29 <xsl:call-template name="greenstoneFooter"/> 30 30 </div> 31 31 </body> … … 43 43 <xsl:variable name="collName"><xsl:value-of select="../pageRequest/paramList/param[@name='c']/@value"/></xsl:variable> 44 44 45 <!-- <xsl:call-template name="navigationBar">46 47 45 <!-- <xsl:call-template name="navigationBar"> 46 <xsl:with-param name="collName" select="$collName"/> 47 </xsl:call-template>--> 48 48 <div > 49 49 <xsl:copy-of select="Applet"/> -
greenstone3/trunk/web/interfaces/gs2/transform/help-common.xsl
r16877 r18318 15 15 <xsl:variable name="numoptions" select="count(serviceList/service[@name='ClassifierBrowse']/classifierList[position() mod 2 = 1]/classifier)"/> 16 16 <div class="simplehelp"> 17 <h3><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.simplehelpheading', $longCollName)"/></h3> 18 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.numbrowseoptions', $numoptions+$has_search+$has_phrase)"/> 19 <ul> 17 <h3><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.simplehelpheading', $longCollName)"/></h3> 18 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.numbrowseoptions', $numoptions+$has_search+$has_phrase)"/> 19 <ul> 20 <xsl:if test="$has_search =1"> 21 <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Searchshort')" disable-output-escaping='yes'/></li> 22 </xsl:if> 23 <xsl:for-each select="serviceList/service[@name='ClassifierBrowse']/classifierList/classifier"> 24 <xsl:variable name="title">help.<xsl:value-of select="@content"/>short</xsl:variable> 25 <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, $title)" disable-output-escaping='yes'/></li> 26 </xsl:for-each> 27 <xsl:if test="$has_phrase =1"> 28 <li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Phraseshort')" disable-output-escaping='yes'/></li> 29 </xsl:if> 30 </ul> 20 31 <xsl:if test="$has_search =1"> 21 < li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Searchshort')" disable-output-escaping='yes'/></li>32 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Searchlong')" disable-output-escaping='yes'/> 22 33 </xsl:if> 23 34 <xsl:for-each select="serviceList/service[@name='ClassifierBrowse']/classifierList/classifier"> 24 <xsl:variable name="title">help.<xsl:value-of select="@content"/> short</xsl:variable>25 < li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, $title)" disable-output-escaping='yes'/></li>35 <xsl:variable name="title">help.<xsl:value-of select="@content"/>long</xsl:variable> 36 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, $title)" disable-output-escaping='yes'/> 26 37 </xsl:for-each> 27 38 <xsl:if test="$has_phrase =1"> 28 < li><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Phraseshort')" disable-output-escaping='yes'/></li>39 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Phraselong')" disable-output-escaping='yes'/> 29 40 </xsl:if> 30 </ul>31 <xsl:if test="$has_search =1">32 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Searchlong')" disable-output-escaping='yes'/>33 </xsl:if>34 <xsl:for-each select="serviceList/service[@name='ClassifierBrowse']/classifierList/classifier">35 <xsl:variable name="title">help.<xsl:value-of select="@content"/>long</xsl:variable>36 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, $title)" disable-output-escaping='yes'/>37 </xsl:for-each>38 <xsl:if test="$has_phrase =1">39 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help.Phraselong')" disable-output-escaping='yes'/>40 </xsl:if>41 41 </div> 42 42 </xsl:template> 43 43 44 44 45 45 </xsl:stylesheet> -
greenstone3/trunk/web/interfaces/gs2/transform/help.xsl
r17019 r18318 14 14 <xsl:output method="html"/> 15 15 16 16 <!-- the main page layout template is here --> 17 17 <xsl:template match="page"> 18 18 <html> 19 <head>20 21 <!-- 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>23 24 25 26 </head>19 <head> 20 <title> 21 <!-- 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> 23 </title> 24 <xsl:call-template name="globalStyle"/> 25 <xsl:call-template name="pageStyle"/> 26 </head> 27 27 <body class="bgimage"> 28 28 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute> 29 29 <div id="page"> 30 31 30 <xsl:apply-templates select="pageResponse"/> 31 <xsl:call-template name="greenstoneFooter"/> 32 32 </div> 33 33 </body> -
greenstone3/trunk/web/interfaces/gs2/transform/home.xsl
r18314 r18318 12 12 <xsl:output method="html"/> 13 13 14 14 <!-- the main page layout template is here --> 15 15 <xsl:template match="page"> 16 16 <html> 17 <head>18 19 <!-- 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>21 22 23 24 </head>17 <head> 18 <title> 19 <!-- 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> 21 </title> 22 <xsl:call-template name="globalStyle"/> 23 <xsl:call-template name="pageStyle"/> 24 </head> 25 25 <body class="bgimage"> 26 26 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute> 27 27 <div id="page"> 28 29 28 <xsl:apply-templates select="pageResponse"/> 29 <xsl:call-template name="greenstoneFooter"/> 30 30 </div> 31 31 </body> … … 47 47 48 48 <xsl:template name="pageBanner"> 49 <div id="banner"> 50 <div class="collectimage"> 51 <img src="interfaces/default/images/gsdlhead.gif"><xsl:attribute name="alt"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/></xsl:attribute> 52 </img> 53 </div> 49 <div id="banner"> 50 <div class="collectimage"> 51 <img src="interfaces/default/images/gsdlhead.gif"><xsl:attribute name="alt"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/></xsl:attribute> 52 </img> 54 53 </div> 55 <div class="bannerextra"></div> 56 <div id="content"> 57 <xsl:call-template name="dividerBar"> 58 <xsl:with-param name="text" select="util:getInterfaceText($interface_name, /page/@lang, 'home.select_a_collection')"/> 59 </xsl:call-template> 60 </div> 61 </xsl:template> 54 </div> 55 <div class="bannerextra"></div> 56 <div id="content"> 57 <xsl:call-template name="dividerBar"> 58 <xsl:with-param name="text" select="util:getInterfaceText($interface_name, /page/@lang, 'home.select_a_collection')"/> 59 </xsl:call-template> 60 </div> 61 </xsl:template> 62 62 63 63 <xsl:template match="collectionList"> … … 66 66 67 67 <p> 68 68 <a href="{$library_name}?a=p&sa=about&c={@name}&ct={$ct}"> 69 69 <img width="150" border="1"> 70 70 <xsl:attribute name="src"> … … 86 86 <xsl:value-of select="util:getInterfaceText('gs2', /page/@lang, 'home.coll_warning')"/> 87 87 </div> 88 88 </xsl:template> 89 89 90 <xsl:template match="serviceList">91 <!--<xsl:call-template name="dividerBar"/>-->90 <xsl:template match="serviceList"> 91 <!--<xsl:call-template name="dividerBar"/>--> 92 92 <ul id="servicelist"> 93 93 <!--uncomment to display an authentication link--> … … 95 95 <li><a href="{$library_name}?a=g&rt=r&sa=authen&s={@name}&s1.aup=Login&s1.un=&s1.asn="><xsl:value-of select="displayItem[@name='name']"/></a><xsl:value-of select="displayItem[@name='description']"/></li> <br/> </xsl:for-each>--> 96 96 <!--uncomment to display a library interface link--> 97 <!--<li><a href="{$library_name}?a=p&sa=gli4gs3"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.librarian_interface')"/></a></li>-->97 <!--<li><a href="{$library_name}?a=p&sa=gli4gs3"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.librarian_interface')"/></a></li>--> 98 98 </ul> 99 99 </xsl:template> 100 100 101 101 </xsl:stylesheet> -
greenstone3/trunk/web/interfaces/gs2/transform/nav.xsl
r8661 r18318 7 7 exclude-result-prefixes="java util"> 8 8 9 9 <!-- style includes global params interface_name, library_name --> 10 10 <xsl:include href="style.xsl"/> 11 11 … … 40 40 <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/> 41 41 <div align="right"> 42 <xsl:call-template name="top-buttons">43 44 </xsl:call-template>45 42 <xsl:call-template name="top-buttons"> 43 <xsl:with-param name="collName" select="$collName"/> 44 </xsl:call-template> 45 </div> 46 46 <xsl:call-template name="navigationBar"> 47 47 <xsl:with-param name="collName" select="$collName"/> -
greenstone3/trunk/web/interfaces/gs2/transform/pref.xsl
r18315 r18318 11 11 <xsl:output method="html"/> 12 12 13 13 <!-- the main page layout template is here --> 14 14 <xsl:template match="page"> 15 15 <html> 16 <head>17 18 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->19 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>20 21 22 23 </head>16 <head> 17 <title> 18 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 19 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text> 20 </title> 21 <xsl:call-template name="globalStyle"/> 22 <xsl:call-template name="pageStyle"/> 23 </head> 24 24 <body class="bgimage"> 25 25 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute> 26 26 <div id="page"> 27 28 27 <xsl:apply-templates select="pageResponse"/> 28 <xsl:call-template name="greenstoneFooter"/> 29 29 </div> 30 30 </body> … … 95 95 <xsl:param name="formstatus"/> 96 96 <xsl:param name="advancedstatus"/> 97 97 98 98 <!-- search type : 0(default, simple); 1(form) --> 99 99 <xsl:variable name="qt"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='qt']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='qt']/@value"/></xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:variable> … … 102 102 <!-- search mode: text, form, advanced --> 103 103 <xsl:variable name="mode"><xsl:choose><xsl:when test="$qt=0">text</xsl:when><xsl:when test="$queryfmode=0">form</xsl:when><xsl:when test="$queryfmode=1">advanced</xsl:when><xsl:otherwise>text</xsl:otherwise></xsl:choose></xsl:variable> 104 104 105 105 <table> 106 106 <tr><td> </td><td> </td><td align='right'><input type='submit' name="submit"><xsl:attribute name="value"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.set_prefs')"/></xsl:attribute></input></td></tr> … … 110 110 111 111 <tr><td valign='baseline' class='col1'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.search_type')"/></td><td class='col2'><input type='radio' name='qfm' value='2' onclick="javascript:changePref(2)"><xsl:if test="$qt=0 or $queryfmode=2"><xsl:attribute name="checked"/></xsl:if></input></td><td class='col3'> <font><xsl:if test="$qt=0 or $queryfmode=2"><xsl:attribute name="style">font-weight: bold;</xsl:attribute></xsl:if><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.search_type_text')"/></font> 112 113 114 115 116 112 113 <xsl:if test="$formstatus='y'"><input name="qfm" onclick="javascript:changePref(0)" type="radio" value="0"><xsl:if test="$mode='form'"><xsl:attribute name="checked"/></xsl:if></input> <font><xsl:if test="$mode='form'"><xsl:attribute name="style">font-weight: bold;</xsl:attribute></xsl:if><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.search_type_simple_form')"/></font></xsl:if> 114 115 <xsl:if test="$advancedstatus='y'"><input name="qfm" onclick="javascript:changePref(1)" type="radio" value="1" ><xsl:if test="$mode='advanced'"><xsl:attribute name="checked"/></xsl:if></input> <font><xsl:if test="$mode='advanced'"><xsl:attribute name="style">font-weight: bold;</xsl:attribute></xsl:if><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.search_type_advanced_form')"/></font></xsl:if> 116 </td></tr> 117 117 118 118 <!-- search options --> … … 135 135 <!-- <xsl:if test="$mode='form'"><xsl:apply-templates select="/page/pageResponse//service[@name='FieldQuery']"/></xsl:if> --> 136 136 <xsl:call-template name="advanced-search-prefs"><xsl:with-param name="display"><xsl:if test="$mode='advanced'">y</xsl:if><xsl:if test="$mode='text' or $mode='form'">n</xsl:if></xsl:with-param></xsl:call-template> 137 137 138 138 <!-- search type specific options --> 139 139 <xsl:apply-templates select="/page/pageResponse//service[@name='TextQuery']"> … … 157 157 158 158 <tr><td rowspan='2' valign='baseline'><xsl:value-of select="$sortparam/displayItem"/></td><td><input type='radio' name='{$sortvar}' value='{$optionVal}'><xsl:choose><xsl:when test="$cachedValue=$optionVal"><xsl:attribute name="checked"/></xsl:when><xsl:when test="normalize-space($cachedValue)='' and $optionVal=$defaultValue"><xsl:attribute name="checked"/></xsl:when></xsl:choose></input></td> 159 159 <td><xsl:value-of select="$sortparam/option[1]/displayItem"/></td></tr> 160 160 161 161 <xsl:variable name="optionVal" select="$sortparam/option[2]/@name"/> … … 170 170 <xsl:variable name="maxdocs"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name=$maxvar]"><xsl:value-of select="/page/pageRequest/paramList/param[@name=$maxvar]/@value"/></xsl:when><xsl:otherwise>50</xsl:otherwise></xsl:choose></xsl:variable> 171 171 <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> 172 173 174 175 176 177 178 179 180 181 182 183 184 172 <xsl:variable name="maxdocs_param"><select name="{$ns}maxDocs"> 173 <option value="50"><xsl:if test="$maxdocs=50"><xsl:attribute name="selected"></xsl:attribute></xsl:if>50</option> 174 <option value="100"><xsl:if test="$maxdocs=100"><xsl:attribute name="selected"></xsl:attribute></xsl:if>100</option> 175 <option value="200"><xsl:if test="$maxdocs=200"><xsl:attribute name="selected"></xsl:attribute></xsl:if>200</option> 176 <option value="-1"><xsl:if test="$maxdocs=-1"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.all')"/></option> 177 </select></xsl:variable> 178 <xsl:variable name="hits_param"><select name="hitsPerPage"> 179 <option value="10"><xsl:if test="$hits=10"><xsl:attribute name="selected"></xsl:attribute></xsl:if>10 </option> 180 <option value="20"><xsl:if test="$hits=20"><xsl:attribute name="selected"></xsl:attribute></xsl:if>20</option> 181 <option value="50"><xsl:if test="$hits=50"><xsl:attribute name="selected"></xsl:attribute></xsl:if>50</option> 182 <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> 183 </select></xsl:variable> 184 <tr><td colspan='3'><xsl:value-of select="util:getInterfaceTextWithDOM($interface_name, /page/@lang, 'pref.hits', $maxdocs_param, $hits_param)" disable-output-escaping="yes"/></td></tr> 185 185 </xsl:if> 186 186 </xsl:template> 187 187 188 188 <xsl:template name="advanced-search-prefs"> 189 189 <xsl:param name="display">n</xsl:param> … … 191 191 <tr id="adv-qnb"><xsl:if test="$display='n'"><xsl:attribute name="style">display:none</xsl:attribute></xsl:if> 192 192 <td colspan='2'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref.num_fields')"/></td><td><select name="qfn"> 193 194 195 196 197 193 <option value="2"><xsl:if test="$numbox=2"><xsl:attribute name="selected"></xsl:attribute></xsl:if>2</option> 194 <option value="4"><xsl:if test="$numbox=4"><xsl:attribute name="selected"></xsl:attribute></xsl:if>4</option> 195 <option value="6"><xsl:if test="$numbox=6"><xsl:attribute name="selected"></xsl:attribute></xsl:if>6</option> 196 <option value="8"><xsl:if test="$numbox=8"><xsl:attribute name="selected"></xsl:attribute></xsl:if>8</option> 197 </select></td><td/></tr> 198 198 </xsl:template> 199 199 … … 242 242 <xsl:variable name="value" select="@name"/> 243 243 <tr><xsl:attribute name="id"><xsl:value-of select="concat($prefix, '-', $paramIdx, '-', position())"/></xsl:attribute><xsl:if test="$display='n'"><xsl:attribute name="style">display:none</xsl:attribute></xsl:if> 244 245 246 244 <xsl:if test="position()=1"><td rowspan='{$numOptions}' valign='baseline'><xsl:value-of select="../displayItem"/></td></xsl:if> 245 <td><input type='radio' name='{$cachedName}' value="{$value}"><xsl:if test="$cachedValue=$value"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input></td> 246 <td><xsl:value-of select="displayItem"/></td> 247 247 </tr> 248 248 </xsl:for-each> 249 249 </xsl:template> 250 250 251 251 </xsl:stylesheet> -
greenstone3/trunk/web/interfaces/gs2/transform/query-common.xsl
r14751 r18318 12 12 <xsl:variable name="subaction" select="../pageRequest/@subaction"/> 13 13 <div class="queryform"> 14 <p>15 16 17 18 19 20 21 22 23 24 </p>14 <p> 15 <form name="QueryForm" method="get" action="{$library_name}"> 16 <input type="hidden" name="a" value="q"/> 17 <input type="hidden" name="sa" value="{$subaction}"/> 18 <input type="hidden" name="rt" value="rd"/> 19 <input type="hidden" name="s" value="{@name}"/> 20 <input type="hidden" name="c" value="{$collName}"/> 21 <input type="hidden" name="startPage" value="1"/> 22 <xsl:apply-templates select="paramList"/> 23 </form> 24 </p> 25 25 </div> 26 26 </xsl:template> … … 28 28 <!-- a special handling of the param list - we override the one in service-params --> 29 29 <xsl:template match="paramList" priority='2'> 30 31 30 <span class="textselect"> 31 Search for <xsl:apply-templates select="param[@name='index']"><xsl:with-param name="default"><xsl:apply-templates select="param[@name='index']" mode="calculate-default"/></xsl:with-param></xsl:apply-templates><xsl:if test="param[@name='indexSubcollection']"> of <xsl:apply-templates select="param[@name='indexSubcollection']"><xsl:with-param name="default"><xsl:apply-templates select="param[@name='indexSubcollection']" mode="calculate-default"/></xsl:with-param></xsl:apply-templates></xsl:if><xsl:if test="param[@name='indexLanguage']"> in <xsl:apply-templates select="param[@name='indexLanguage']"><xsl:with-param name="default"><xsl:apply-templates select="param[@name='indexLanguage']" mode="calculate-default"/></xsl:with-param></xsl:apply-templates></xsl:if><xsl:if test="param[@name='level' and not(@type='invisible')]"> at <xsl:apply-templates select="param[@name='level']"><xsl:with-param name="default"><xsl:apply-templates select="param[@name='level']" mode="calculate-default"/></xsl:with-param></xsl:apply-templates> level</xsl:if><xsl:call-template name='query_mode'/> 32 32 </span> 33 33 <span class="querybox"> 34 <xsl:call-template name="query-and-submit"/>34 <xsl:call-template name="query-and-submit"/> 35 35 </span> 36 36 </xsl:template> … … 68 68 </xsl:choose> 69 69 </xsl:template> 70 70 71 71 <xsl:template match="param[@name='matchMode']" mode='query1'> 72 <xsl:param name='default'/>72 <xsl:param name='default'/> 73 73 <xsl:variable name="qfm" select="/page/pageRequest/paramList/param[@name='qfm']/@value"/> 74 74 <xsl:choose> … … 89 89 <xsl:choose> 90 90 <xsl:when test="$qfm=1"> 91 91 <xsl:apply-templates select="param[@name='complexField']"/> 92 92 </xsl:when> 93 93 <xsl:otherwise> 94 94 <xsl:apply-templates select="param[@name='simpleField']"/> 95 95 </xsl:otherwise> 96 96 </xsl:choose> 97 98 97 <input type="submit"><xsl:attribute name="value"><xsl:value-of select="../displayItem[@name='submit']"/></xsl:attribute></input> 98 99 99 </xsl:when> 100 100 <xsl:otherwise> <!-- doing text query --> 101 101 <xsl:variable name="qb" select="/page/pageRequest/paramList/param[@name='qb']/@value"/> 102 102 <xsl:choose> 103 103 <xsl:when test="$qb=1"><!-- large query box --> 104 105 106 107 <input type="submit"><xsl:attribute name="value"><xsl:value-of select="../displayItem[@name='submit']"/></xsl:attribute></input>108 104 <textarea name="s1.query" cols='63' rows='10'> 105 <xsl:apply-templates select="param[@name='query']" mode="calculate-default"/><xsl:text> </xsl:text><!-- put a space here just in case there is no value- mozilla craps out if have a <textarea /> element --> 106 </textarea> 107 <input type="submit"><xsl:attribute name="value"><xsl:value-of select="../displayItem[@name='submit']"/></xsl:attribute></input> 108 </xsl:when> 109 109 <xsl:otherwise> 110 111 112 110 <xsl:variable name="qs"><xsl:apply-templates select="param[@name='query']" mode="calculate-default"/></xsl:variable> 111 <nobr><xsl:apply-templates select="param[@name='query']"><xsl:with-param name="default" select="java:org.greenstone.gsdl3.util.XSLTUtil.tidyWhitespace($qs)"/></xsl:apply-templates><input type="submit"><xsl:attribute name="value"><xsl:value-of select="../displayItem[@name='submit']"/></xsl:attribute></input></nobr> 112 </xsl:otherwise> 113 113 </xsl:choose> 114 114 </xsl:otherwise> … … 136 136 <xsl:param name="ns">s1.</xsl:param> 137 137 <xsl:param name="pos"/> 138 <!-- <xsl:variable name="pos" select="@occurs - $occurs"/>-->138 <!-- <xsl:variable name="pos" select="@occurs - $occurs"/>--> 139 139 <tr><xsl:for-each select="param"> 140 140 <xsl:variable name="pname" select="@name"/> -
greenstone3/trunk/web/interfaces/gs2/transform/query.xsl
r17019 r18318 14 14 <xsl:output method="html"/> 15 15 16 16 <!-- the main page layout template is here --> 17 17 <xsl:template match="page"> 18 18 <html> 19 <head>20 21 <!-- 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>23 24 25 26 </head>19 <head> 20 <title> 21 <!-- 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> 23 </title> 24 <xsl:call-template name="globalStyle"/> 25 <xsl:call-template name="pageStyle"/> 26 </head> 27 27 <body class="bgimage"> 28 28 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute> 29 29 <div id="page"> 30 31 30 <xsl:apply-templates select="pageResponse"/> 31 <xsl:call-template name="greenstoneFooter"/> 32 32 </div> 33 33 </body> … … 46 46 <xsl:variable name="collName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable> 47 47 48 49 50 51 52 53 54 48 <xsl:call-template name="standardPageBanner"> 49 <xsl:with-param name="collName" select="$collName"/> 50 <xsl:with-param name="pageType">search</xsl:with-param> 51 </xsl:call-template> 52 <xsl:call-template name="navigationBar"> 53 <xsl:with-param name="collName" select="$collName"/> 54 </xsl:call-template> 55 55 <div class="document"> 56 <xsl:apply-templates select="service">56 <xsl:apply-templates select="service"> 57 57 <xsl:with-param name="collName" select="$collName"/> 58 58 </xsl:apply-templates> 59 <xsl:if test="documentNodeList">60 61 <xsl:with-param name="collName" select="$collName"/>62 63 </xsl:if>64 </div>59 <xsl:if test="documentNodeList"> 60 <xsl:call-template name="query-response"> 61 <xsl:with-param name="collName" select="$collName"/> 62 </xsl:call-template> 63 </xsl:if> 64 </div> 65 65 </xsl:template> 66 66 … … 81 81 <!-- next and prev links at bottom of page --> 82 82 <xsl:call-template name="resultNavigation"> 83 83 <xsl:with-param name="collName" select="$collName"/> 84 84 </xsl:call-template> 85 85 </xsl:template> -
greenstone3/trunk/web/interfaces/gs2/transform/style.xsl
r18314 r18318 14 14 <xsl:template name="globalStyle"> 15 15 <link rel="stylesheet" href="interfaces/gs2/style/classic.css" type="text/css"/> 16 16 <link rel="stylesheet" href="interfaces/gs2/style/classic2.css" type="text/css"/> 17 17 </xsl:template> 18 18 … … 42 42 <xsl:param name="clTop"/> 43 43 <xsl:variable name="this-element" select="/page/pageResponse/collection"/> 44 44 <div id="bannar"> 45 45 <div class="pageinfo"> 46 <xsl:call-template name="top-buttons"> 47 <xsl:with-param name="collName" select="$collName"/> 48 <xsl:with-param name="pageType" select="$pageType"/> 49 </xsl:call-template> 50 <xsl:if test="not(/page/pageRequest/@action='d')"> 51 <xsl:variable name="text"> 46 <xsl:call-template name="top-buttons"> 47 <xsl:with-param name="collName" select="$collName"/> 48 <xsl:with-param name="pageType" select="$pageType"/> 49 </xsl:call-template> 50 <xsl:if test="not(/page/pageRequest/@action='d')"> 51 <xsl:variable name="text"> 52 <xsl:choose> 53 <xsl:when test="$pageType='browse'"> 54 <xsl:value-of select="/page/pageResponse/collection/serviceList/service[@name='ClassifierBrowse']/classifierList/classifier[@name=$clTop]/displayItem[@name='name']"/> 55 </xsl:when> 56 <xsl:otherwise> 57 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, concat($pageType, '_t'))"/> 58 </xsl:otherwise> 59 </xsl:choose> 60 </xsl:variable> 61 <xsl:if test="$text != '__t_'"> 62 <p class="bannertitle"><xsl:value-of select="$text"/></p> 63 </xsl:if> 64 </xsl:if> 65 </div> 66 67 <div class="collectimage"> 68 <a href="{$library_name}?a=p&sa=about&c={$collName}"> 52 69 <xsl:choose> 53 <xsl:when test="$pageType='browse'"> 54 <xsl:value-of select="/page/pageResponse/collection/serviceList/service[@name='ClassifierBrowse']/classifierList/classifier[@name=$clTop]/displayItem[@name='name']"/> 70 <xsl:when test="$this-element/displayItem[@name='icon']"> 71 <img border="0"> 72 <xsl:attribute name="src"> 73 <xsl:value-of select="$this-element/metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="$this-element/displayItem[@name='icon']"/> 74 </xsl:attribute> 75 <xsl:attribute name="alt"> 76 <xsl:value-of select="$this-element/displayItem[@name='name']"/> 77 </xsl:attribute> 78 <xsl:attribute name="title"> 79 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'aboutpage')"/> 80 </xsl:attribute> 81 </img> 55 82 </xsl:when> 56 83 <xsl:otherwise> 57 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, concat($pageType, '_t'))"/>84 <b><xsl:value-of select="$this-element/displayItem[@name='name']"/></b> 58 85 </xsl:otherwise> 59 86 </xsl:choose> 60 </xsl:variable> 61 <xsl:if test="$text != '__t_'"> 62 <p class="bannertitle"><xsl:value-of select="$text"/></p> 63 </xsl:if> 64 </xsl:if> 65 </div> 66 67 <div class="collectimage"> 68 <a href="{$library_name}?a=p&sa=about&c={$collName}"> 69 <xsl:choose> 70 <xsl:when test="$this-element/displayItem[@name='icon']"> 71 <img border="0"> 72 <xsl:attribute name="src"> 73 <xsl:value-of select="$this-element/metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="$this-element/displayItem[@name='icon']"/> 74 </xsl:attribute> 75 <xsl:attribute name="alt"> 76 <xsl:value-of select="$this-element/displayItem[@name='name']"/> 77 </xsl:attribute> 78 <xsl:attribute name="title"> 79 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'aboutpage')"/> 80 </xsl:attribute> 81 </img> 82 </xsl:when> 83 <xsl:otherwise> 84 <b><xsl:value-of select="$this-element/displayItem[@name='name']"/></b> 85 </xsl:otherwise> 86 </xsl:choose> 87 </a> 88 </div> 87 </a> 89 88 </div> 89 </div> 90 90 <div class="bannerextra"></div> 91 91 </xsl:template> … … 95 95 <xsl:param name="pageType"/> 96 96 <p class="bannerlinks"> 97 98 99 100 <!--<xsl:choose>101 102 103 97 <a class="navlink" 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> 98 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/> 99 </a> 100 <!--<xsl:choose> 101 <xsl:when test="$pageType='help'"> 102 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/> 103 </xsl:when> 104 104 <xsl:otherwise> 105 105 <a class="navlink" 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> 106 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/>107 108 106 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/> 107 </a> 108 </xsl:otherwise> 109 109 </xsl:choose> --> 110 111 112 113 114 115 116 117 118 119 110 <xsl:choose> 111 <xsl:when test="$pageType='pref'"> 112 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/> 113 </xsl:when> 114 <xsl:otherwise> 115 <a class="navlink" 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> 116 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/> 117 </a> 118 </xsl:otherwise> 119 </xsl:choose> 120 120 </p> 121 121 </xsl:template> … … 133 133 134 134 <div class="navbar"> 135 136 137 <xsl:when test="not($dir='rtl')">138 <xsl:if test="$this-element/serviceList/service[@type='query']">139 <xsl:call-template name="navbar-search"><xsl:with-param name="collName" select="$collName"/></xsl:call-template>140 </xsl:if>141 </xsl:when>142 <xsl:otherwise>143 <xsl:if test="$this-element/serviceList/service[@name='PhindApplet']">144 <xsl:call-template name="navbar-phind"><xsl:with-param name="collName" select="$collName"/></xsl:call-template>145 </xsl:if>146 </xsl:otherwise>135 <p class="navbar"> 136 <xsl:choose> 137 <xsl:when test="not($dir='rtl')"> 138 <xsl:if test="$this-element/serviceList/service[@type='query']"> 139 <xsl:call-template name="navbar-search"><xsl:with-param name="collName" select="$collName"/></xsl:call-template> 140 </xsl:if> 141 </xsl:when> 142 <xsl:otherwise> 143 <xsl:if test="$this-element/serviceList/service[@name='PhindApplet']"> 144 <xsl:call-template name="navbar-phind"><xsl:with-param name="collName" select="$collName"/></xsl:call-template> 145 </xsl:if> 146 </xsl:otherwise> 147 147 </xsl:choose> 148 148 … … 154 154 </xsl:apply-templates> 155 155 </xsl:for-each> 156 156 157 157 <xsl:choose> 158 <xsl:when test="$dir='rtl'">159 <xsl:if test="$this-element/serviceList/service[@type='query']">160 <xsl:call-template name="navbar-search"><xsl:with-param name="collName" select="$collName"/></xsl:call-template>161 </xsl:if>162 </xsl:when>163 <xsl:otherwise>164 <xsl:if test="$this-element/serviceList/service[@name='PhindApplet']">165 <xsl:call-template name="navbar-phind"><xsl:with-param name="collName" select="$collName"/></xsl:call-template>166 </xsl:if>167 </xsl:otherwise>158 <xsl:when test="$dir='rtl'"> 159 <xsl:if test="$this-element/serviceList/service[@type='query']"> 160 <xsl:call-template name="navbar-search"><xsl:with-param name="collName" select="$collName"/></xsl:call-template> 161 </xsl:if> 162 </xsl:when> 163 <xsl:otherwise> 164 <xsl:if test="$this-element/serviceList/service[@name='PhindApplet']"> 165 <xsl:call-template name="navbar-phind"><xsl:with-param name="collName" select="$collName"/></xsl:call-template> 166 </xsl:if> 167 </xsl:otherwise> 168 168 </xsl:choose> 169 170 169 </p> 170 </div> 171 171 </xsl:template> 172 172 … … 175 175 <xsl:choose> 176 176 <xsl:when test="/page/pageRequest/@action='q'"> 177 177 <span class="narspace">search</span> 178 178 </xsl:when> 179 179 <xsl:otherwise> … … 195 195 <xsl:choose> 196 196 <xsl:when test="/page/pageRequest/paramList/param[@name='s']/@value='PhindApplet'"> 197 198 </xsl:when> 199 <xsl:otherwise> 200 197 <span class="narspace">phrases</span> 198 </xsl:when> 199 <xsl:otherwise> 200 <a class="navlink" href="{$library_name}?a=a&rt=d&s=PhindApplet&c={$collName}"><xsl:if test="/page/pageResponse/collection/service[@name='PhindApplet']/displayItem[@name='description']"><xsl:attribute name='title'><xsl:value-of select="/page/pageResponse/collection/service[@name='PhindApplet']/displayItem[@name='description']"/></xsl:attribute></xsl:if>phrases</a> 201 201 </xsl:otherwise> 202 202 </xsl:choose> … … 208 208 <xsl:choose> 209 209 <xsl:when test="/page/pageRequest/@action='b' and $clTop=@name"> 210 210 <span class="narspace"><xsl:value-of select="displayItem[@name='name']"/></span> 211 211 </xsl:when> 212 212 <xsl:otherwise> … … 218 218 <xsl:template name="dividerBar"> 219 219 <xsl:param name='text'/> 220 220 <xsl:choose> 221 221 <xsl:when test="$text"> 222 223 </xsl:when> 224 <xsl:otherwise> 225 222 <div class="divbar"><p class="navbar"><xsl:value-of select="$text"/></p></div> 223 </xsl:when> 224 <xsl:otherwise> 225 <div class="divbar"><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text></div> 226 226 </xsl:otherwise> 227 227 </xsl:choose> … … 229 229 230 230 <xsl:template name="nzdlPageBanner"> 231 232 231 <div><img src="interfaces/nzdl/images/nzdl2gr.gif" width="457" height="181" ><xsl:attribute name="alt"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'nzdl')"/></xsl:attribute></img></div> 232 <!-- end of page banner --> 233 233 </xsl:template> 234 234 … … 343 343 alt='{$alt}' title='{$title}'/> 344 344 </xsl:template> 345 345 346 346 <xsl:template name="icondoc"> 347 347 <xsl:param name="alt">Word</xsl:param>
Note:
See TracChangeset
for help on using the changeset viewer.