Project

General

Profile

« Previous | Next » 

Revision 3764

use {$contextURL} param for absolute paths (instead of relative paths)
note: this file seems not to be used in metacat now.

View differences:

lib/style/common/keywords-list.xsl
31 31
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
32 32
  <xsl:output method="html"/>
33 33
  <xsl:param name="qformat">default</xsl:param>
34
  <xsl:param name="contextURL"/>
35
  <xsl:param name="cgi-prefix"/>
34 36
  <xsl:template match="/">
35 37
    <html>
36 38
      <head>
37 39
        <link rel="stylesheet" type="text/css" 
38
              href="./style/skins/{$qformat}/{$qformat}.css" />
40
              href="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" />
39 41
      </head>
40 42

  
41 43
      <body>
......
62 64
         </tr>
63 65
         <tr>
64 66
          <td align="right" valign="top" colspan="7">
65
            <form action="./metacat" method="POST">
67
            <form action="{$contextURL}/metacat" method="POST">
66 68
             Data Search: <input type="text" name="anyfield" size="10" />
67 69
             <input type="hidden" name="action" value="query" />   
68 70
             <input type="hidden" name="qformat" value="knb" />
......
119 121
  <xsl:template match="param">
120 122
     <li>
121 123
     <a>
122
       <xsl:attribute name="href">./metacat?action=query&amp;operator=INTERSECT&amp;qformat=knb&amp;returndoctype=eml://ecoinformatics.org/eml-2.0.0&amp;returndoctype=eml://ecoinformatics.org/eml-2.0.1&amp;returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN&amp;returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN&amp;returnfield=dataset/title&amp;returnfield=citation/title&amp;returnfield=software/title&amp;returnfield=protocol/title&amp;returnfield=keyword&amp;returnfield=originator/individualName/surName&amp;returnfield=creator/individualName/surName&amp;returnfield=originator/organizationName&amp;returnfield=creator/organizationName&amp;keyword=<xsl:value-of select="."/></xsl:attribute>
124
       <xsl:attribute name="href">{$contextURL}/metacat?action=query&amp;operator=INTERSECT&amp;qformat=knb&amp;returndoctype=eml://ecoinformatics.org/eml-2.0.0&amp;returndoctype=eml://ecoinformatics.org/eml-2.0.1&amp;returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN&amp;returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN&amp;returnfield=dataset/title&amp;returnfield=citation/title&amp;returnfield=software/title&amp;returnfield=protocol/title&amp;returnfield=keyword&amp;returnfield=originator/individualName/surName&amp;returnfield=creator/individualName/surName&amp;returnfield=originator/organizationName&amp;returnfield=creator/organizationName&amp;keyword=<xsl:value-of select="."/></xsl:attribute>
123 125
     <xsl:value-of select="."/>
124 126
     </a> (<xsl:value-of select="count(//param[.=current()])"/>)
125 127
     </li>

Also available in: Unified diff