@igea/oac_frontend 1.0.92 → 1.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/controllers/rdf_v2.js +18 -0
- package/src/index.js +57 -5
- package/src/public/css/sparnatural copy.css +1418 -0
- package/src/public/css/sparnatural.css +670 -670
- package/src/public/css/style.css +1 -0
- package/src/public/js/lib/sparnatural-main.js +1 -1
- package/src/public/v2/css/v2.css +137 -9
- package/src/public/v2/images/banner.pdn +0 -0
- package/src/public/v2/images/banner.png +0 -0
- package/src/public/v2/images/banner_old.png +0 -0
- package/src/public/v2/images/changes.png +0 -0
- package/src/public/v2/images/dip_biologia.jpg +0 -0
- package/src/public/v2/images/eu.png +0 -0
- package/src/public/v2/images/italiadomani.png +0 -0
- package/src/public/v2/images/lgeu.png +0 -0
- package/src/public/v2/images/logo.png +0 -0
- package/src/public/v2/images/logo.svg +76 -0
- package/src/public/v2/images/miur.png +0 -0
- package/src/public/v2/images/models/CRMinf.png +0 -0
- package/src/public/v2/images/models/CRMsci.png +0 -0
- package/src/public/v2/images/models/Logo_CPM.png +0 -0
- package/src/public/v2/images/models/Logo_CRM.png +0 -0
- package/src/public/v2/images/sapienza.png +0 -0
- package/src/views/v2/investigation/form_content.twig +2 -0
- package/src/views/v2/layout.twig +1 -1
- package/src/views/v2/login.twig +37 -0
- package/src/views/v2/partials/footer.twig +28 -6
- package/src/views/v2/partials/header.twig +36 -32
- package/src/views/v2/presentazione/bibliografia.twig +94 -0
- package/src/views/v2/presentazione/contatti.twig +21 -0
- package/src/views/v2/presentazione/crediti.twig +20 -0
- package/src/views/v2/presentazione/finalita.twig +0 -2
- package/src/views/v2/presentazione/modelli.twig +115 -0
- package/src/views/v2/presentazione/partecipanti.twig +1 -1
- package/src/views/v2/rdf/view.twig +35 -0
- package/src/views/v2/search/index.twig +8 -0
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const express = require('express');
|
|
2
|
+
const router = express.Router();
|
|
3
|
+
const DataModel = require('../models/DataModel');
|
|
4
|
+
|
|
5
|
+
module.exports = function(serviceName) {
|
|
6
|
+
|
|
7
|
+
router.get('/view', (req, res) => {
|
|
8
|
+
|
|
9
|
+
let data = new DataModel(req, {
|
|
10
|
+
root: serviceName,
|
|
11
|
+
title: 'RDF viewer',
|
|
12
|
+
iri: req.query.iri
|
|
13
|
+
});
|
|
14
|
+
res.render('v2/rdf/view.twig', data.toJson());
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
return router
|
|
18
|
+
}
|
package/src/index.js
CHANGED
|
@@ -117,6 +117,8 @@ getPort.default({
|
|
|
117
117
|
|
|
118
118
|
const rdfRouter = require('./controllers/rdf.js')(serviceName);
|
|
119
119
|
app.use(`/${serviceName}/rdf`, rdfRouter);
|
|
120
|
+
const rdfRouterV2 = require('./controllers/rdf_v2.js')(serviceName);
|
|
121
|
+
app.use(`/${serviceName}/v2/rdf`, rdfRouterV2);
|
|
120
122
|
|
|
121
123
|
|
|
122
124
|
const captchaRouter = require('./controllers/captcha.js');
|
|
@@ -127,7 +129,7 @@ getPort.default({
|
|
|
127
129
|
// Application routes
|
|
128
130
|
// ---------------------------------------------------------------------
|
|
129
131
|
app.get(`/${serviceName}`, (req, res) => {
|
|
130
|
-
res.render('login', { root: serviceName, title: 'Login' });
|
|
132
|
+
res.render('v2/login', { root: serviceName, title: 'Login' });
|
|
131
133
|
});
|
|
132
134
|
app.get(`/${serviceName}/password_recovery`, (req, res) => {
|
|
133
135
|
res.render('password_recovery', { root: serviceName, title: 'Password recovery' });
|
|
@@ -196,6 +198,55 @@ getPort.default({
|
|
|
196
198
|
res.render('v2/presentazione/sistema', data.toJson());
|
|
197
199
|
});
|
|
198
200
|
|
|
201
|
+
app.get('/frontend/v2/modelli', (req, res) => {
|
|
202
|
+
let data = new DataModel(req, {
|
|
203
|
+
root: 'frontend/v2',
|
|
204
|
+
title: 'Modelli',
|
|
205
|
+
|
|
206
|
+
activeMenu: 'introduction',
|
|
207
|
+
activeSidebar: 'presentazione',
|
|
208
|
+
activeSidebarItem: 'modelli'
|
|
209
|
+
});
|
|
210
|
+
res.render('v2/presentazione/modelli', data.toJson());
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
app.get('/frontend/v2/bibliografia', (req, res) => {
|
|
215
|
+
let data = new DataModel(req, {
|
|
216
|
+
root: 'frontend/v2',
|
|
217
|
+
title: 'Bibliografia',
|
|
218
|
+
|
|
219
|
+
activeMenu: 'introduction',
|
|
220
|
+
activeSidebar: 'presentazione',
|
|
221
|
+
activeSidebarItem: 'bibliografia'
|
|
222
|
+
});
|
|
223
|
+
res.render('v2/presentazione/bibliografia', data.toJson());
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
app.get('/frontend/v2/crediti', (req, res) => {
|
|
227
|
+
let data = new DataModel(req, {
|
|
228
|
+
root: 'frontend/v2',
|
|
229
|
+
title: 'Crediti',
|
|
230
|
+
|
|
231
|
+
activeMenu: 'introduction',
|
|
232
|
+
activeSidebar: 'presentazione',
|
|
233
|
+
activeSidebarItem: 'crediti'
|
|
234
|
+
});
|
|
235
|
+
res.render('v2/presentazione/crediti', data.toJson());
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
app.get('/frontend/v2/contatti', (req, res) => {
|
|
239
|
+
let data = new DataModel(req, {
|
|
240
|
+
root: 'frontend/v2',
|
|
241
|
+
title: 'Contatti',
|
|
242
|
+
|
|
243
|
+
activeMenu: 'introduction',
|
|
244
|
+
activeSidebar: 'presentazione',
|
|
245
|
+
activeSidebarItem: 'contatti'
|
|
246
|
+
});
|
|
247
|
+
res.render('v2/presentazione/contatti', data.toJson());
|
|
248
|
+
});
|
|
249
|
+
|
|
199
250
|
app.get('/frontend/v2/investigation/form', async (req, res) => {
|
|
200
251
|
let data = new DataModel(req, {
|
|
201
252
|
root: 'frontend/v2',
|
|
@@ -214,12 +265,12 @@ activeSidebar: 'investigation',
|
|
|
214
265
|
title: 'Ricerca',
|
|
215
266
|
activeMenu: 'search',
|
|
216
267
|
activeSidebar: 'search',
|
|
217
|
-
activeSidebarItem: 'fast',
|
|
218
|
-
fastType: 1,
|
|
219
|
-
schema: 'fast_' + 1
|
|
268
|
+
//activeSidebarItem: 'fast',
|
|
269
|
+
//fastType: 1,
|
|
270
|
+
//schema: 'fast_' + 1
|
|
220
271
|
});
|
|
221
272
|
|
|
222
|
-
res.render('v2/search/
|
|
273
|
+
res.render('v2/search/index', data.toJson());
|
|
223
274
|
});
|
|
224
275
|
|
|
225
276
|
|
|
@@ -240,6 +291,7 @@ app.get('/frontend/v2/admin', (req, res) => {
|
|
|
240
291
|
|
|
241
292
|
|
|
242
293
|
|
|
294
|
+
|
|
243
295
|
// ---------------------------------------------------------------------
|
|
244
296
|
// Start listing on the specified port
|
|
245
297
|
app.listen(port, async () => {
|