-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
142 lines (121 loc) · 5.97 KB
/
index.html
File metadata and controls
142 lines (121 loc) · 5.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DSpace RESTClient</title>
<link rel="stylesheet" type="text/css" href="ui/css/redmond/jquery-ui-1.8.13.custom.css" />
<link rel="stylesheet" type="text/css" href="ui/css/restclient-ui.css" />
<script type="text/javascript" src="ui/js/LAB.min.js"></script>
</head>
<body>
<div id="load-panel" class="loadinit">
<p id="load-status"></p>
</div>
<div id="firespark_console" class="hidden">
<div id="header" >
<p>RESTClient</p>
</div>
<div id="navigation" class="enlarge">
<div id="browse-panel"></div>
<div id="account-panel"></div>
</div>
<div id="tab-container">
<div id="tabpanel" class="hidden" >
<ul>
<li><a href="#home">Home</a></li>
</ul>
<div id="home" >
<div>
<p>Welcome to DSpace RESTClient UI - a jQuery user interface built on DSpace REST API</p>
<br />
<p>DSpace is a digital service that collects, preserves, and distributes digital material. <br />Repositories are important tools for preserving an organization's legacy; they facilitate digital preservation and scholarly communication.</p>
</div>
</div>
</div>
</div>
<div id="footer">
<p>Powered by FireSpark</p>
</div>
<ul id="validation">
<li><a href="http://validator.w3.org/check?uri=referer" target="_new"><img src="ui/img/validation/valid-xhtml10-blue.png" alt="Valid XHTML 1.0!" height="31" width="88" /></a></li>
<!--<li><a href="http://jigsaw.w3.org/css-validator/check/referer" target="_new"><img src="ui/img/validation/valid-css-blue.png" alt="Valid CSS!" height="31" width="88" /></a></li>-->
</ul>
<script type="text/javascript">
document.getElementById('load-status').innerHTML = 'Loading RESTClient UI ...';
$LAB
.script('ui/js/restclient-ui.js').wait(function(){
$('div#load-panel').fadeOut(100).removeClass('loadinit').show(100);
$('div#firespark_console').fadeIn(1500);
FireSpark.Registry.add('#tabtpl', FireSpark.jquery.workflow.TabTemplate);
FireSpark.Registry.add('#htmlload', FireSpark.jquery.workflow.ElementHtml);
FireSpark.Registry.add('#tplload', FireSpark.jquery.workflow.ElementTemplate);
FireSpark.Registry.add('#formsubmit', FireSpark.jquery.workflow.FormSubmit);
FireSpark.Registry.add('#tplbind', FireSpark.jquery.workflow.BindTemplate);
FireSpark.Registry.add('#login', RESTClient.jquery.workflow.SessionBegin);
FireSpark.Registry.add('#logout', RESTClient.jquery.workflow.SessionEnd);
FireSpark.Registry.add('#restload', RESTClient.jquery.workflow.ResourceLoad);
FireSpark.Registry.add('#restedit', RESTClient.jquery.workflow.ResourceEdit);
FireSpark.Registry.add('#restdel', RESTClient.jquery.workflow.ResourceDelete);
FireSpark.Registry.save('tpl-account', RESTClient.jquery.template.Account);
FireSpark.Registry.save('tpl-browse', RESTClient.jquery.template.Browse);
FireSpark.Registry.save('tpl-login', RESTClient.jquery.template.Login);
FireSpark.Registry.save('tpl-allcommunities', RESTClient.jquery.template.AllCommunities);
FireSpark.Registry.save('tpl-community', RESTClient.jquery.template.Community);
FireSpark.Registry.save('tpl-community-edit', RESTClient.jquery.template.CommunityEdit);
FireSpark.Registry.save('tpl-community-delete', RESTClient.jquery.template.CommunityDelete);
FireSpark.Registry.save('tpl-allcollections', RESTClient.jquery.template.AllCollections);
FireSpark.Registry.save('tpl-collection', RESTClient.jquery.template.Collection);
FireSpark.Registry.save('tpl-collection-edit', RESTClient.jquery.template.CollectionEdit);
FireSpark.Registry.save('tpl-allitems', RESTClient.jquery.template.AllItems);
FireSpark.Registry.save('tpl-item', RESTClient.jquery.template.Item);
FireSpark.Registry.save('tpl-item-edit', RESTClient.jquery.template.ItemEdit);
FireSpark.Registry.save('tpl-allusers', RESTClient.jquery.template.AllUsers);
FireSpark.Registry.save('tpl-user', RESTClient.jquery.template.User);
FireSpark.Registry.save('tpl-allgroups', RESTClient.jquery.template.AllGroups);
FireSpark.Registry.save('tpl-group', RESTClient.jquery.template.Group);
FireSpark.Registry.save('tpl-allstats', RESTClient.jquery.template.AllStats);
FireSpark.Kernel.execute([{
service : FireSpark.jquery.service.ElementTabpanel,
element : '#tabpanel',
select : true,
indexstart : 1,
savekey : 'tabuipanel'
},{
service : FireSpark.jquery.service.NavigatorInit,
selector : 'form.navigate',
event : 'submit',
attribute : 'id',
escaped : true
}]);
$('#navigation>div, #tabpanel').bind('load' , function(){
FireSpark.Kernel.execute([{
service : FireSpark.jquery.service.ElementButton,
selector : 'ul.menu li, input:submit, #tabpanel a.button'
},{
service : FireSpark.jquery.service.ElementEditor,
selector : 'textarea.editor'
}], {});
});
$(document).ready(function(){
FireSpark.Kernel.launch('#tplbind:cntr=#browse-panel:tpl=tpl-browse');
FireSpark.Kernel.launch('#logout');
var $current_hash = '';
window.setInterval(function(){
if($current_hash != window.location.hash){
$current_hash = window.location.hash
FireSpark.Kernel.launch($current_hash);
}
}, 500);
});
$('p#load-status').html('Loading CKEditor ...').show();
})
.script('ui/js/ckeditor/ckeditor.js').wait(function(){
$('p#load-status').html('Loading jQuery CKEditor ...');
})
.script('ui/js/ckeditor/adapters/jquery.js').wait(function(){
$('p#load-status').html('Initializing ...').delay(500).fadeOut(1500);
});
</script>
</div>
</body>
</html>