Project

General

Profile

« Previous | Next » 

Revision 3739

Get rid of the ant tokens and the relative paths by using the context url and cgi prefix provided by the settings.jsp.
Now the "short form" of urls will work with the iframe skins. sanparks and saeon can also be set as the "default" skin and the paths will resolve correctly.
Note: still an ant token in the .cfg file used with perl...

View differences:

index.jsp
24 24
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25 25
*/
26 26
%>
27
<%@ include file="settings.jsp"%>
27 28
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
28 29
<html>
29 30
    <head>
30 31
        <title>SANParks - South African National Park Data Repository</title>
31
        <link rel="stylesheet" href="@systemidserver@@style-skins-path@/default/default.css" type="text/css"/>
32
        <link rel="stylesheet" type="text/css" href="@systemidserver@@style-skins-path@/sanparks/sanparks.css"/>
33
        <script language="JavaScript" type="text/JavaScript" src="@systemidserver@@style-skins-path@/sanparks/sanparks.js"></script>
34
        <script language="JavaScript" type="text/JavaScript" src="@systemidserver@@style-common-path@/branding.js"></script>
32
        <link rel="stylesheet" href="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/default.css" type="text/css"/>
33
        <link rel="stylesheet" type="text/css" href="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/sanparks/sanparks.css"/>
34
        <script language="JavaScript" type="text/JavaScript" src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/sanparks/sanparks.js"></script>
35
        <script language="JavaScript" type="text/JavaScript" src="<%=SERVER_URL_WITH_CONTEXT%>/style/common/branding.js"></script>
35 36
    </head>
36 37
    <body>
37 38
        <script language="JavaScript">
38
            insertTemplateOpening();
39
            insertTemplateOpening("<%=SERVER_URL_WITH_CONTEXT%>");
39 40
        </script>
40 41
        
41 42
        <!-- Main content -->
42 43
        <jsp:include page="SaeonLogin.jspx" />
43 44
        
44
        <!-- map frame -->
45
        <script language="JavaScript">
46
            //insertMap();
47
        </script>
48
        
49 45
        <!-- wrap it up with the closing -->
50 46
        <script language="JavaScript">
51
            insertTemplateClosing();
47
            insertTemplateClosing("<%=SERVER_URL_WITH_CONTEXT%>");
52 48
        </script>
53 49
    </body>
54 50
</html>

Also available in: Unified diff