Project

General

Profile

« Previous | Next » 

Revision 1933

Added by brooke about 21 years ago

changed knb skin index page to forward to knb site and include any user params in url. changed resultset.xsl so qformat is handled properly in posts. changed build file to copy default.css from eml checkout to style/common so other skin-specific css can import it if reqd

View differences:

lib/style/skins/knb/index.jsp
26 26
 */
27 27

  
28 28
/**
29
 *  Does a redirect to knb homepage
29
 *  Does a redirect to knb homepage at @knb-site-url@
30 30
 */
31 31
%>
32 32
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
33 33
<html>
34 34
<head>
35
<title> </title>
36 35
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
37
<meta http-equiv="refresh" content="0;URL=@knb-site-url@/">
36
<script language="JavaScript">
37
function doRedirectWithParams() {
38
  var fullURL = unescape(document.location);
39
  var start = fullURL.indexOf("?");
40
  var params = "";
41
  if (start > 0) params = fullURL.substring(start,fullURL.length);
42
  document.location.href="@knb-site-url@" + params;
43
}
44
</script>
38 45
</head>
39
<body></body>
40
</html>
46
<body><script language="JavaScript">doRedirectWithParams()</script></body>
47
</html>
lib/style/common/resultset.xsl
47 47
          function submitform(action,form_ref) {
48 48
              form_ref.action.value=action;
49 49
              form_ref.abstractpath.value="";
50
              form_ref.qformat.value="@default-style@";
50
              form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
51 51
              form_ref.submit();
52 52
          }
53 53
          function submitform1(action, abstractpath, form_ref) {
54 54
              form_ref.action.value=action;
55 55
              form_ref.abstractpath.value=abstractpath;
56
              form_ref.qformat.value="";
56
              form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
57 57
              form_ref.submit();
58 58
          }
59 59
          function submitform2(action, qformat, form_ref) {
60 60
              form_ref.action.value=action;
61
              form_ref.qformat.value=qformat;
61
              form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
62 62
              form_ref.abstractpath.value="";
63 63
              form_ref.submit();
64 64
          }
build.xml
136 136
      <property name="servlet-path"        value="/${context}/servlet/metacat"/>
137 137
      <property name="html-path"           value="/${context}"/>
138 138
      <property name="systemidserver"      value="http://${server}"/>
139
      
140
      <property name="style-common-relpath" value="/style/common"/>
139
      <property name="style-common-relpath" 
140
                                           value="/style/common"/>
141 141
      <property name="style-common-fullpath" 
142
                value="/${installdir}${style-common-relpath}"/>
142
                                           value="/${installdir}${style-common-relpath}"/>
143 143
      <property name="style-common-path" 
144
                value="/${context}${style-common-relpath}"/>
144
                                           value="/${context}${style-common-relpath}"/>
145 145
      <property name="style-skins-relpath" value="/style/skins"/>
146 146
      <property name="style-skins-path"    value="/${context}${style-skins-relpath}"/>
147 147
      <property name="replication-log"     value="/tmp/metacatreplication.log"/>
......
153 153
      <property name="eml2-tag"            value="EML_2_0_0_FOR_METACAT" />
154 154
      <property name="eml2namespace"       value="eml://ecoinformatics.org/eml-2.0.0" />
155 155
      <property name="stmmlnamespace"      value="http://www.xml-cml.org/schema/stmml" />
156
      <property name="eml-css"             value="eml_xsl.css"/>
157
      <property name="eml-module.default.css"
158
                                           value="default.css"/>
156 159
      <property name="conversion-module"   value="webmdentry" />
157 160

  
158 161
      <!-- Config for registry variables -->
159
      <property name="scope" value="obfs"/>
160
      <property name="responseForm" value="genericResponse.tmpl"/>
161
      <property name="entryForm" value="entryForm.tmpl"/>
162
      <property name="guide" value="genericGuide.tmpl"/>
162
      <property name="scope"               value="obfs"/>
163
      <property name="responseForm"        value="genericResponse.tmpl"/>
164
      <property name="entryForm"           value="entryForm.tmpl"/>
165
      <property name="guide"               value="genericGuide.tmpl"/>
163 166
      <property name="confirmData" value="confirmData.tmpl"/>
164 167
      <property name="deleteData" value="deleteData.tmpl"/>
165 168
      <property name="genericHeader" value="genericHeader.tmpl"/>
......
202 205
      <filter token="mcanotheruser" value="${mcanotheruser}"/>
203 206
      <filter token="mcanotherpassword" value="${mcanotherpassword}"/>
204 207
      <filter token="knb-site-url" value="${knb-site-url}"/>
208
      <filter token="eml-css" value="${eml-css}"/>
205 209
      <filter token="style-skins-relpath" value="${style-skins-relpath}"/>
206 210
      <filter token="style-skins-path" value="${style-skins-path}"/>
207 211
      <filter token="style-common-relpath" value="${style-common-relpath}"/>
......
347 351
       <include name="**/*.xsl"/>
348 352
     </fileset>
349 353
     </copy>
354
     
355
     <!-- now copy default css from eml module and put it in style-common-path 
356
          dir with a new name, so other skin-specific css can import it if reqd -->
357
     <copy file="${build.tmp}/${eml-module}/${eml-module.default.css}"
358
           tofile="${style-common-fullpath}/${eml-css}" />
350 359
   </target>
351 360

  
352 361
   <target name="getdtd" depends="prepare">

Also available in: Unified diff