Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Voyager

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Voyager
    3. Community Knowledge
    4. OPAC: Create External Link Footer Tab

    OPAC: Create External Link Footer Tab

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    Created By: Jim Robinson
    Created on: 5/14/2019



    [This article was copied from the Voyager Wiki.]

    To create footer tabs that link to another server, I use a simple CGI script.

    redirect.cgi

    #!/m1/shared/bin/perl -w

     

    local ($buffer, @pairs, $pair, $name, $value, %FORM);

     

    # Get

    $ENV{'REQUEST_METHOD'} =~ tr/a-z/A-Z/;

    if ($ENV{'REQUEST_METHOD'} eq "GET") {

        $buffer = $ENV{'QUERY_STRING'};

    }

         

    # Split information into name/value pairs

    @pairs = split(/&/, $buffer);

    foreach $pair (@pairs) {

        ($name, $value) = split(/=/, $pair);

        $value =~ tr/+/ /;

        $value =~ s/%(..)/pack("C", hex($1))/eg;

        $FORM{$name} = $value;

    }

       

    $page = $FORM{page};

     

    print "Location: $page\n\n";

    Save this as /m1/voyager/xxxdb/tomcat/vwebv/context/vwebv/htdocs/vwebv/redirect.cgi

    Set owner and permissions:

    cd /m1/voyager/*xxxdb*/tomcat/vwebv/context/vwebv/htdocs/vwebv

    chown voyager:endeavor redirect.cgi

    chmod 755 redirect.cgi

    Let's make a footer tab that links to Google.

    Create the new tab/button in /m1/voyager/xxxdb/tomcat/vwebv/context/vwebv/ui/skin/webvoyage.properties

    ###############################################################################

    #

    #   Footer

    #

    ###############################################################################

    page.footer.buttons.google.button=Google

    page.footer.buttons.google.message=Visit Google today!

    Tell the tab/button what to do in /m1/voyager/xxxdb/tomcat/vwebv/context/vwebv/ui/skin/internal.properties

    ###############################################################################

    #

    #   Footer

    #

    ###############################################################################

    page.footer.buttons.google.action=redirect.cgi?page=http://www.google.com

    Display the new tab/button in /m1/voyager/xxxdb/tomcat/vwebv/context/vwebv/ui/skin/xsl/userTextConfigs/papgeProperties.xml

    <!-- ## Footer Tab Display Order ## -->

       <footerTabDisplayOrder>]

          <tab name="page.footer.buttons.google.button"/>

       </footerTabDisplayOrder>

    Call the redirect script with
    http://your.domain/vwebv/redirect.cgi?page=http://www.google.com
    where page= the page to which you'd like to link.




    Report
    View article in the Exlibris Knowledge Center
    1. Back to top
      • OPAC: Change Text of No-Hits Message
      • OPAC: Create External Search Form Widget
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Community Content Type
      How To
      Language
      English
      Product
      Voyager
    2. Tags
      This page has no tags.
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved