1
|
<%@ taglib prefix="s" uri="/struts-tags"%>
|
2
|
<%@ page contentType="text/html; charset=UTF-8"%>
|
3
|
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
|
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
|
<sx:head />
|
11
|
<title>Manage Collection</title>
|
12
|
|
13
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
14
|
|
15
|
<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" />
|
16
|
<link rel="shortcut icon" href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/favicon.ico" />
|
17
|
<link href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/Roar/Roar.css" rel="stylesheet" type="text/css" />
|
18
|
<link rel="stylesheet" type="text/css" href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/assets/yahooAssets/tree.css" />
|
19
|
<link rel="stylesheet" type="text/css" href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/assets/SimpleTabs.css" />
|
20
|
|
21
|
<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/Yahoo/treeview-min.js"></script>
|
22
|
<script src="/uoa-web-generic-latest/struts/dojo/dojo.js" type="text/javascript"></script>
|
23
|
<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/dateFormat.js"></script>
|
24
|
<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>
|
25
|
<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>
|
26
|
<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/smarthoverbox.js"></script>
|
27
|
<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/Roar/Roar.js"></script>
|
28
|
<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/SqueezeBox/SqueezeBox.js"></script>
|
29
|
<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/manageTreeView.js"></script>
|
30
|
<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/manageCheckboxes.js"></script>
|
31
|
<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/SimpleTabs.js"></script>
|
32
|
|
33
|
<script type="text/javascript">
|
34
|
var squeezeBoxLoading;
|
35
|
window.addEvent('domready', function() {
|
36
|
|
37
|
new SimpleTabs('tabblock', {
|
38
|
selector: 'h3'
|
39
|
});
|
40
|
|
41
|
// implement the hover box for the save query button
|
42
|
var smartBox = new SmartHoverBox( {
|
43
|
xOffset :0,
|
44
|
yOffset :5,
|
45
|
lockY :'bottom',
|
46
|
smartBoxSuffix :'_smarthbox'
|
47
|
});
|
48
|
|
49
|
squeezeBoxLoading = SqueezeBox.initialize({
|
50
|
handler: 'clone',
|
51
|
overlayOpacity: 0.4,
|
52
|
automaticResize: true,
|
53
|
closable: false,
|
54
|
onOpen: function() {
|
55
|
this.content.getChildren().setStyle('display','block');
|
56
|
this.closeBtn.setStyle('display','none');
|
57
|
this.showContent();
|
58
|
}
|
59
|
});
|
60
|
|
61
|
$('collection_loading').setStyle('display', 'none');
|
62
|
});
|
63
|
window.addEvent('domready', function removeDocs(documentIds, selectedDocuments) {
|
64
|
//load dojo RPC
|
65
|
dojo.require("dojo.rpc.*");
|
66
|
|
67
|
dojo.hostenv.writeIncludes();
|
68
|
dojo.require();
|
69
|
var col_ID = document.getElementById('collectionID');
|
70
|
|
71
|
//create service object(proxy) using SMD (generated by the json result)
|
72
|
var service = new dojo.rpc.JsonService("CollectionInfo");
|
73
|
|
74
|
//function called when remote method returns
|
75
|
var callback = function(bean) {
|
76
|
if(bean != -1) {
|
77
|
removeDocumentsFromUI(selectedDocuments);
|
78
|
roarQueue.alert("<p>You have " + bean + " items in your collection basket.</p>");
|
79
|
}
|
80
|
else
|
81
|
alert("A problem occured while removing document from collection basket.");
|
82
|
};
|
83
|
|
84
|
//execute remote method
|
85
|
var defered = service.removeFromBasket(documentIds,col_ID.value);
|
86
|
|
87
|
//attach callback to defered object
|
88
|
defered.addCallback(callback);
|
89
|
}
|
90
|
</script>
|
91
|
</head>
|
92
|
|
93
|
<body onload="formTree();" class="body-overlayed">
|
94
|
<div id="center">
|
95
|
<div id="wrapper">
|
96
|
<div class="wrapper_shadowleft">
|
97
|
<div class="wrapper_shadowright">
|
98
|
<div id="container">
|
99
|
<jsp:include page="/pages/banner.jsp"></jsp:include>
|
100
|
<jsp:include page="/pages/menu.jsp">
|
101
|
<jsp:param name="requestor" value="index" />
|
102
|
</jsp:include>
|
103
|
<div id="leftcolumn">
|
104
|
<b class="curved_top">
|
105
|
<b class="curved_t1"></b>
|
106
|
<b class="curved_t2"></b>
|
107
|
<b class="curved_t3"></b>
|
108
|
<b class="curved_t4"></b>
|
109
|
</b>
|
110
|
<div class="curved_container clearfix">
|
111
|
<div class="featured_top leftcolumn_top">Collections</div>
|
112
|
<div id="expandcontractdiv">
|
113
|
<a id="expand" href="#">Expand all</a> <a id="collapse" href="#">Collapse all</a>
|
114
|
</div>
|
115
|
<div id="treeDiv1" ></div>
|
116
|
<div class="mydrivermenu2">
|
117
|
<div class="tipHdr">tip</div>
|
118
|
<div class="tipSection">
|
119
|
<p>The DRIVER Information Space
|
120
|
gathers documents from different
|
121
|
scientific subjects and from
|
122
|
distinct geographical areas.</p>
|
123
|
<p><a href="Help.action?type=collection">Learn more...</a></p>
|
124
|
</div>
|
125
|
</div>
|
126
|
</div>
|
127
|
<b class="curved_bottom">
|
128
|
<b class="curved_b4"></b>
|
129
|
<b class="curved_b3"></b>
|
130
|
<b class="curved_b2"></b>
|
131
|
<b class="curved_b1"></b>
|
132
|
</b>
|
133
|
</div>
|
134
|
|
135
|
<div id="maincolumn2" style="display: none">
|
136
|
<div id="collectionPage" >
|
137
|
<div id="collection_loading">
|
138
|
<p style="text-align: center">
|
139
|
<img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/driver-loader1.gif" alt="loading..." /><br/>
|
140
|
Loading collection...
|
141
|
</p>
|
142
|
</div>
|
143
|
|
144
|
<b class="curved_top">
|
145
|
<b class="curved_t1"></b>
|
146
|
<b class="curved_t2"></b>
|
147
|
<b class="curved_t3"></b>
|
148
|
<b class="curved_t4"></b>
|
149
|
</b>
|
150
|
<div class="curved_container clearfix ">
|
151
|
<div class="featured_top collectionPage_top">
|
152
|
<span id="collectionTitle"></span>
|
153
|
</div>
|
154
|
<div id="tabblock">
|
155
|
<div class="content mydriveritem">
|
156
|
<h3>General Information</h3>
|
157
|
<div id="col_Info">
|
158
|
<input type="hidden" id="collectionID" name="collectionID" />
|
159
|
<s:form theme="simple" action="ManageCollections">
|
160
|
<img id="collectionImage" align="right" width="120px" height="80px" />
|
161
|
|
162
|
<div class="collectionField">
|
163
|
<span class="collFieldNm">Name </span>
|
164
|
<input type="text" name="name" id="collectionName" />
|
165
|
</div>
|
166
|
<div class="collectionField">
|
167
|
<span class="collFieldNm">Description </span>
|
168
|
<input type="text" name="description" id="collectionDescription" />
|
169
|
</div>
|
170
|
<div class="collectionField">
|
171
|
<span class="collFieldNm">Subject </span>
|
172
|
<input type="text" name="subject" id="collectionSubject" />
|
173
|
</div>
|
174
|
<div id="col_ownerDiv" class="collectionField">
|
175
|
<span class="collFieldNm">Owner </span>
|
176
|
<span id="collectionOwnerEmail"> </span>
|
177
|
</div>
|
178
|
|
179
|
<div class="collectionField">
|
180
|
<span class="collFieldNm">Query </span>
|
181
|
<span id="collectionQueryCriteria"></span>
|
182
|
</div>
|
183
|
<div class="collectionField">
|
184
|
<span class="collFieldNm">Basket items </span>
|
185
|
<span id="collectionItemsInBasket"></span>
|
186
|
</div>
|
187
|
<div class="collectionField">
|
188
|
<span class="collFieldNm">Number of Documents </span>
|
189
|
<span id="collectionDocumentCount"></span>
|
190
|
</div>
|
191
|
<div class="collectionField">
|
192
|
<span class="collFieldNm">Last Update </span>
|
193
|
<span id="collectionLastUpdateDate"></span>
|
194
|
</div>
|
195
|
<div class="collectionField">
|
196
|
<input type="radio" name="Private" id="collectionPrivateTrue" value="true" />Private
|
197
|
<input type="radio" name="Private" id="collectionPrivateFalse" value="false" />Public
|
198
|
</div>
|
199
|
<div class="collectionField">
|
200
|
<input type="checkbox" name="Frozen" value="Frozen" id="collectionFrozen" />Frozen
|
201
|
</div>
|
202
|
<div class="collectionField">
|
203
|
<input type="checkbox" name="Visible" value="Visible" id="collectionVisible" />Visible
|
204
|
</div>
|
205
|
<div class="collectionField">
|
206
|
<span class="collFieldNm">Icon URL </span>
|
207
|
<input type="text" name="iconUrl" id="collectionIconUrl" />
|
208
|
</div>
|
209
|
|
210
|
<div class="collectionField">
|
211
|
<input type="button" value="Save Changes" onclick="javascript: updateCollection();" />
|
212
|
</div>
|
213
|
|
214
|
|
215
|
</s:form>
|
216
|
</div>
|
217
|
</div>
|
218
|
|
219
|
<div class="content mydriveritem"><!-- MB: This div is one tab: h3 is the link, the rest is the tab content -->
|
220
|
<h3>Items - Basket</h3>
|
221
|
<div id="collectionsBasketDiv">
|
222
|
|
223
|
<div class="content">
|
224
|
<div class="myPageMenu" >
|
225
|
<div class="right">
|
226
|
<a href="javascript:setCheckboxes(true);">select all</a> | <a href="javascript:setCheckboxes(false);">deselect all</a> | <a href="javascript:getSelectedDocuments('collectionsDocumentList')">remove selected </a>
|
227
|
</div>
|
228
|
</div>
|
229
|
<div id="collectionsDocumentList"> </div>
|
230
|
</div>
|
231
|
</div>
|
232
|
</div>
|
233
|
</div>
|
234
|
</div>
|
235
|
<b class="curved_bottom">
|
236
|
<b class="curved_b4"></b>
|
237
|
<b class="curved_b3"></b>
|
238
|
<b class="curved_b2"></b>
|
239
|
<b class="curved_b1"></b>
|
240
|
</b>
|
241
|
</div>
|
242
|
</div>
|
243
|
<div id="footer"><s:action name="FooterPage" executeResult="true"/></div>
|
244
|
</div>
|
245
|
</div>
|
246
|
</div>
|
247
|
</div>
|
248
|
</div>
|
249
|
</body>
|
250
|
</html>
|