Project

General

Profile

« Previous | Next » 

Revision 3729

use the servlet context path to construct absolute paths to the various file locations

View differences:

lib/style/skins/default/default.js
82 82
//  exist unless it is resized smaller) . 
83 83
//  ( e.g. if you do not want a header to be included, set: HEADER_URL="";)
84 84
////////////////////////////////////////////////////////////////////////////////
85
var SERVER_URL_WITH_CONTEXT = "http://chico.dyndns.org/knb";
86 85

  
87 86
//  Location of the header that will be displayed at the top of the page
88 87
var HEADER_URL 
89
  = SERVER_URL_WITH_CONTEXT+"/style/skins/default/include_header.jsp";
88
  = "style/skins/default/include_header.jsp";
90 89

  
91 90
// Location of the search box that will be displayed above the  
92 91
//  results on the results page (optional)
93 92
var SEARCHBOX_URL 
94
  = SERVER_URL_WITH_CONTEXT+"/style/skins/default/include_searchbox.jsp";
93
  = "style/skins/default/include_searchbox.jsp";
95 94

  
96 95
// Location of the advanced search box
97 96
var ADVANCED_SEARCHBOX_URL 
98
  = SERVER_URL_WITH_CONTEXT+"/style/skins/default/include_advancedsearch.jsp";
97
  = "style/skins/default/include_advancedsearch.jsp";
99 98

  
100 99
var LOGINBOX_URL
101
  = SERVER_URL_WITH_CONTEXT+"/style/skins/default/include_login.jsp";
100
  = "style/skins/default/include_login.jsp";
102 101

  
103 102
var MAP_URL
104
  = SERVER_URL_WITH_CONTEXT+"/style/skins/default/include_map.jsp";
103
  = "style/skins/default/include_map.jsp";
105 104

  
106 105
//  Location of the header that will be displayed at the top of the page
107 106
var LEFTCOL_URL 
lib/style/skins/default/index.jsp
43 43
</head>
44 44
<body>
45 45
  <script language="javascript">
46
	  insertTemplateOpening();
47
	  insertSearchBox();
46
	  insertTemplateOpening("<%=SERVER_URL_WITH_CONTEXT%>");
47
	  insertSearchBox("<%=SERVER_URL_WITH_CONTEXT%>");
48 48
  </script>
49 49
  <br/>
50 50

  
51 51
  <% if ( MetaCatUtil.getOption("runSpatialOption").equals("true") ) { %>
52 52
  <script language="javascript">
53
	  insertMap();
53
	  insertMap("<%=SERVER_URL_WITH_CONTEXT%>");
54 54
  </script>
55 55
  <br/>
56 56
  <% } %>
57 57

  
58 58
  <script language="javascript">
59
	  insertLoginBox();
59
	  insertLoginBox("<%=SERVER_URL_WITH_CONTEXT%>");
60 60
  </script>
61 61
  <script language="javascript">
62
	  insertTemplateClosing();
62
	  insertTemplateClosing("<%=SERVER_URL_WITH_CONTEXT%>");
63 63
  </script>
64 64
</body>
65 65
</html>
lib/style/skins/default/include_header.jsp
30 30
<head>
31 31
  <title>Metacat Data Catalog</title>
32 32
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
33
  <link href="/knb/style/skins/default/default.css" 
33
  <link href="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/default.css" 
34 34
    rel="stylesheet" type="text/css">
35 35
  <script language="javascript" type="text/javascript" 
36
    src="<%= relativeRoot %>/default.js"></script>
36
    src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/default.js"></script>
37 37
  </head>
38 38

  
39 39
<body leftmargin="0" topmargin="0" marginwidth="O" marginheight="0">
lib/style/skins/default/include_login.jsp
35 35
<head>
36 36
  <title</title>
37 37
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
38
  <link href="<%=relativeRoot%>/default.css" rel="stylesheet" type="text/css">
38
  <link href="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/default.css" rel="stylesheet" type="text/css">
39 39
  <script language="javascript" 
40
    type="text/javascript" src="<%=relativeRoot%>/default.js">
40
    type="text/javascript" src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/default.js">
41 41
  </script>
42 42
  <script language="javascript" type="text/javascript">
43 43
    var popupMsg = "If you need to create a new account, \n"
......
102 102
                <%= loginStatus %>
103 103
            </td>
104 104
            <td width="10">
105
              <img src="./images/transparent1x1.gif" width="10" height="10">
105
              <img src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/images/transparent1x1.gif" width="10" height="10">
106 106
            </td>
107 107
          </tr>
108 108
          <tr> 
109 109
            <td width="10">
110
              <img src="./images/transparent1x1.gif" width="10" height="10">
110
              <img src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/images/transparent1x1.gif" width="10" height="10">
111 111
            </td>
112 112
            <td> 
113 113
              <form name="loginform" method="post" action="index.jsp" 
......
126 126
                      value="<%=typedUserName%>" <%=loginEnabledDisabled%>>
127 127
                  </td>
128 128
                  <td width="10px">
129
                    <img src="./images/transparent1x1.gif" width="10">
129
                    <img src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/images/transparent1x1.gif" width="10">
130 130
                  </td>
131 131
                  <td align="left" class="text_plain">
132 132
                    <a href="http://ldap.ecoinformatics.org/cgi-bin/ldapweb.cgi" target="_top">
......
152 152
                    </select>
153 153
                  </td>
154 154
                  <td width="10px">
155
                    <img src="./images/transparent1x1.gif" width="10" >
155
                    <img src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/images/transparent1x1.gif" width="10" >
156 156
                  </td>
157 157
                  <td align="left" class="text_plain">
158 158
                    <a href="http://ldap.ecoinformatics.org/cgi-bin/ldapweb.cgi?stage=resetpass" target="_top">forgot your password?</a>
......
169 169
                    <%=loginEnabledDisabled%>>
170 170
                  </td>
171 171
                  <td width="10px">
172
                    <img src="./images/transparent1x1.gif" width="10">
172
                    <img src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/images/transparent1x1.gif" width="10">
173 173
                  </td>
174 174
                  <td align="left" class="text_plain">
175 175
                    <a href="http://ldap.ecoinformatics.org/cgi-bin/ldapweb.cgi?stage=changepass" target="_top">change your password</a> 
......
182 182
                  </td>
183 183
                  </td>
184 184
                  <td width="10">
185
                    <img src="./images/transparent1x1.gif" width="10">
185
                    <img src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/images/transparent1x1.gif" width="10">
186 186
                  </td>
187 187
                  <td>
188
                    <img src="./images/transparent1x1.gif" width="10">
188
                    <img src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/images/transparent1x1.gif" width="10">
189 189
                  </td>
190 190
                </tr>
191 191
                <tr>
lib/style/skins/default/index_advanced.jsp
38 38
<head>
39 39
<title>Metacat Data Catalog </title>
40 40
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
41
	<link rel="stylesheet" type="text/css" href="./default.css">
42
	<script language="javascript" type="text/javascript" src="./default.js"></script>
43
	<script language="javascript" type="text/javascript" src="../../common/branding.js"></script>
41
	<link rel="stylesheet" type="text/css" href="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/default.css">
42
	<script language="javascript" type="text/javascript" src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/default.js"></script>
43
	<script language="javascript" type="text/javascript" src="<%=SERVER_URL_WITH_CONTEXT%>/style/common/branding.js"></script>
44 44
</head>
45 45

  
46 46
<body>
47 47
  <script language="javascript">
48
	  insertTemplateOpening();
49
	  insertAdvancedSearchBox();
50
      insertTemplateClosing();
48
	  insertTemplateOpening("<%=SERVER_URL_WITH_CONTEXT%>");
49
	  insertAdvancedSearchBox("<%=SERVER_URL_WITH_CONTEXT%>");
50
      insertTemplateClosing("<%=SERVER_URL_WITH_CONTEXT%>");
51 51
  </script>
52 52
</body>
53 53

  
lib/style/skins/default/include_advancedsearch.jsp
35 35
<head>
36 36
  <title>Metacat Data Catalog Advanced Search Page</title>
37 37
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
38
  <link href="./default.css" rel="stylesheet" type="text/css">
38
  <link href="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/default.css" rel="stylesheet" type="text/css">
39 39

  
40 40
  <script language="javascript" 
41
    type="text/javascript" src="./default.js">
41
    type="text/javascript" src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/default.js">
42 42
  </script>
43 43

  
44 44
  <script language="javascript" type="text/javascript">
......
100 100
  <table width="750px" align="center" cellspacing="0" cellpadding="0">
101 101
    <tr> 
102 102
      <td width="10" align="right" valign="top">
103
        <img src="./images/panelhead_bg_lcorner.gif" 
103
        <img src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/images/panelhead_bg_lcorner.gif" 
104 104
          width="10" height="21">
105 105
      </td>
106 106
      <td class="sectionheader">
107 107
        advanced search 
108 108
      </td>
109 109
      <td width="10" align="left" valign="top"> 
110
        <img src="./images/panelhead_bg_rcorner.gif" 
110
        <img src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/images/panelhead_bg_rcorner.gif" 
111 111
          width="10" height="21">
112 112
      </td>
113 113
    </tr>
......
122 122
            <td colspan="2">
123 123
    <form name="advancedSearchForm"
124 124
          method="POST"
125
          action="advancedsearchforward.jsp"
125
          action="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/advancedsearchforward.jsp"
126 126
          onsubmit="return submitRequest(this)"
127 127
          target="_top">
128 128
      <table width="100%" border="0" cellpadding="0" cellspacing="0" >
lib/style/skins/default/include_map.jsp
35 35
<head>
36 36
  <title>Metacat Data Catalog Map</title>
37 37
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
38
  <link href="<%=relativeRoot%>/default.css" rel="stylesheet" type="text/css">
38
  <link href="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/default.css" rel="stylesheet" type="text/css">
39 39

  
40 40
  <script language="javascript" 
41
    type="text/javascript" src="<%=relativeRoot%>/default.js">
41
    type="text/javascript" src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/default.js">
42 42
  </script>
43 43
</head>
44 44
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
......
53 53
      <td colspan="3">
54 54
        <table width="100%" cellspacing="0" cellpadding="0" border="0" class="subpanel">
55 55
          <tr><td> 
56
           <iframe scrolling="no" frameborder="0" width="750" height="520" src="<%=relativeRoot%>/../../common/spatial_templates/spatial1/map.html"> You need iframe support </iframe>
56
           <iframe scrolling="no" frameborder="0" width="750" height="520" src="<%=SERVER_URL_WITH_CONTEXT%>/style/common/spatial_templates/spatial1/map.html"> You need iframe support </iframe>
57 57
          </td></tr>
58 58
         </table>
59 59
      </td>
lib/style/skins/default/include_searchbox.jsp
37 37
<head>
38 38
  <title>Metacat Data Catalog Search Page</title>
39 39
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
40
  <link href="<%=relativeRoot%>/default.css" rel="stylesheet" type="text/css">
40
  <link href="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/default.css" rel="stylesheet" type="text/css">
41 41
  <script language="javascript" 
42
    type="text/javascript" src="<%=relativeRoot%>/default.js">
42
    type="text/javascript" src="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/default.js">
43 43
  </script>
44 44
  <script language="javascript" type="text/javascript">
45 45
    function trim(stringToTrim) {
......
181 181
                    <td colspan="2" valign="middle" class="text_example">
182 182
                      <p> 
183 183
                        <%= loginStatus %> &nbsp;
184
                        (<a href="<%=relativeRoot%>/index.jsp#loginanchor" 
184
                        (<a href="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/index.jsp#loginanchor" 
185 185
                          target="_top"><%=loginButtonLabel%></a>).&nbsp; 
186 186
                        You may search the data catalog without being logged 
187 187
                        into your account, but will have access only to 
......
205 205
                      &nbsp;&nbsp;&nbsp;
206 206
                      
207 207
                      <a target="_top" 
208
                        href="<%=relativeRoot%>/index_advanced.jsp"> 
208
                        href="<%=SERVER_URL_WITH_CONTEXT%>/style/skins/default/index_advanced.jsp"> 
209 209
                          &raquo;&nbsp;advanced&nbsp;search&nbsp;&laquo;</a>
210 210
                      
211 211
                    </td>

Also available in: Unified diff