Project

General

Profile

redmine2988.patch

Skye Roseboom, 2012-06-22 19:38

Download (4.35 KB)

View differences:

src/main/webapp/WEB-INF/views/brief.jsp (working copy)
44 44
		<script type="text/javascript"src="../scripts/jquery/tooltip/jquery.tooltip.pack.js"></script>
45 45
		<link rel="stylesheet" type="text/css" href="../scripts/jquery/tooltip/jquery.tooltip.css"/>
46 46
	
47
		<script type="text/javascript" src="../scripts/googleAnalytics.js" ></script>
48
	
47 49
		<script type="text/javascript">
48 50
		$(document).ready(function() {
49 51
				$('.tuncate').truncate({max_length: 200});			 
src/main/webapp/WEB-INF/views/myview.jsp (working copy)
14 14

  
15 15
<script type='text/javascript' src="../scripts/brief.js"></script>
16 16
<script src="../scripts/ranking.js" type="text/javascript"></script>
17
<script type="text/javascript" src="../scripts/googleAnalytics.js" ></script>
17 18
<link rel="stylesheet" type="text/css" href="../styles/brief_page.css">	
18 19
<link href="https://www.dataone.org/themes/fusion/plum/css/local.css" rel="stylesheet" type="text/css" />
19 20
<link href="https://www.dataone.org/sites/all/themes/fusion/plum/css/plum-style.css" rel="stylesheet" type="text/css" />
src/main/webapp/scripts/googleAnalytics.js (revision 0)
1
// assign google anaylytics key based on the hostname of originating web server.
2
var _gaq_account = 'UA-15017327-12';  // non-prod analytics account
3
var current_host = window.location.hostname;
4
if ('cn-unm-1.dataone.org' === current_host ||
5
	'cn-ucsb-1.dataone.org' === current_host ||
6
	'cn-orc-1.dataone.org' === current_host ||
7
	'cn.dataone.org' === current_host) {
8
	_gaq_account = 'UA-15017327-9'; // production analytics account
9
}
10
	
11
var _gaq = _gaq || [];
12
_gaq.push(['_setAccount', _gaq_account ]);
13
_gaq.push(['_setDomainName', 'dataone.org']);
14
_gaq.push(['_trackPageview']);
15

  
16
(function() {
17
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
18
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
19
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
20
})();
src/main/webapp/WEB-INF/views/full.jsp (working copy)
40 40
		<script type="text/javascript" src="../scripts/tablesorter.js"></script>
41 41
		<script type="text/javascript" src="../scripts/tablesorter_filter.js"></script>
42 42
		<script type="text/javascript" src="../scripts/jquery.tablesorter.pager.js"></script>
43
		
44
		<script type="text/javascript" src="../scripts/googleAnalytics.js" ></script>
43 45

  
44

  
45 46
		<script>
46 47
			var urlAddress = location.href;
47 48
			 $(document).ready(function() {		
src/main/webapp/index.jsp (working copy)
1 1
<!doctype html>
2 2

  
3 3
<html xmlns="http://www.w3.org/1999/xhtml">
4
	<head>
4
<head>
5 5
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 6
	<title>A Search Tool for Scientific Data</title>
7 7
	<link rel="shortcut icon" type="image/x-icon"  href="images/favicon_d1.ico" />
......
51 51
	<link rel="stylesheet" type="text/css" href="styles/autocomplete.css"/>		
52 52
	<link rel="stylesheet" type="text/css" href="styles/jquery.cluetip.css" />
53 53
	
54
	<script type="text/javascript" src="scripts/googleAnalytics.js" ></script>
54 55
	
55 56
		<script>
56 57
			 $(document).ready(function() { 
......
79 80
				hidden = open('../send/processRss?${solrTransactionDetail.mercury3_query_string}&sortattribute=pubDate','RSSWindow');
80 81
			} 
81 82
		</script>
82
	</head>
83
</head>
83 84

  
84
	<body>
85
<body>
85 86
    <div id="page-inner-frame" class="header-group-wrapper footer-wrapper" >
86 87

  
87 88
		<div id="header-container" class="left">
Add picture from clipboard (Maximum size: 14.8 MB)