Project

General

Profile

« Previous | Next » 

Revision 2914

Added by anderson almost 19 years ago

adding metacat spatial query results styles

View differences:

lib/style/common/spatial_results.xsl
1
<?xml version="1.0"?>
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3
    <xsl:output method="html" indent="yes" encoding="ISO-8859-1" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd" />
4

  
5
    <xsl:template match="/">
6
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
<head>
8
<title>Metacat Spatial Query Results</title>
9
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
10
<link href="spatial_results.css" media="screen" rel="Stylesheet" type="text/css"/>
11
<link href="/knb/style/skins/knb/knb.css" type="text/css" rel="stylesheet"/>
12
<script src="/knb/style/skins/knb/knb.js" type="text/JavaScript" language="Javascript"></script>
13
<script src="/knb/style/common/branding.js" type="text/JavaScript" language="Javascript"></script>
14
</head>
15

  
16
<body>
17
    <div id="mainTableAligmentStyle">
18
    <script language="JavaScript">insertTemplateOpening();</script>
19

  
20
    <h2>Metacat Spatial Query Results</h2>
21
    <xsl:apply-templates />
22

  
23
    </div>
24

  
25
</body>
26
</html>
27
</xsl:template>
28

  
29
<xsl:template match="metacatspatialdataset">
30
    <div id="query_results">
31
        <xsl:apply-templates />
32
    </div>
33
</xsl:template>
34

  
35
<xsl:template match="metacatspatialdocument[position() mod 2 = 1]">
36
    <p class="mc_doc odd">
37
    <xsl:call-template name="show_doc" />
38
    </p>
39
</xsl:template>
40

  
41
<xsl:template match="metacatspatialdocument">
42
    <p class="mc_doc even">
43
    <xsl:call-template name="show_doc" />
44
    </p>
45
</xsl:template>
46

  
47
<xsl:template name="show_doc">
48
    <a><xsl:attribute name="href">/knb/servlet/metacat?action=read&amp;docid=<xsl:value-of select="docid"/>&amp;qformat=knb</xsl:attribute><xsl:value-of select="docid"/></a>
49
    <i><xsl:value-of select="creator/individualName/surName"/>, <xsl:value-of select="creator/individualName/givenName"/></i>
50
    <blockquote><xsl:value-of select="abbreviated_abstract"/></blockquote>
51
</xsl:template>
52

  
53
</xsl:stylesheet>
0 54

  
lib/style/common/spatial_results.css
1
#query_results {
2
    width: 70%;
3
}
4

  
5
.mc_doc { margin: 9px 3px; }
6
.odd { background-color: #e6e6e6; }
7
.even { background-color: #ccc; }
8

  
9
.mc_doc a,
10
.mc_doc a:visited {
11
    /* docid */
12
    color: #05F;
13
    border: 1px solid #bcbcbc;
14
    background-color: #fff;
15
    padding: 5px 15px;
16
    font-weight: bold;
17
    font-size: 13pt;
18
    text-decoration: none;
19
}
20
.mc_doc a:visited {
21
    background-color: #efefef;
22
    color: #7AA4FF;
23
}
24
.mc_doc a:hover {
25
    border-color: #05f;
26
    background-color: #B8CFFF;
27
    color: #05f;
28
}
29

  
30
.mc_doc i {
31
    /* creator */
32
    padding-left: 10px;
33
    color: #666;
34
    font-size: 10pt;
35
}
36

  
37
blockquote {
38
    /* abstract */
39
    margin: 0px;
40
    padding: 1px 3px 9px 18px;
41
    color: #333;
42
    font-size: 11pt;
43
}
44

  
45

  
0 46

  

Also available in: Unified diff