Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!--
3
	*  '$RCSfile$'
4
	*      Authors: Matt Jones, Chad Berkley
5
	*    Copyright: 2000-2007 Regents of the University of California and the
6
	*               National Center for Ecological Analysis and Synthesis
7
	*  For Details: http://www.nceas.ucsb.edu/
8
	*
9
	*   '$Author: leinfelder $'
10
	*     '$Date: 2013-07-12 18:39:34 -0700 (Fri, 12 Jul 2013) $'
11
	* '$Revision: 7976 $'
12
	*
13
	* This program is free software; you can redistribute it and/or modify
14
	* it under the terms of the GNU General Public License as published by
15
	* the Free Software Foundation; either version 2 of the License, or
16
	* (at your option) any later version.
17
	*
18
	* This program is distributed in the hope that it will be useful,
19
	* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
	* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
	* GNU General Public License for more details.
22
	*
23
	* You should have received a copy of the GNU General Public License
24
	* along with this program; if not, write to the Free Software
25
	* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
	*
27
	* This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
28
	* convert an XML file showing the resultset of a query
29
	* into an HTML format suitable for rendering with modern web browsers.
30
-->
31
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
32
                xmlns:eml="eml://ecoinformatics.org/eml-2.0.1" 
33
	            version="1.0"> 
34

    
35
	<xsl:output method="html" encoding="UTF-8"/>
36
	<xsl:param name="sessid" />
37
	<xsl:param name="qformat">default</xsl:param>
38
	<xsl:param name="enableediting">false</xsl:param>
39
	<xsl:param name="contextURL"/>
40
	<xsl:param name="cgi-prefix"/>
41
	
42
	<xsl:template name="documenthead">
43
		<head>
44
		  <title>KNB | About</title>
45
		    <meta charset="utf-8"/>
46
		    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
47
		    <meta name="description" content="Template file for DataDepot Layout"/>
48
		    <meta name="author" content="Matt Jones"/>
49
		
50
		    <!-- Stylesheets -->
51
		    <link href="{$contextURL}/style/skins/{$qformat}/css/bootstrap.min.css" rel="stylesheet"/>
52
		    <link href="{$contextURL}/style/skins/{$qformat}/css/font-awesome.min.css" rel="stylesheet"/>
53
		    <link href="{$contextURL}/style/skins/{$qformat}/css/bootstrap-responsive.min.css" rel="stylesheet"/>
54
		    <link href="{$contextURL}/style/skins/{$qformat}/css/metacatui.css" rel="stylesheet"/>
55
		
56
		    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
57
		    <!--[if lt IE 9]>
58
		      <script src="../assets/js/html5shiv.js"></script>
59
		    <![endif]-->
60
		
61
		    <!-- TODO: Fav and touch icons -->
62
		    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-144-precomposed.png"/>
63
		    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-114-precomposed.png"/>
64
		    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-72-precomposed.png"/>
65
		    <link rel="apple-touch-icon-precomposed" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-57-precomposed.png"/>
66
		    <link rel="shortcut icon" href="http://twitter.github.com/bootstrap/assets/ico/favicon.png"/>
67
		</head>
68
	</xsl:template>
69
	
70
	<xsl:template name="bodyheader">
71
		<!-- NAVBAR
72
	    ======================================================================= -->
73
	    <nav id="Navbar" class="container">
74
	      <div class="navbar">
75
	        <div class="navbar-inner">
76
	          <div class="nav-collapse collapse">
77
	            <a class="brand" href="#">knb</a>
78
	            <ul class="nav">
79
	              <li class="active"><a href="#about">About</a></li>
80
	              <li><a href="#tools">Tools</a></li>
81
	              <!-- Read about Bootstrap dropdowns at http://twitter.github.com/bootstrap/javascript.html#dropdowns -->
82
	              <li class="dropdown">
83
	                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Plans <b class="caret"></b></a>
84
	                <ul class="dropdown-menu">
85
	                  <li><a href="#">About data plans</a></li>
86
	                  <li class="divider"></li>
87
	                  <li><a href="#">Basic (free)</a></li>
88
	                  <li><a href="#">Annual Data</a></li>
89
	                  <li><a href="#">Big Data</a></li>
90
	      
91
	                </ul>
92
	              </li>
93
	              <li>
94
	                <div class="nav">
95
	                  <div class="input-append">
96
	                    <input type="text" class="span4" placeholder="Search for data" id="search_txt"/>
97
	                    <button type="button" class="btn" id="search_btn"><i class="icon-search icon-white icon-large"></i></button>
98
	                  </div>
99
	                </div>
100
	              </li>
101
	              <li id="SignIn"><a href="#user">Sign In</a></li>
102
	            </ul>
103
	          </div><!--/.nav-collapse -->     
104
	        </div><!-- /.navbar-inner -->
105
	      </div><!-- /.navbar -->
106
	    </nav><!-- /mainNavbar -->
107
	    
108
	    <!-- HEADER SECTION 
109
	    ======================================================================= -->
110
	    <header id="Header" class="row">
111
	      <img alt="Waxflower image" src="{$contextURL}/style/skins/{$qformat}/img/slide_06.jpg"/>
112
	    </header><!-- /Header -->
113
	</xsl:template>
114
    
115
    <xsl:template name="emldocument">
116
    	<!-- CONTENT SECTION
117
	    ======================================================================= -->    
118
	    <article id="Eml">
119
	    	<div class="container">
120
	    		<div class="row-fluid">
121
	        		<xsl:apply-templates select="*[local-name()='eml']"/>
122
	        	</div>
123
	        </div>
124
	    </article>  		
125
					
126
    </xsl:template>
127

    
128
	<xsl:template name="bodyfooter">
129
		<!-- FOOTER SECTION
130
	    ======================================================================= -->
131
	    <footer id="Footer" class="footer">
132
	      <div class="container">
133
	        <div class="row-fluid pagination-centered">
134
	          <h3><span>The</span> Knowledge Network <span>for</span> Biocomplexity</h3>
135
	        </div>
136
	      </div>
137
	    </footer>
138
	    <!-- Templates used for rendering data from the models
139
	    ======================================================================= -->
140
	    <script type="text/template" id="result-template">
141
	    <![CDATA[
142
	        <div class="result-selection span1"><input type="checkbox" <%= selected ? 'checked' : '' %>></div>
143
	        <div class="result-citation span7">
144
	              <span class="result-author"><% var count=0; _.each(origin, function(author) {
145
	                   count++;
146
	                   if (count > 1) {
147
	                       print(", ")
148
	             }
149
	                   if (count > 1 && count == origin.length) {
150
	                       print("and ")
151
	             }
152
	                   print(author)
153
	                   if (count == origin.length) {
154
	                       print(". ")
155
	             }
156
	               }) %></span>
157
	               <span class="result-pubdate"> <% if(pubDate) { 
158
	                   print(moment(pubDate).format('YYYY'), '. ')
159
	               } else {
160
	                   print(moment(dateUploaded).format('YYYY'), '. ')
161
	               } %></span>
162
	               <span class="result-title"> <% if (title) { print('<a href=\"', baseurl, id, '\">', title, '.</a> '); } %></span>
163
	               <span class="result-id"> <%- id %></span>
164
	        </div>
165
	        <div class="result-stats span2"><span class="badge badge-info"><%- downloads %></span> <span class="badge badge-success"><%- citations %></span></div>
166
	        
167
	      <div class="btn-group span1">
168
	        <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
169
	          Download
170
	          <span class="caret"></span>
171
	        </a>
172
	        <ul class="dropdown-menu">
173
	          <li><a href="#">Add to collection...</a></li>
174
	          <li class="divider"></li>
175
	          <li><a href="#">Share...</a></li>
176
	        </ul>
177
	      </div>
178
	   ]]>
179
	  </script>
180
	  <script type="text/template" id="statcounts-template">
181
	  <![CDATA[
182
	  	<div class="result-header-count span8" id="countstats"><%- start %> to <%- end %> of <%- numFound %></div>
183
	  ]]>
184
	  </script>
185
	    
186
	    
187
	    <!-- Javascript at the end of the document to load pages faster 
188
	    ======================================================================= -->
189
	    <script src="{$contextURL}/style/skins/{$qformat}/components/jquery.js"></script>
190
	    <script src="{$contextURL}/style/skins/{$qformat}/components/holder.js"></script>
191
	    <script src="{$contextURL}/style/skins/{$qformat}/components/bootstrap.min.js"></script>
192
	    <script src="{$contextURL}/style/skins/{$qformat}/components/underscore.js"></script>
193
	    <script src="{$contextURL}/style/skins/{$qformat}/components/json2.js"></script>    
194
	  	<script src="{$contextURL}/style/skins/{$qformat}/components/backbone.js"></script>
195
	  	<script src="{$contextURL}/style/skins/{$qformat}/components/moment.js"></script>
196
	    <script src="{$contextURL}/style/skins/{$qformat}/js/models/SolrHeader.js"></script>
197
	    <script src="{$contextURL}/style/skins/{$qformat}/js/models/SolrResult.js"></script>
198
	    <script src="{$contextURL}/style/skins/{$qformat}/js/collections/SolrResults.js"></script>
199
	    <script src="{$contextURL}/style/skins/{$qformat}/js/routers/router.js"></script>
200
	    <script src="{$contextURL}/style/skins/{$qformat}/js/views/SearchResultView.js"></script>
201
	    <script src="{$contextURL}/style/skins/{$qformat}/js/views/AppView.js"></script>    
202
	  	<script src="{$contextURL}/style/skins/{$qformat}/js/app.js"></script>
203
	    
204
	    <script>
205
	      !function ($) {
206
	        $(function(){
207
	          $('.carousel').carousel()
208
	        })
209
	      }(window.jQuery)
210
	    </script>
211
	</xsl:template>
212

    
213
</xsl:stylesheet>
(1-1/8)