Project

General

Profile

1
<%@ taglib prefix="s" uri="/struts-tags"%>
2
<%@ page contentType="text/html; charset=UTF-8"%>
3

    
4

    
5
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
6
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
7
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
8

    
9
    <head>
10
        <title>DRIVER Dashboard</title>
11
        
12
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>        
13
        <link href='<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/assets/<s:property value="#application['webInterfaceLayoutManager'].cssFileName" />' rel="stylesheet" type="text/css" />
14

    
15
		<!--[if IE 6]>
16
			<link href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/assets/driver_search_ie6.css" rel="stylesheet" type="text/css" />
17
		<![endif]-->
18

    
19
        <link rel="shortcut icon" href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/favicon.ico" />
20
        <script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/mootools-1.2.3-core.js"></script>
21
        <script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/mootools-1.2.3.1-more.js"></script>
22
        <script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/smarthoverbox.js"></script>
23
    	<link media="all" href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/assets/widget17.css" type="text/css" rel="stylesheet" />
24

    
25
    <script type="text/javascript">
26
        function equalize(tag)
27
        {
28
            var columns = $$(tag);
29
            var max_height = 0;
30
	
31
            columns.each(function(item) {
32
                max_height = Math.max(max_height, item.getSize().y);
33
            });
34
	
35
            columns.setStyle('height', max_height);
36
        }
37

    
38
        window.addEvent('domready', function(){equalize('.equalize')});
39
        window.addEvent('domready', function(){equalize('.equalize2')});
40
    </script>
41
    <script type="text/javascript" language="javascript">
42
        function init() {
43
        }
44

    
45
        // Selection summary
46
        var selectedDate = null;
47
        var selectedTypes = null;
48
        var selectedLanguages = null;
49
        var selectedRepositories = null;
50
        var selectedCommunities = null;
51
        var selectedCollections = null;
52

    
53
        var showDetail;
54

    
55
        function initSelectionArrays() {
56
            var dateDescription = '';
57
            var typeDescription = 'Article$$Bachelor thesis$$Book$$Conference lecture$$Conference report$$Contribution for newspaper or weekly magazine$$Doctoral thesis$$External research report$$Internal report$$Lecture$$Master thesis$$Newsletter$$Part of book or chapter of book$$Research paper$$Unknown';
58
            var languageDescription = '';
59
            var repositoryDescription = '';
60
            var communityDescription = '';
61
            var collectionDescription = '';
62

    
63
            showDetail = true;
64
            if (dateDescription != '') {
65
                selectedDate = dateDescription;
66
            } else {
67
                selectedDate = null;
68
            }
69

    
70
            if (typeDescription != '') {
71
                selectedTypes = typeDescription.split('$$');
72
            } else {
73
                selectedTypes = new Array(0);
74
            }
75

    
76
            if (languageDescription != '') {
77
                selectedLanguages = languageDescription.split('$$');
78
            } else {
79
                selectedLanguages = new Array(0);
80
            }
81

    
82
            if (repositoryDescription != '') {
83
                selectedRepositories = repositoryDescription.split('$$');
84
            } else {
85
                selectedRepositories = new Array(0);
86
            }
87

    
88
            if (communityDescription != '') {
89
                selectedCommunities = communityDescription.split('$$');
90
            } else {
91
                selectedCommunities = new Array(0);
92
            }
93

    
94
            if (collectionDescription != '') {
95
                selectedCollections = collectionDescription.split('$$');
96
            } else {
97
                selectedCollections = new Array(0);
98
            }
99
        }
100

    
101
        function showDetailsDesc() {
102
            var selectHeadDiv = document.getElementById('selectedFields');
103

    
104
            if (selectHeadDiv != null) {
105
                var innerHtmlHead = '';
106

    
107
                if (showDetail == true) {
108
                    changeVisibility();
109
                }
110
            }
111
        }
112
    </script>
113

    
114
    <style>
115
        /* IE specific css */
116
        .clearfix {zoom: 1; display:block;}
117
        * html .clearfix {height:1%;}
118

    
119
    </style>
120
</head>
121

    
122
<body>
123
    <!--NMI
124
<object type="application/x-shockwave-flash" data="pages/button1.swf" id="atff" height="1px" width="1px"><param value="transparent" name="wmode"><param value="always" name="allowScriptAccess"></object>
125
    -->
126
    <div id="center">
127
        <div id="wrapper">
128
            <div class="wrapper_shadowleft">
129
                <div class="wrapper_shadowright">
130
                    <div id="container">
131
                        <jsp:include page="/pages/banner.jsp" />
132
                        <jsp:include page="/pages/menu.jsp" />
133
                        <div id="leftcolumn">
134
                            <b class="curved_top">
135
                                <b class="curved_t1"></b>
136
                                <b class="curved_t2"></b>
137
                                <b class="curved_t3"></b>
138
                                <b class="curved_t4"></b>
139
                            </b>
140
                            <div class="curved_container clearfix">
141
                            <jsp:include page="/pages/optionMenu.jsp" />
142
                            </div>
143
                            <b class="curved_bottom">
144
                                <b class="curved_b4"></b>
145
                                <b class="curved_b3"></b>
146
                                <b class="curved_b2"></b>
147
                                <b class="curved_b1"></b>
148
                            </b>
149
                        </div>
150
                        
151
                        <div id="maincolumn2">
152
                            <div id="myPage">
153
                                <b class="curved_top"> <b class="curved_t1"></b> <b class="curved_t2"></b> <b class="curved_t3"></b> <b class="curved_t4"></b> </b>
154
                                <!-- this is the plain search area -->
155
                                <div class="curved_container equalize2 clearfix" >
156
                                    <div class="featured_top myPage_top">
157
                                        <img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/summary.png" alt="Summary" align="absmiddle" height="16" width="16" /> 
158
                                        Welcome
159
                                    </div>
160
                                    <s:if test="showRecommendations == true">
161
                                        <div class="mydriveritem col1">
162
                                            <div class="announcements" >
163
                                                <div class="myPageAnnouncements">
164
                                                	News/announcements that you maybe interested in
165
                                                 </div>
166
                                                <ul>
167
                                                    <s:if test="%{#announcements.size() > 0}">
168
                                                        <s:iterator value="announcements" var="announce">
169
                                                            <li>
170
                                                                <strong>
171
                                                                    <s:date name="#announce.generationDate" format="dd MMM yyyy" />:
172
                                                                    <s:property escape="false" value="#announce.title"/> -</strong>
173
                                                                    <s:property escape="false" value="#announce.content"/>
174
                                                            </li>
175
                                                        </s:iterator>
176
                                                        <s:if test="announcementNumber > 3">
177
                                                            <a href="MyAlerts.action">Read more...</a>
178
                                                        </s:if>
179
                                                  	</s:if>
180
                                                    <s:else>
181
                                                        <div class="myPageField">
182
                                                            <span class="myPageFieldComments">
183
                                                            	There are no new announcements.
184
                                                            </span>
185
                                                        </div>
186
                                                    </s:else>
187
                                                </ul>
188

    
189
                                                
190
                                                <div class="myPageAlerts">
191
                                               	 Check out your alerts or recommendations
192
                                                </div>
193
                                                <ul>
194
                                                	<s:if test="%{#recommendations.size() > 0}">
195
                                                        <s:iterator value="recommendations" var="rec">
196
                                                            <li>
197
                                                                <strong><s:date name="#announce.generationDate" format="dd MMM yyyy" />:</strong>
198
                                                                <s:property escape="false" value="#rec.content"/>
199
                                                            </li>
200
                                                        </s:iterator>
201
                                                        <s:if test="recommendationNumber > 3">
202
                                                            <a href="MyAlerts.action">Read more...</a>
203
                                                        </s:if>
204
                                                     </s:if>
205
                                                    <s:else>
206
                                                        <div class="myPageField">
207
                                                            <span class="myPageFieldComments">
208
                                                            	You have no new alerts or recommendations.
209
                                                            </span>
210
                                                        </div>
211
                                                    </s:else>
212
                                                </ul>
213
                                            </div>
214
                                        </div>
215
                                    </s:if>
216
                                    <div class="mydriveritem col2">
217
                                        <div class="content equalize">
218
                                            <h2><img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/profile.png" width="16"
219
                                                     height="16" alt="Profile" /><a href="Profile.action">Profile</a></h2>
220
                                            <div class="avatar"><img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/avatar.png"
221
                                                                     width="65" height="66" alt="avatar" />
222
                                            </div>
223
                                            <div class="myPageField">
224
                                                <span class="myPageFieldNm">email:</span>
225
                                                <s:property value="#session.user.email" />
226
                                            </div>
227
                                            <div class="myPageField">
228
                                                <span class="myPageFieldNm">Name:</span>
229
                                                <s:property value="#session.user.firstname" />
230
                                                <s:property value="#session.user.lastname" />
231
                                            </div>
232
                                            <div class="myPageField">
233
                                                <span class="myPageFieldNm">Institution:</span>
234
                                                <s:property value="#session.user.institution" />
235
                                            </div>
236
                                            <p>&nbsp;</p>
237
                                            <div class="myPageField">
238
                                                <a href="Profile.action" class="ovalbutton"><span>Edit profile information</span></a>
239
                                            </div>
240
                                        </div>
241
                                    </div>
242
                                    <!-- MB - user "clearright" for the box on the right column -->
243
                                    <div class="mydriveritem col2 ">
244
                                        <div   class="content equalize">
245
                                            <h2><img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/dropbox.png" width="16" height="16" alt="Dropbox" /><a href="MyDropbox.action">Dropbox</a></h2>
246
                                            <div class="myPageField">
247
                                                <p class="myPageFieldComments">Use your dropbox 
248
                                                <!--NMI (max X items)
249
                                                -->
250
                                                to temporarily save references to items or documents which may be of further use.</p>
251
                                                <p class="myPageFieldComments">To place items in your dropbox, click on "Add to dropbox" button on your query results.</p>
252
                                            </div>
253

    
254
                                            <s:if test="%{#session.user.getDocumentIds().size() > 0}">
255
                                                <div class="myPageField">
256
                                                    You have <s:property value="#session.user.getDocumentIds().size()"/> items in your dropbox.
257
                                                </div>
258
                                                <div class="myPageField">
259
                                                <a href="MyDropbox.action" class="ovalbutton"><span>Manage Dropbox</span></a>
260
                                                </div>
261
                                            </s:if>
262
                                            <s:else>
263
                                                <div class="myPageField">You have not added any items to your dropbox.</div>
264
                                            </s:else>
265
                                        </div>
266
                                    </div>
267
                                    <s:if test="#application['webInterfaceLayoutManager'].layout.isViewCollections()">
268
                                        <div class="mydriveritem col2 ">
269
                                            <div  class="content equalize">
270
                                                <h2><img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/collection.png" width="16"
271
                                                         height="16" alt="Collections" /><a href="BrowseCollections.action">Collections</a></h2>
272
                                                <div class="myPageField myPageFieldComments">
273
                                                    <p class="myPageFieldComments">Use collections to create reading lists or organize your document references.</p>
274
                                                    <p class="myPageFieldComments">To create a collection click on the "Save as.." in your query results.</p>
275
                                                    <p><a href="Help.action?type=collection" class="helpLink">Learn more...</a></p>
276
                                                </div>
277

    
278
                                                <div class="myPageField">
279
                                                    <s:if test="%{#request.numberOfCollections == 0}">
280
                                                        You have not created any collections.
281
                                                    </s:if>
282
                                                    <s:else>
283
                                                        You are the owner of <a href="BrowseCollections.action">
284
                                                            <s:property value="#request.numberOfCollections"/> collections</a>.
285
                                                        </s:else>
286
                                                </div>
287

    
288
                                                <!-- NMI
289
                                                <div class="myPageField">
290
                                                    <a href="ManageCollections.action">Manage your Collections</a>
291
                                                </div>
292
                                                -->
293
                                                <div class="myPageField">
294
                                                    <a href="CreateCollection.action" class="ovalbutton"><span>Create a collection folder</span></a>
295
                                                </div>
296
                                            </div>
297
                                        </div>
298
                                    </s:if>
299
                                    <s:if test="#application['webInterfaceLayoutManager'].layout.isViewCommunities()">
300
                                        <div class="mydriveritem col2 ">
301
                                            <div   class="content equalize">
302
                                                <h2><img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/communities.png" width="16" height="16" alt="Communities" />
303
                                                    <a href="ViewMyCommunities.action">Communities</a>
304
                                                </h2>
305
                                                <div class="myPageField myPageFieldComments">
306
                                        	Create of subscribe to communities to collaborate with other users. 
307
                                            <p>
308
                                            <a href="Help.action?type=community" class="helpLink">Learn more...</a>
309
                                            </p>
310
                                                </div>
311

    
312
                                                <div class="myPageField">
313
                                        			You are currently a member in <a href="ViewMyCommunities.action"><s:property value="subscribedCommunites" /> communities.</a>
314
                                                </div>
315
                                                <div class="myPageField">
316
                                                    <a href="CreateCommunity.action" class="ovalbutton"><span>Create a Community</span></a>
317
                                                </div>
318
                                            </div>
319
                                        </div>
320
                                    </s:if>
321
                                    <div class="mydriveritem col2">
322
                                        <div  class="content equalize">
323
                                            <h2><img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/query.png" width="16" height="16"
324
                                                     alt="Queries" /><a href="MyQueries.action">Queries</a></h2>
325
                                            <div class="myPageField myPageFieldComments">
326
                                                <p class="myPageFieldComments">You can save some of your most frequently used queries.</p>
327
                                                <p class="myPageFieldComments">To save a query click on the "Save as.." in your query results. </p>
328
                                            </div>
329

    
330
                                            <div class="myPageField">
331
                                                <s:if test="%{#session.user.getSavedQueries().size() > 0}">
332
                                                    You have saved <s:property value="#session.user.getSavedQueries().size()"/> queries.
333
                                                    <br /><br />
334
                                                    <a href="MyQueries.action" class="ovalbutton"><span>Manage saved queries</span></a>
335
                                                </s:if>
336
                                                <s:else>
337
		                                            You have not saved any queries.
338
                                                </s:else>
339
                                            </div>
340
                                        </div>
341
                                    </div>
342
                                    <div class="mydriveritem col2 ">
343
                                        <div class="content equalize">
344
                                            <h2><img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/filter.png" width="16" height="16"
345
                                                     alt="Filter" /><a href="MyFilter.action">Filters</a></h2>
346
                                            <div class="myPageField">
347
                                                <p class="myPageFieldComments">You may specify additional criteria which will be used to filter your queries when you are logged in.</p>
348
                                                <p class="myPageFieldComments">To define a filter click on the "Save as.." in your query results. </p>
349
                                            </div>
350

    
351
                                            <div class="myPageField">
352
                                                <s:if test="%{#session.user.getFilter() != null}">
353
                                                    <a href="MyFilter.action" class="ovalbutton"><span>Manage qyery filter</span></a>
354
                                                </s:if>
355
                                                <s:else>
356
                                                    You have not defined any query filter.
357
                                                </s:else>
358
                                            </div>
359
                                        </div>
360
                                    </div>
361
                                    <!--NMI
362
                                    <div align="right">
363
                                        <div class="mydriveritem col2">
364
                                            <a href="Unsubscribe.action" class="ovalbutton"><span>Unsubscribe</span></a>
365
                                        </div>
366
                                    </div>
367
                                    -->
368
                                    <p>&nbsp;</p>
369
                                </div>
370
                                <b class="curved_bottom"> <b class="curved_b4"></b> <b class="curved_b3"></b> <b class="curved_b2"></b> <b class="curved_b1"></b> </b>
371
                            </div>
372
                        </div>
373
                        <div id="footer">
374
                        	 <s:action name="FooterPage" executeResult="true"/>   
375
                        </div>
376
                    </div>
377
                </div>
378
            </div>
379
        </div>
380
    </div>
381
</body>
382
</html>
(7-7/25)