talia_core 0.4.22 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/config/database.yml +9 -9
- data/config/rdfstore.yml +4 -4
- data/config/talia_core.yml +5 -2
- data/generators/generator_helpers.rb +66 -25
- data/generators/talia_admin/talia_admin_generator.rb +9 -9
- data/generators/talia_admin/templates/app/controllers/admin/admin_site_controller.rb +5 -0
- data/generators/talia_admin/templates/app/controllers/admin/custom_templates_controller.rb +7 -0
- data/generators/talia_admin/templates/app/controllers/admin/front_controller.rb +19 -0
- data/generators/talia_admin/templates/app/controllers/admin/talia_collections_controller.rb +7 -0
- data/generators/talia_admin/templates/app/controllers/admin/talia_sources_controller.rb +17 -0
- data/generators/talia_admin/templates/app/controllers/admin/users_controller.rb +7 -0
- data/generators/talia_admin/templates/app/controllers/users_controller.rb +7 -0
- data/generators/talia_admin/templates/app/helpers/admin/front_helper.rb +2 -0
- data/generators/talia_admin/templates/app/helpers/admin/talia_sources_helper.rb +7 -0
- data/generators/talia_admin/templates/app/helpers/users_helper.rb +2 -0
- data/generators/talia_admin/templates/app/models/guest.rb +7 -0
- data/generators/talia_admin/templates/app/models/talia_collection.rb +56 -0
- data/generators/talia_admin/templates/app/models/talia_source.rb +43 -0
- data/generators/talia_admin/templates/app/models/user.rb +59 -0
- data/generators/talia_admin/templates/app/models/user_mailer.rb +14 -0
- data/generators/talia_admin/templates/app/viewhints/talia_source_hints.rb +3 -0
- data/generators/talia_admin/templates/app/views/admin/custom_templates/index.dryml +7 -0
- data/generators/talia_admin/templates/app/views/admin/front/index.dryml +29 -0
- data/generators/talia_admin/templates/app/views/admin/front/summary.dryml +103 -0
- data/generators/talia_admin/templates/app/views/admin/talia_collections/index.dryml +7 -0
- data/generators/talia_admin/templates/app/views/admin/talia_sources/index.dryml +17 -0
- data/generators/talia_admin/templates/app/views/admin/talia_sources/show.dryml +8 -0
- data/generators/talia_admin/templates/app/views/admin/users/index.dryml +7 -0
- data/generators/talia_admin/templates/app/views/taglibs/admin_site.dryml +91 -0
- data/generators/talia_admin/templates/app/views/taglibs/application.dryml +9 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/admin/rapid/cards.dryml +34 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/admin/rapid/forms.dryml +71 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/admin/rapid/pages.dryml +543 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/rapid/cards.dryml +37 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/rapid/forms.dryml +35 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/rapid/pages.dryml +175 -0
- data/generators/talia_admin/templates/app/views/taglibs/front_site.dryml +1 -0
- data/generators/talia_admin/templates/app/views/taglibs/themes/clean/clean.dryml +10 -0
- data/generators/talia_admin/templates/app/views/user_mailer/forgot_password.erb +10 -0
- data/generators/talia_admin/templates/config/hobo_initializer.rb +1 -0
- data/generators/talia_admin/templates/migrations/create_users.rb +22 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/101-3B5F87-ACD3E6.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/30-3E547A-242E42.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/30-DBE1E5-FCFEF5.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/300-ACD3E6-fff.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/50-ACD3E6-fff.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/fieldbg.gif +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/pencil.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/small_close.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/spinner.gif +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/stylesheets/clean.css +326 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/stylesheets/rapid-ui.css +100 -0
- data/generators/talia_admin/templates/public/javascripts/IE7.js +2 -0
- data/generators/talia_admin/templates/public/javascripts/blank.gif +0 -0
- data/generators/talia_admin/templates/public/javascripts/dryml-support.js +132 -0
- data/generators/talia_admin/templates/public/javascripts/hobo-rapid.js +937 -0
- data/generators/talia_admin/templates/public/javascripts/ie7-recalc.js +166 -0
- data/generators/talia_admin/templates/public/javascripts/lowpro.js +43 -25
- data/generators/talia_admin/templates/public/stylesheets/application.css +0 -0
- data/generators/talia_admin/templates/public/stylesheets/hobo-rapid.css +94 -0
- data/generators/talia_admin/templates/public/stylesheets/reset.css +95 -0
- data/generators/talia_admin/templates/test/fixtures/users.yml +7 -0
- data/generators/talia_admin/templates/test/functional/admin/{custom_templates_controller_test.rb → front_controller_test.rb} +1 -1
- data/generators/talia_admin/templates/test/functional/users_controller_test.rb +8 -0
- data/generators/talia_admin/templates/test/unit/user_test.rb +8 -0
- data/generators/talia_base/talia_base_generator.rb +24 -17
- data/generators/talia_oai/USAGE +0 -0
- data/generators/talia_oai/talia_oai_generator.rb +19 -0
- data/generators/talia_oai/templates/oai_controller.rb +9 -0
- data/generators/talia_oai/templates/oai_initializer.rb +16 -0
- data/lib/custom_template.rb +24 -0
- data/lib/talia_core/active_source_parts/class_methods.rb +1 -1
- data/lib/talia_core/active_source_parts/finders.rb +4 -0
- data/lib/talia_core/collection.rb +4 -0
- data/lib/talia_core/oai/active_source_model.rb +113 -0
- data/lib/talia_core/oai/active_source_oai_adapter/class_methods.rb +17 -0
- data/lib/talia_core/oai/active_source_oai_adapter.rb +106 -0
- data/lib/talia_core/semantic_property.rb +1 -0
- data/lib/talia_core/semantic_relation.rb +1 -0
- data/test/talia_core/active_source_test.rb +13 -0
- metadata +71 -59
- data/generators/talia_admin/templates/controllers/admin/background_controller.rb +0 -52
- data/generators/talia_admin/templates/controllers/admin/custom_templates_controller.rb +0 -25
- data/generators/talia_admin/templates/controllers/admin/locales_controller.rb +0 -15
- data/generators/talia_admin/templates/controllers/admin/roles_controller.rb +0 -8
- data/generators/talia_admin/templates/controllers/admin/sources_controller.rb +0 -9
- data/generators/talia_admin/templates/controllers/admin/translations_controller.rb +0 -61
- data/generators/talia_admin/templates/controllers/admin/users_controller.rb +0 -10
- data/generators/talia_admin/templates/controllers/admin_controller.rb +0 -7
- data/generators/talia_admin/templates/helpers/admin/background_helper.rb +0 -60
- data/generators/talia_admin/templates/helpers/admin/custom_templates_helper.rb +0 -5
- data/generators/talia_admin/templates/helpers/admin/locales_helper.rb +0 -2
- data/generators/talia_admin/templates/helpers/admin/roles_helper.rb +0 -2
- data/generators/talia_admin/templates/helpers/admin/sources_helper.rb +0 -65
- data/generators/talia_admin/templates/helpers/admin/translations_helper.rb +0 -51
- data/generators/talia_admin/templates/helpers/admin/users_helper.rb +0 -11
- data/generators/talia_admin/templates/helpers/admin_helper.rb +0 -30
- data/generators/talia_admin/templates/migrations/populate_users.rb +0 -14
- data/generators/talia_admin/templates/models/role.rb +0 -3
- data/generators/talia_admin/templates/public/javascripts/backend.js +0 -24
- data/generators/talia_admin/templates/public/stylesheets/talia_core/backend.css +0 -463
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/body_bg.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/footer_bg.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/header.jpg +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/header_bg.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/menu.jpg +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/menu_bg.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/opednid.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/page_bg.jpg +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/triangolino.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/triangolino_full.gif +0 -0
- data/generators/talia_admin/templates/test/functional/admin/locales_controller_test.rb +0 -35
- data/generators/talia_admin/templates/test/functional/admin/sources_controller_test.rb +0 -109
- data/generators/talia_admin/templates/test/functional/admin/translations_controller_test.rb +0 -93
- data/generators/talia_admin/templates/test/functional/admin/users_controller_test.rb +0 -67
- data/generators/talia_admin/templates/test/functional/admin_controller_test.rb +0 -15
- data/generators/talia_admin/templates/views/admin/background/_finished.html.erb +0 -9
- data/generators/talia_admin/templates/views/admin/background/_pending.html.erb +0 -1
- data/generators/talia_admin/templates/views/admin/background/_progress.html.erb +0 -15
- data/generators/talia_admin/templates/views/admin/background/_running.html.erb +0 -11
- data/generators/talia_admin/templates/views/admin/background/environment.html.erb +0 -12
- data/generators/talia_admin/templates/views/admin/background/show.html.erb +0 -17
- data/generators/talia_admin/templates/views/admin/background/stderr.html.erb +0 -6
- data/generators/talia_admin/templates/views/admin/background/stdin.html.erb +0 -6
- data/generators/talia_admin/templates/views/admin/background/stdout.html.erb +0 -6
- data/generators/talia_admin/templates/views/admin/custom_templates/_content_form_column.rhtml +0 -2
- data/generators/talia_admin/templates/views/admin/custom_templates/_template_type_form_column.rhtml +0 -2
- data/generators/talia_admin/templates/views/admin/index.html.erb +0 -5
- data/generators/talia_admin/templates/views/admin/locales/new.html.erb +0 -9
- data/generators/talia_admin/templates/views/admin/sources/_show.html.erb +0 -13
- data/generators/talia_admin/templates/views/admin/translations/_new_translation.html.erb +0 -7
- data/generators/talia_admin/templates/views/admin/translations/_translation.html.erb +0 -10
- data/generators/talia_admin/templates/views/admin/translations/edit.html.erb +0 -16
- data/generators/talia_admin/templates/views/layouts/admin.html.erb +0 -56
- data/generators/talia_base/templates/script/setup_talia_backend +0 -43
@@ -1,463 +0,0 @@
|
|
1
|
-
/* ***************** ************** ************** */
|
2
|
-
/* ***************** BODY *************** */
|
3
|
-
/* ***************** ************** ************** */
|
4
|
-
* {margin: 0; padding: 0;}
|
5
|
-
body {
|
6
|
-
text-align:center;
|
7
|
-
color: #333;
|
8
|
-
margin:0;
|
9
|
-
padding: 0;
|
10
|
-
border: 0;
|
11
|
-
background: #FFF url(images/backend/header_bg.gif) top left repeat-x;
|
12
|
-
font-family: Avenir, Arial, "Lucida Grande", Verdana, "Bitstream Vera Sans", Helvetica, sans-serif;
|
13
|
-
font-size:0.8125em;
|
14
|
-
}
|
15
|
-
|
16
|
-
/* ***************** ************** ************** */
|
17
|
-
/* ***************** CLASSI ************** */
|
18
|
-
/* ***************** ************** ************** */
|
19
|
-
.nascosto{
|
20
|
-
display:none;
|
21
|
-
}
|
22
|
-
|
23
|
-
.floatClear {
|
24
|
-
clear: both;
|
25
|
-
}
|
26
|
-
|
27
|
-
.backlink {
|
28
|
-
padding-bottom: 3ex;
|
29
|
-
}
|
30
|
-
|
31
|
-
.background_item {
|
32
|
-
padding-bottom: 0.5ex;
|
33
|
-
}
|
34
|
-
|
35
|
-
.background_box {
|
36
|
-
padding-left: 3ex;
|
37
|
-
padding-bottom: 2ex;
|
38
|
-
padding-top: 1ex;
|
39
|
-
}
|
40
|
-
|
41
|
-
.background_progress {
|
42
|
-
margin-bottom: 2ex;
|
43
|
-
width: 600px;
|
44
|
-
background: #dcd4cf;
|
45
|
-
border: 2px solid #55453c;
|
46
|
-
height: 30px;
|
47
|
-
}
|
48
|
-
|
49
|
-
.background_progress_bar {
|
50
|
-
text-align: right;
|
51
|
-
float: left;
|
52
|
-
background: #a19792;
|
53
|
-
height: 24px;
|
54
|
-
padding-top: 6px;
|
55
|
-
}
|
56
|
-
|
57
|
-
.background_progress_caption {
|
58
|
-
margin-right: 6px;
|
59
|
-
color: #55453c;
|
60
|
-
font-weight: bold;
|
61
|
-
}
|
62
|
-
|
63
|
-
.output {
|
64
|
-
margin: 3ex;
|
65
|
-
}
|
66
|
-
|
67
|
-
/* ***************** ************** ************** */
|
68
|
-
/* ***************** TAG ************** */
|
69
|
-
/* ***************** ************** ************** */
|
70
|
-
h1{
|
71
|
-
color: #9e0b0f;
|
72
|
-
font-size: 20px;
|
73
|
-
font-weight: normal;
|
74
|
-
font-family:Georgia, "Times New Roman", Times, serif;
|
75
|
-
margin-bottom: 10px;
|
76
|
-
}
|
77
|
-
|
78
|
-
h2{
|
79
|
-
color: #55453c;
|
80
|
-
font-size: 20px;
|
81
|
-
font-weight: normal;
|
82
|
-
font-family:Georgia, "Times New Roman", Times, serif;
|
83
|
-
margin-bottom: 10px;
|
84
|
-
}
|
85
|
-
|
86
|
-
p{
|
87
|
-
margin-bottom: 13px;
|
88
|
-
font-size: 0.88em;
|
89
|
-
line-height: 1.5em;
|
90
|
-
}
|
91
|
-
|
92
|
-
a{
|
93
|
-
color: #9e0b0f;
|
94
|
-
text-decoration: none;
|
95
|
-
}
|
96
|
-
|
97
|
-
a:hover{
|
98
|
-
color: #9e0b0f;
|
99
|
-
text-decoration: underline;
|
100
|
-
}
|
101
|
-
|
102
|
-
/* ***************** ************** ************** */
|
103
|
-
/* ***************** PAGINA (contiene tutto) ************** */
|
104
|
-
/* ***************** ************** ************** */
|
105
|
-
#paginaExt{
|
106
|
-
padding:0; border:0;
|
107
|
-
position: relative;
|
108
|
-
margin: 0 0;
|
109
|
-
/* width:800px; */
|
110
|
-
width:100%;
|
111
|
-
}
|
112
|
-
|
113
|
-
#paginaInt{
|
114
|
-
margin:0; padding:0; border:0;
|
115
|
-
width:100%;
|
116
|
-
}
|
117
|
-
|
118
|
-
/* ***************** ************** ************** */
|
119
|
-
/* ***************** HEADER ************** */
|
120
|
-
/* ***************** ************** ************** */
|
121
|
-
#testata{
|
122
|
-
display: block;
|
123
|
-
height: 181px;
|
124
|
-
width:100%;
|
125
|
-
background: transparent url(images/backend/header.jpg) top left no-repeat;
|
126
|
-
}
|
127
|
-
#testata h1{
|
128
|
-
display: none;
|
129
|
-
}
|
130
|
-
#testata p{
|
131
|
-
display: none;
|
132
|
-
}
|
133
|
-
|
134
|
-
/* ***************** ************** ************** */
|
135
|
-
/* ***************** MENU ************** */
|
136
|
-
/* ***************** ************** ************** */
|
137
|
-
#menu{
|
138
|
-
display: block;
|
139
|
-
height: 45px;
|
140
|
-
width: 800px;
|
141
|
-
width:100%;
|
142
|
-
background: url(images/backend/menu_bg.gif) top left repeat-x;
|
143
|
-
text-align: left;
|
144
|
-
margin: 0; padding: 0;
|
145
|
-
}
|
146
|
-
#menu ul{
|
147
|
-
width: auto;
|
148
|
-
padding: 14px 0 0 25px;
|
149
|
-
margin: 0;
|
150
|
-
height: 45px;
|
151
|
-
background: url(images/backend/menu.jpg) top left no-repeat;
|
152
|
-
background-position: -180px 0;
|
153
|
-
}
|
154
|
-
#menu li{
|
155
|
-
display: inline;
|
156
|
-
list-style: none;
|
157
|
-
letter-spacing: 1.1px;
|
158
|
-
text-align: center;
|
159
|
-
margin: 0 20px 0 00px;
|
160
|
-
}
|
161
|
-
#menu li a{
|
162
|
-
color: #a19792;
|
163
|
-
text-decoration: none;
|
164
|
-
text-transform: uppercase;
|
165
|
-
font-size: 11px;
|
166
|
-
font-weight: bold;
|
167
|
-
background: transparent url(images/backend/triangolino.gif) bottom center no-repeat;
|
168
|
-
padding-bottom: 6px;
|
169
|
-
}
|
170
|
-
#menu li a:hover{
|
171
|
-
color: #FFFFFF;
|
172
|
-
background: transparent url(images/backend/triangolino_full.gif) bottom center no-repeat;
|
173
|
-
}
|
174
|
-
|
175
|
-
/* ***************** ************** ************** */
|
176
|
-
/* ***************** CONTENUTI ************** */
|
177
|
-
/* ***************** ************** ************** */
|
178
|
-
#contenuti{
|
179
|
-
background-color:#fff;
|
180
|
-
width: 780px;
|
181
|
-
width:100%;
|
182
|
-
|
183
|
-
padding: 0 0 0 0;
|
184
|
-
text-align: center;
|
185
|
-
}
|
186
|
-
|
187
|
-
#contenutoInterno{
|
188
|
-
width: 900px;
|
189
|
-
padding: 20px 25px;
|
190
|
-
text-align: left;
|
191
|
-
}
|
192
|
-
|
193
|
-
#contenutoInterno ul{
|
194
|
-
list-style: none;
|
195
|
-
font-size: 1.1em;
|
196
|
-
}
|
197
|
-
#contenutoInterno ul li{
|
198
|
-
list-style: none;
|
199
|
-
margin: 0 0 10px 0;
|
200
|
-
}
|
201
|
-
#contenutoInterno ul li a{
|
202
|
-
background: transparent url(images/backend/icona.gif) center left no-repeat;
|
203
|
-
padding: 0 0 0 0px;
|
204
|
-
}
|
205
|
-
#contenutoInterno ul li a:hover{
|
206
|
-
}
|
207
|
-
|
208
|
-
|
209
|
-
/* ***************** ************** ************** */
|
210
|
-
/* ***************** PAGINE SPECIFICHE ************** */
|
211
|
-
/* ***************** ************** ************** */
|
212
|
-
|
213
|
-
/* Pagina accesso login */
|
214
|
-
#password_login {
|
215
|
-
border: 10px solid #dcd4cf;
|
216
|
-
/*
|
217
|
-
width: 300px;
|
218
|
-
height: 200px;
|
219
|
-
float: left;
|
220
|
-
*/
|
221
|
-
text-align:center;
|
222
|
-
padding: 20px;
|
223
|
-
}
|
224
|
-
#password_login a{
|
225
|
-
font-size: 0.8em;
|
226
|
-
}
|
227
|
-
#openid_login {
|
228
|
-
border: 10px solid #dcd4cf;
|
229
|
-
/*
|
230
|
-
width: 300px;
|
231
|
-
height: 200px;
|
232
|
-
float: left;
|
233
|
-
*/
|
234
|
-
text-align:center;
|
235
|
-
padding: 20px;
|
236
|
-
margin: 20px 0 0 0;
|
237
|
-
}
|
238
|
-
label#openid_label {
|
239
|
-
display: inline;
|
240
|
-
line-height: 30px;
|
241
|
-
background: transparent url(images/backend/opednid.gif) center left no-repeat;
|
242
|
-
padding: 20px 20px 20px 35px;
|
243
|
-
height: 30px;
|
244
|
-
}
|
245
|
-
#openid_login a{
|
246
|
-
font-size: 0.8em;
|
247
|
-
}
|
248
|
-
|
249
|
-
/* Menu principale */
|
250
|
-
div.main_menu_box a{
|
251
|
-
border: 10px solid #dcd4cf;
|
252
|
-
width: 200px;
|
253
|
-
height: 5em;
|
254
|
-
line-height: 5em;
|
255
|
-
float: left;
|
256
|
-
text-align:center;
|
257
|
-
padding: 0 20px;
|
258
|
-
margin-right: 30px;
|
259
|
-
font-size: 20px;
|
260
|
-
font-family:Georgia, "Times New Roman", Times, serif;
|
261
|
-
}
|
262
|
-
|
263
|
-
div.main_menu_box a:hover{
|
264
|
-
background-color: #dcd4cf;
|
265
|
-
border: 10px solid #d3c8c2;
|
266
|
-
text-decoration: none;
|
267
|
-
}
|
268
|
-
|
269
|
-
#users_access a{
|
270
|
-
}
|
271
|
-
#sources_access a{
|
272
|
-
}
|
273
|
-
|
274
|
-
#custom_templates_access a{
|
275
|
-
}
|
276
|
-
|
277
|
-
#translations_access a{
|
278
|
-
}
|
279
|
-
|
280
|
-
.rdf_header {
|
281
|
-
margin-top: 15px;
|
282
|
-
padding-left: 10px;
|
283
|
-
background: #333 url(images/backend/rdf_header_bg.gif) repeat-x top left;
|
284
|
-
color: #fff;
|
285
|
-
font-weight: bold;
|
286
|
-
font-size: 1em;
|
287
|
-
}
|
288
|
-
|
289
|
-
.add, .remove, .trash {
|
290
|
-
border: none;
|
291
|
-
}
|
292
|
-
|
293
|
-
.add {
|
294
|
-
float: right;
|
295
|
-
margin-top: -18px;
|
296
|
-
margin-right: 8px;
|
297
|
-
}
|
298
|
-
|
299
|
-
.predicates {
|
300
|
-
padding-left: 10px;
|
301
|
-
}
|
302
|
-
|
303
|
-
#data ul {
|
304
|
-
list-style-type: none;
|
305
|
-
}
|
306
|
-
|
307
|
-
#data p {
|
308
|
-
margin-top: 25px;
|
309
|
-
}
|
310
|
-
|
311
|
-
.data {
|
312
|
-
font-size: .7em;
|
313
|
-
padding: 2px;
|
314
|
-
margin-right: 2px;
|
315
|
-
}
|
316
|
-
|
317
|
-
.file {
|
318
|
-
background-color: #ff9;
|
319
|
-
}
|
320
|
-
|
321
|
-
.text {
|
322
|
-
background-color: #009;
|
323
|
-
color: #fff;
|
324
|
-
}
|
325
|
-
|
326
|
-
.xml {
|
327
|
-
background-color: #090;
|
328
|
-
color: #fff;
|
329
|
-
}
|
330
|
-
|
331
|
-
.image {
|
332
|
-
background-color: #900;
|
333
|
-
color: #fff;
|
334
|
-
}
|
335
|
-
|
336
|
-
.wmv {
|
337
|
-
background-color: #009;
|
338
|
-
color: #fff;
|
339
|
-
}
|
340
|
-
|
341
|
-
.mp4 {
|
342
|
-
background-color: #099;
|
343
|
-
color: #fff;
|
344
|
-
}
|
345
|
-
|
346
|
-
.small {
|
347
|
-
font-size: .4em;
|
348
|
-
}
|
349
|
-
|
350
|
-
.grey {
|
351
|
-
color: #ccc;
|
352
|
-
}
|
353
|
-
|
354
|
-
.italic {
|
355
|
-
font-style: italic;
|
356
|
-
}
|
357
|
-
|
358
|
-
#data_form {
|
359
|
-
margin-top: 15px;
|
360
|
-
padding: 10px;
|
361
|
-
background-color: #ccc;
|
362
|
-
}
|
363
|
-
|
364
|
-
div.uploadStatus {
|
365
|
-
margin: 5px;
|
366
|
-
}
|
367
|
-
|
368
|
-
div.progressBar {
|
369
|
-
display: none;
|
370
|
-
margin: 5px;
|
371
|
-
}
|
372
|
-
|
373
|
-
div.progressBar div.border {
|
374
|
-
background-color: #fff;
|
375
|
-
border: 1px solid grey;
|
376
|
-
width: 100%;
|
377
|
-
}
|
378
|
-
|
379
|
-
div.progressBar div.background {
|
380
|
-
background-color: #0c0;
|
381
|
-
height: 18px;
|
382
|
-
width: 0%;
|
383
|
-
}
|
384
|
-
|
385
|
-
/* PAGINA TRANSLATIONS */
|
386
|
-
input.translation {
|
387
|
-
width: 180px;
|
388
|
-
}
|
389
|
-
|
390
|
-
/* Input field inside the table */
|
391
|
-
table tr td input {
|
392
|
-
width: 500px;
|
393
|
-
padding: 4px;
|
394
|
-
}
|
395
|
-
|
396
|
-
|
397
|
-
/* ***************** ************** ************** */
|
398
|
-
/* ***************** FOOTER ************** */
|
399
|
-
/* ***************** ************** ************** */
|
400
|
-
#footer_wrap {
|
401
|
-
padding:0;
|
402
|
-
border:0;
|
403
|
-
position: relative;
|
404
|
-
margin: 0 auto 0 auto;
|
405
|
-
width:780px;
|
406
|
-
background: #40332b url(images/backend/footer_bg.gif) top left repeat-x;
|
407
|
-
}
|
408
|
-
#footer {
|
409
|
-
position: relative;
|
410
|
-
width: 780px;
|
411
|
-
padding: 40px 0 0 30px;
|
412
|
-
font-size: 1.00em;
|
413
|
-
line-height: 1.6em;
|
414
|
-
color: #a79578;
|
415
|
-
margin: 0 auto;
|
416
|
-
}
|
417
|
-
#footer p {
|
418
|
-
padding-bottom: 20px;
|
419
|
-
}
|
420
|
-
.box {
|
421
|
-
width: 150px;
|
422
|
-
float: left;
|
423
|
-
margin-right: 43px;
|
424
|
-
z-index: 99;
|
425
|
-
}
|
426
|
-
.box h1 {
|
427
|
-
color: #fffffe;
|
428
|
-
font-size: 1.1em;
|
429
|
-
font-weight: normal;
|
430
|
-
margin-bottom: 30px;
|
431
|
-
font-family: Avenir, Arial, "Lucida Grande", Verdana, "Bitstream Vera Sans", Helvetica, sans-serif;
|
432
|
-
}
|
433
|
-
.box li {
|
434
|
-
padding-bottom: 10px;
|
435
|
-
}
|
436
|
-
.box a:link, .box a:visited {
|
437
|
-
color: #fffffe;
|
438
|
-
background: #2e251e;
|
439
|
-
padding: 2px 5px;
|
440
|
-
padding-bottom: 4px;
|
441
|
-
text-decoration:none;
|
442
|
-
}
|
443
|
-
.box a:hover {
|
444
|
-
color: #fffffe;
|
445
|
-
background: #ad0000;
|
446
|
-
text-decoration: none;
|
447
|
-
}
|
448
|
-
.box a:active {
|
449
|
-
color: #fffffe;
|
450
|
-
text-decoration:none;
|
451
|
-
}
|
452
|
-
#footer img {
|
453
|
-
margin-right: 30px;
|
454
|
-
}
|
455
|
-
|
456
|
-
/* SIMPLE BIT FIX */
|
457
|
-
.group:after {
|
458
|
-
content: ".";
|
459
|
-
display: block;
|
460
|
-
height: 0;
|
461
|
-
clear: both;
|
462
|
-
visibility: hidden;
|
463
|
-
}
|
data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/body_bg.gif
DELETED
Binary file
|
data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/footer_bg.gif
DELETED
Binary file
|
data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/header.jpg
DELETED
Binary file
|
data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/header_bg.gif
DELETED
Binary file
|
Binary file
|
data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/menu_bg.gif
DELETED
Binary file
|
data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/opednid.gif
DELETED
Binary file
|
data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/page_bg.jpg
DELETED
Binary file
|
data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/triangolino.gif
DELETED
Binary file
|
Binary file
|
@@ -1,35 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../../test_helper'
|
2
|
-
|
3
|
-
class Admin::LocalesControllerTest < ActionController::TestCase
|
4
|
-
def setup
|
5
|
-
i18n_setup
|
6
|
-
end
|
7
|
-
|
8
|
-
def teardown
|
9
|
-
i18n_teardown
|
10
|
-
end
|
11
|
-
|
12
|
-
def test_should_get_new
|
13
|
-
get :new
|
14
|
-
assert_select "form" do
|
15
|
-
assert_select "[action=?]", "/admin/locales"
|
16
|
-
assert_select "input[type=text][name=name]", :count => 1
|
17
|
-
assert_select "input[type=text][name=code]", :count => 1
|
18
|
-
assert_select "input[type=submit][value=?]", "Create"
|
19
|
-
assert_select "a[href=?]", "/admin/translations", :value => "back to the translations"
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
def test_create
|
24
|
-
post :create, :name => "Italian", :code => 'it-IT'
|
25
|
-
assert_equal({:english => 'en-GB', :italian => 'it-IT'}, I18n.locales)
|
26
|
-
assert_redirected_to edit_admin_translation_path('it-IT')
|
27
|
-
end
|
28
|
-
|
29
|
-
def test_should_report_error_on_invalid_locale_creation
|
30
|
-
post :create, :name => "Italian", :code => 'it-PO'
|
31
|
-
assert_equal({:english => 'en-GB'}, I18n.locales)
|
32
|
-
assert_template 'new'
|
33
|
-
assert_flash_error "Invalid locale, please check the format and make sure the language is available."
|
34
|
-
end
|
35
|
-
end
|
@@ -1,109 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../../test_helper'
|
2
|
-
|
3
|
-
class Admin::SourcesControllerTest < ActionController::TestCase
|
4
|
-
include ActionView::Helpers::JavaScriptHelper
|
5
|
-
include ActionView::Helpers::TagHelper
|
6
|
-
|
7
|
-
# def test_should_get_index
|
8
|
-
# login_as :admin
|
9
|
-
# get :index
|
10
|
-
# assert_response :success
|
11
|
-
# assert_not_nil assigns(:sources)
|
12
|
-
# end
|
13
|
-
|
14
|
-
def _ignore_test_should_get_edit
|
15
|
-
login_as :admin
|
16
|
-
get :edit, :id => source.id
|
17
|
-
assert_response :success
|
18
|
-
|
19
|
-
assert_select '.predicate' do
|
20
|
-
assert_select '.should_destroy'
|
21
|
-
end
|
22
|
-
|
23
|
-
assert_select "#source_uri[value=?]", N::LOCAL + source.label
|
24
|
-
assert_select "#data ul li" do
|
25
|
-
assert_select "a", data_record.location
|
26
|
-
assert_select "a[href=?]", "/source_data/#{data_record.type}/#{data_record.location}"
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
def test_should_update_source
|
31
|
-
login_as :admin
|
32
|
-
put :update, :id => source.id, :source => { }
|
33
|
-
assert_redirected_to :action => 'index'
|
34
|
-
end
|
35
|
-
|
36
|
-
# def test_should_add_relation_with_existing_source
|
37
|
-
# login_as :admin
|
38
|
-
# put :update, :id => source.label, :source => params
|
39
|
-
# assert(source.direct_predicates_objects.include?("#{N::LOCAL}one"))
|
40
|
-
# end
|
41
|
-
|
42
|
-
# def test_should_add_source_relation_with_unexistent_source
|
43
|
-
# login_as :admin
|
44
|
-
# put :update, :id => source.label, :source => params(predicates_attributes_for_unexistent_source)
|
45
|
-
# assert(TaliaCore::Source.exists?(N::LOCAL + 'four'))
|
46
|
-
# assert(source.direct_predicates_objects.include?("#{N::LOCAL}Four"))
|
47
|
-
# end
|
48
|
-
|
49
|
-
# def test_should_remove_source_relation
|
50
|
-
# login_as :admin
|
51
|
-
# source.talias::attribute << TaliaCore::Source.find('two')
|
52
|
-
# put :update, :id => source.label, :source => params(predicates_attributes_for_destroyable_relation)
|
53
|
-
# assert(!source.direct_predicates_objects.include?("#{N::LOCAL}two"))
|
54
|
-
# end
|
55
|
-
|
56
|
-
def _ignore_test_should_show_data_records_list
|
57
|
-
login_as :admin
|
58
|
-
get :edit, :id => source.label
|
59
|
-
assert_select('h2', 'Files')
|
60
|
-
assert_select '#data' do
|
61
|
-
assert_select('ul#list') do
|
62
|
-
assert_select('span.data')
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
def _ignore_test_show_upload_form
|
68
|
-
login_as :admin
|
69
|
-
get :edit, :id => source.label
|
70
|
-
html = %(<a href="#" id="upload_link" onclick="try {
|
71
|
-
Element.update("data_form", "\u003Cform action=\"/source_data/create\" enctype=\"multipart/form-data\" method=\"post\" onsubmit=\"if (this.action.indexOf('upload_id') \u0026lt; 0){ this.action += '?upload_id=1'; }this.target = 'UploadTarget1';$('UploadStatus1').innerHTML='Upload starting...'; if($('UploadProgressBar1')){$('UploadProgressBar1').firstChild.firstChild.style.width='0%'}; if (document.uploadStatus1) { document.uploadStatus1.stop(); }document.uploadStatus1 = new Ajax.PeriodicalUpdater('UploadStatus1','/source_data/upload_status?upload_id=1', Object.extend({asynchronous:true, evalScripts:true, onComplete:function(request){$('UploadStatus1').innerHTML='Upload finished.';if($('UploadProgressBar1')){$('UploadProgressBar1').firstChild.firstChild.style.width='100%'};document.uploadStatus1 = null; onFinishedUpload()}},{decay:1.8,frequency:2.0})); return true\"\u003E\u003Ciframe id=\"UploadTarget1\" name=\"UploadTarget1\" src=\"\" style=\"width:0px;height:0px;border:0\"\u003E\u003C/iframe\u003E\n \u003Cinput id=\"data_record[source_record_id]\" name=\"data_record[source_record_id]\" type=\"hidden\" value=\"247\" /\u003E\n \u003Cinput id=\"data_record_file\" name=\"data_record[file]\" size=\"30\" type=\"file\" /\u003E\n \u003Cinput id=\"data_record_submit\" name=\"commit\" onclick=\"showUploadProgressBar();\" type=\"submit\" value=\"Upload\" /\u003E or \u003Ca href=\"#\" onclick=\"try {\n$(\u0026quot;data_form\u0026quot;).visualEffect(\u0026quot;fade\u0026quot;, {\u0026quot;duration\u0026quot;: 0.001});\n$(\u0026quot;upload_link\u0026quot;).visualEffect(\u0026quot;appear\u0026quot;, {\u0026quot;duration\u0026quot;: 0.4});\nElement.update(\u0026quot;data_form\u0026quot;, \u0026quot;\u0026quot;);\n} catch (e) { alert('RJS error:\\n\\n' + e.toString()); alert('$(\\\u0026quot;data_form\\\u0026quot;).visualEffect(\\\u0026quot;fade\\\u0026quot;, {\\\u0026quot;duration\\\u0026quot;: 0.001});\\n$(\\\u0026quot;upload_link\\\u0026quot;).visualEffect(\\\u0026quot;appear\\\u0026quot;, {\\\u0026quot;duration\\\u0026quot;: 0.4});\\nElement.update(\\\u0026quot;data_form\\\u0026quot;, \\\u0026quot;\\\u0026quot;);'); throw e }; return false;\"\u003Ecancel\u003C/a\u003E\n \u003Cdiv class=\"progressBar\" id=\"UploadProgressBar1\"\u003E\u003Cdiv class=\"border\"\u003E\u003Cdiv class=\"background\"\u003E\u003Cdiv class=\"foreground\"\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003Cdiv class=\"uploadStatus\" id=\"UploadStatus1\"\u003E\u003C/div\u003E\n\u003C/form\u003E \n");
|
72
|
-
$("upload_link").visualEffect("fade", {"duration": 0.001});
|
73
|
-
$("data_form").visualEffect("appear", {"duration": 0.4});
|
74
|
-
} catch (e) { alert('RJS error:\n\n' + e.toString()); alert('Element.update(\"data_form\", \"\\u003Cform action=\\\"/source_data/create\\\" enctype=\\\"multipart/form-data\\\" method=\\\"post\\\" onsubmit=\\\"if (this.action.indexOf(\'upload_id\') \\u0026lt; 0){ this.action += \'?upload_id=1\'; }this.target = \'UploadTarget1\';$(\'UploadStatus1\').innerHTML=\'Upload starting...\'; if($(\'UploadProgressBar1\')){$(\'UploadProgressBar1\').firstChild.firstChild.style.width=\'0%\'}; if (document.uploadStatus1) { document.uploadStatus1.stop(); }document.uploadStatus1 = new Ajax.PeriodicalUpdater(\'UploadStatus1\',\'/source_data/upload_status?upload_id=1\', Object.extend({asynchronous:true, evalScripts:true, onComplete:function(request){$(\'UploadStatus1\').innerHTML=\'Upload finished.\';if($(\'UploadProgressBar1\')){$(\'UploadProgressBar1\').firstChild.firstChild.style.width=\'100%\'};document.uploadStatus1 = null; onFinishedUpload()}},{decay:1.8,frequency:2.0})); return true\\\"\\u003E\\u003Ciframe id=\\\"UploadTarget1\\\" name=\\\"UploadTarget1\\\" src=\\\"\\\" style=\\\"width:0px;height:0px;border:0\\\"\\u003E\\u003C/iframe\\u003E\\n \\u003Cinput id=\\\"data_record[source_record_id]\\\" name=\\\"data_record[source_record_id]\\\" type=\\\"hidden\\\" value=\\\"247\\\" /\\u003E\\n \\u003Cinput id=\\\"data_record_file\\\" name=\\\"data_record[file]\\\" size=\\\"30\\\" type=\\\"file\\\" /\\u003E\\n \\u003Cinput id=\\\"data_record_submit\\\" name=\\\"commit\\\" onclick=\\\"showUploadProgressBar();\\\" type=\\\"submit\\\" value=\\\"Upload\\\" /\\u003E or \\u003Ca href=\\\"#\\\" onclick=\\\"try {\\n$(\\u0026quot;data_form\\u0026quot;).visualEffect(\\u0026quot;fade\\u0026quot;, {\\u0026quot;duration\\u0026quot;: 0.001});\\n$(\\u0026quot;upload_link\\u0026quot;).visualEffect(\\u0026quot;appear\\u0026quot;, {\\u0026quot;duration\\u0026quot;: 0.4});\\nElement.update(\\u0026quot;data_form\\u0026quot;, \\u0026quot;\\u0026quot;);\\n} catch (e) { alert(\'RJS error:\\\\n\\\\n\' + e.toString()); alert(\'$(\\\\\\u0026quot;data_form\\\\\\u0026quot;).visualEffect(\\\\\\u0026quot;fade\\\\\\u0026quot;, {\\\\\\u0026quot;duration\\\\\\u0026quot;: 0.001});\\\\n$(\\\\\\u0026quot;upload_link\\\\\\u0026quot;).visualEffect(\\\\\\u0026quot;appear\\\\\\u0026quot;, {\\\\\\u0026quot;duration\\\\\\u0026quot;: 0.4});\\\\nElement.update(\\\\\\u0026quot;data_form\\\\\\u0026quot;, \\\\\\u0026quot;\\\\\\u0026quot;);\'); throw e }; return false;\\\"\\u003Ecancel\\u003C/a\\u003E\\n \\u003Cdiv class=\\\"progressBar\\\" id=\\\"UploadProgressBar1\\\"\\u003E\\u003Cdiv class=\\\"border\\\"\\u003E\\u003Cdiv class=\\\"background\\\"\\u003E\\u003Cdiv class=\\\"foreground\\\"\\u003E\\u003C/div\\u003E\\u003C/div\\u003E\\u003C/div\\u003E\\u003C/div\\u003E\\u003Cdiv class=\\\"uploadStatus\\\" id=\\\"UploadStatus1\\\"\\u003E\\u003C/div\\u003E\\n\\u003C/form\\u003E \\n\");\n$(\"upload_link\").visualEffect(\"fade\", {\"duration\": 0.001});\n$(\"data_form\").visualEffect(\"appear\", {\"duration\": 0.4});'); throw e }; return false;">upload</a></p>)
|
75
|
-
assert_select('#upload_link', :onclick => html)
|
76
|
-
end
|
77
|
-
|
78
|
-
private
|
79
|
-
def source
|
80
|
-
@source ||= TaliaCore::Source.find("something")
|
81
|
-
end
|
82
|
-
|
83
|
-
def params(attributes = predicates_attributes)
|
84
|
-
{"uri"=>N::LOCAL + source.label, "primary_source"=>"false" }.merge(attributes)
|
85
|
-
end
|
86
|
-
|
87
|
-
def predicates_attributes
|
88
|
-
{"predicates_attributes"=>[{"name"=>"attribute", "uri"=>N::LOCAL.to_s, "namespace"=>namespace, "titleized"=>'One'}]}
|
89
|
-
end
|
90
|
-
|
91
|
-
def predicates_attributes_for_unexistent_source
|
92
|
-
{"predicates_attributes"=>[{"name"=>"attribute", "uri"=>N::LOCAL.to_s, "namespace"=>namespace, "titleized"=>'Four', "should_destroy" => ''}]}
|
93
|
-
end
|
94
|
-
|
95
|
-
def predicates_attributes_for_destroyable_relation
|
96
|
-
{"predicates_attributes"=>[{"name"=>"attribute", "uri"=>N::LOCAL.to_s, "namespace"=>namespace, "titleized"=>'Two', "should_destroy" => '1'}]}
|
97
|
-
end
|
98
|
-
|
99
|
-
def namespace
|
100
|
-
unless N::URI.shortcut_exists?(:talias)
|
101
|
-
N::Namespace.shortcut(:talias, "http://trac.talia.discovery-project.eu/wiki/StructuralOntology#")
|
102
|
-
end
|
103
|
-
:talias
|
104
|
-
end
|
105
|
-
|
106
|
-
def data_record
|
107
|
-
@data_record ||= TaliaCore::DataTypes::DataRecord.find(:first)
|
108
|
-
end
|
109
|
-
end
|