Project

General

Profile

« Previous | Next » 

Revision 827

Modified metacat stylesheets to now use a "style-path" filter for setting
the path to XSL and CSS style sheets. this allows the style
location to be configured independently of the main web url for metacat
links.

View differences:

lib/style/resultset.xsl
34 34
    <html>
35 35
      <head>
36 36
        <link rel="stylesheet" type="text/css" 
37
              href="@web-base-url@/default.css" />
37
              href="@style-path@/default.css" />
38 38
        <script language="JavaScript">
39 39
          <![CDATA[
40 40
          function submitform(action,form_ref) {
lib/style/eml-file-display.xsl
36 36
    <html>       
37 37
      <head> 	
38 38
        <link rel="stylesheet" type="text/css" 
39
              href="@web-base-url@/default.css" />
39
              href="@style-path@/default.css" />
40 40
      </head>   
41 41
      <body> 	
42 42
        <center>           
lib/style/eml-dataset-display.xsl
37 37
    <html>
38 38
      <head>
39 39
        <link rel="stylesheet" type="text/css" 
40
              href="@web-base-url@/default.css" />
40
              href="@style-path@/default.css" />
41 41
      </head>
42 42
      <body>
43 43
        <center>
......
105 105
  <xsl:template match="title" mode="layout">
106 106
     <tr>
107 107
       <td class="highlight"><b><xsl:text>Title:</xsl:text></b></td>
108
       <td><xsl:value-of select="."/></td>
108
       <td><b><xsl:value-of select="."/></b></td>
109 109
     </tr>
110 110
  </xsl:template>
111 111

  
lib/style/eml-variable-display.xsl
37 37
    <html>
38 38
      <head>
39 39
        <link rel="stylesheet" type="text/css" 
40
              href="@web-base-url@/default.css" />
40
              href="@style-path@/default.css" />
41 41
      </head>
42 42
      <body>
43 43
        <center>
lib/style/resource.xsl
31 31
    <html>
32 32
    <head>
33 33
      <link rel="stylesheet" type="text/css" 
34
       href="@html-path@/style/rowcol.css" />
34
       href="@style-path@/rowcol.css" />
35 35
      <title>
36 36
        <xsl:value-of select="//title" />
37 37
      </title>
lib/style/login.xsl
43 43
    <xsl:when test="name(self::node())='login'">
44 44
      <head>
45 45
        <link rel="stylesheet" type="text/css" 
46
              href="@html-path@/style/rowcol.css" />
46
              href="@style-path@/rowcol.css" />
47 47
        <script language="JavaScript">
48 48
          <![CDATA[
49
          window.location="@html-path@/metacat.html"
49
          window.location="@html-path@/index.html"
50 50
          ]]>
51 51
        </script>
52 52
      </head>

Also available in: Unified diff