Revision 5696
Added by ben leinfelder about 14 years ago
lib/style/skins/semtools/annotation.xsl | ||
---|---|---|
45 | 45 |
<title>Annotation Details</title> |
46 | 46 |
<link rel="stylesheet" type="text/css" |
47 | 47 |
href="/knb/style/skins/{$qformat}/{$qformat}.css" /> |
48 |
<script language="javascript" type="text/javascript" |
|
49 |
src="/knb/style/skins/semtools/jsTree/_lib/jquery.js"></script> |
|
48 | 50 |
<script language="Javascript" type="text/JavaScript" |
49 | 51 |
src="/knb/style/skins/{$qformat}/{$qformat}.js" /> |
50 | 52 |
<script language="Javascript" type="text/JavaScript" |
51 | 53 |
src="/knb/style/common/branding.js" /> |
54 |
<script language="Javascript" type="text/JavaScript" |
|
55 |
src="/knb/style/skins/semtools/search.js" /> |
|
52 | 56 |
</head> |
53 | 57 |
|
54 | 58 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> |
lib/style/skins/semtools/search.js | ||
---|---|---|
85 | 85 |
//alert("query: " + submitFormObj.query.value); |
86 | 86 |
|
87 | 87 |
return true; |
88 |
} |
|
88 |
} |
|
89 |
function loadStats(divId, docId, url) { |
|
90 |
$("#" + divId).load( |
|
91 |
url, |
|
92 |
{ |
|
93 |
'action': "getlog", |
|
94 |
'docid': docId, |
|
95 |
'qformat': "semtools" |
|
96 |
}, |
|
97 |
// call back function when loading finishes |
|
98 |
function(response, status, xhr) { |
|
99 |
//alert("callback for: " + divId + " selected node: " + selectedNodeId); |
|
100 |
// error |
|
101 |
if (status == "error") { |
|
102 |
var msg = "Sorry but there was an error: "; |
|
103 |
$("#error").html(msg + xhr.status + " " + xhr.statusText); |
|
104 |
} |
|
105 |
}); |
|
106 |
} |
lib/style/skins/semtools/annotation-root.xsl | ||
---|---|---|
50 | 50 |
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="subGroup"> |
51 | 51 |
<tr> |
52 | 52 |
<td> |
53 |
|
|
53 | 54 |
<table class="subGroup subGroup_border"> |
54 | 55 |
<tr> |
55 | 56 |
<th colspan="2"> |
... | ... | |
95 | 96 |
</a> |
96 | 97 |
</td> |
97 | 98 |
</tr> |
98 |
</table> |
|
99 |
</table> |
|
100 |
|
|
101 |
|
|
99 | 102 |
</td> |
103 |
<td> |
|
104 |
|
|
105 |
<!-- stats --> |
|
106 |
<div id="stats"></div> |
|
107 |
<script language="JavaScript"> |
|
108 |
loadStats('stats', '<xsl:value-of select="./@emlPackage" />', '<xsl:value-of select="$contextURL" />/metacat'); |
|
109 |
</script> |
|
110 |
|
|
111 |
</td> |
|
100 | 112 |
</tr> |
101 | 113 |
|
102 | 114 |
<xsl:if test="$showAll='true'"> |
lib/style/skins/semtools/semtools.xml | ||
---|---|---|
7 | 7 |
<target publicid="-//W3C//HTML//EN">/style/skins/semtools/resultset.xsl</target> |
8 | 8 |
</doctype> |
9 | 9 |
|
10 |
<doctype publicid="-//NCEAS//log//EN"> |
|
11 |
<target publicid="-//W3C//HTML//EN">/style/common/log.xsl</target> |
|
12 |
</doctype> |
|
13 |
|
|
10 | 14 |
<!-- Annotation rendering --> |
11 | 15 |
<doctype publicid="http://ecoinformatics.org/sms/annotation.0.9"> |
12 | 16 |
<target publicid="-//W3C//HTML//EN">/style/skins/semtools/annotation.xsl</target> |
lib/style/common/log.xsl | ||
---|---|---|
45 | 45 |
<xsl:for-each select="distinct-values(./log/logEntry/docid)" > |
46 | 46 |
<xsl:variable name="uniqueDocid" select="string(.)"/> |
47 | 47 |
<tr> |
48 |
<th> |
|
48 |
<th colspan="2"> |
|
49 |
Usage Statistics |
|
50 |
</th> |
|
51 |
</tr> |
|
52 |
<tr> |
|
53 |
<td> |
|
49 | 54 |
Doc Id: |
50 |
</th>
|
|
51 |
<th>
|
|
55 |
</td>
|
|
56 |
<td>
|
|
52 | 57 |
<xsl:value-of select="$uniqueDocid" /> |
53 |
</th>
|
|
58 |
</td>
|
|
54 | 59 |
</tr> |
55 | 60 |
<tr> |
56 | 61 |
<td> |
Also available in: Unified diff
add stats to semtools