Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    OPAC: Adding Exit Session Navigation

    Created By: Laura Guy
    Created on: 5/14/2019



    [This article was copied from the Voyager Wiki.]

    Introduction

    This relates to the "New" Tomcat WebVoyage that is included in Voyager 7.0.1 and forward.

    Our users were accustomed to having an "Exit" button available to them on the "Classic" interface. In public lab situations we encourage them to use it when they leave a workstation. To add a similiar functionality to the "New" WebVoyage you can add the following code to the appropriate two files. See the screenshot example at the bottom of this document.

    Top Navigation Exit Button

    1) To add the top option edit /m1/voyager/xxxdb/tomcat/vwebv/context/vwebv/ui/your_SKIN/xsl/pageFacets/header.xsl

    Edit the BOTTOM of the file to include the "adds an exit button" code in between the two comment lines:

    <!-- This modification adds an exit button to the header tabs YYYY/MM/DD -->

                      <li class="off" title="Exit Session">

                         <a href="exit.do" name="Exit Button">

                            <span>Exit Session</span>

                         </a>

                      </li>

    <!-- End modification to add an exit button -->

     

                   </ul>

                </div>

             </xsl:for-each>

          </div>

       </xsl:for-each>

    </xsl:template>


    *REMEMBER to update the comments section at the top of the file!*

    Bottom Navigation Exit Button

    2) To add the bottom option edit footer.xsl in the same directory as the header.xsl file

    Add the "extra footer tabs" section between the comments as shown below. Change the URL appropriately.

    <xsl:template name="buildFooter">

     

    <xsl:for-each select="/page:page/page:pageFooter">

    <div id="pageFooter">

    <xsl:for-each select="page:tabs[@nameId='page.footer.buttons']">

     

    <div id="footerTabs" title="{$footerText/footerTabs}">

    <a name="navFooter"></a>

    <h2 class="navFooter"><xsl:value-of select="$footerText/footerTabs"/></h2>

    <ul class="navbar">

    <\!-\- extra footer tabs \-->

    <li>

    <a href="http://www.mines.edu/library"  title="Exit Session">Exit Session</a>

    </li>

    <\!-\- end of extra footer tabs \-->

    <xsl:for-each select="$Configs/pageConfigs/footerTabDisplayOrder/tab">

    <xsl:variable name="tempName" select="@name"/>

    <xsl:variable name="newWin" select="@clickOpensNewWindow"/>

    <xsl:call-template name="buildFooterTab">

    <xsl:with-param name="displayTab" select="$tempName"/>

    <xsl:with-param name="newWin" select="$newWin"/>

    </xsl:call-template>

    </xsl:for-each>

    </ul>

    </div>

     

    </xsl:for-each>

     

    <div id="libraryLink">

    <span>

    <xsl:call-template name="buildLinkType">

    <xsl:with-param name="eleName"&nbsp; select="'page.footer.library.link'"/>

    </xsl:call-template>

    </span>

    </div>

    *REMEMBER to update the comments section at the top of the file!

    Important Caveat

    Future changes in the UI may break these instructions.