Commit ef8f9340 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Rename EZ-DDI to Data Catalogue.

parent 1c793bd6
Pipeline #207989 failed with stage
in 2 minutes and 42 seconds
......@@ -17,6 +17,6 @@ EXPOSE 3000
VOLUME /public_data
ENV PUBLIC_DATA_DIR="/public_data"
ENV TITLE="EZ-DDI (Docker)"
ENV TITLE="Data Catalogue (Docker)"
CMD npm start
# EZ-DDI
# Data Catalogue
_Fetch, validate, convert & serve CESSDA-compliants DDI repositories._
......@@ -9,14 +9,14 @@ By:
Copyright (C) 2020 Cepremap & Progedo
https://git.nomics.world/progedo/ez-ddi.git
https://git.nomics.world/progedo/data-catalogue.git
> EZ-DDI is free software; you can redistribute it and/or modify
> Data Catalogue is free software; you can redistribute it and/or modify
> it under the terms of the GNU Affero General Public License as
> published by the Free Software Foundation, either version 3 of the
> License, or (at your option) any later version.
>
> EZ-DDI is distributed in the hope that it will be useful,
> Data Catalogue is distributed in the hope that it will be useful,
> but WITHOUT ANY WARRANTY; without even the implied warranty of
> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> GNU Affero General Public License for more details.
......
# EZ-DDI
# Data Catalogue
_Fetch, validate, convert & serve CESSDA-compliants DDI repositories._
## Installation
```bash
git clone https://git.nomics.world/progedo/ez-ddi.git
cd ez-ddi/
git clone https://git.nomics.world/progedo/data-catalogue.git
cd data-catalogue/
npm install
ln -s example.env .env
```
### Database Creation
......@@ -32,9 +33,9 @@ psql postgres
#### For everybody
```sql
CREATE USER ezddi WITH PASSWORD 'ezddi';
CREATE DATABASE ezddi WITH OWNER ezddi;
\connect ezddi
CREATE USER data_catalogue WITH PASSWORD 'data_catalogue';
CREATE DATABASE data_catalogue WITH OWNER data_catalogue;
\connect data_catalogue
CREATE EXTENSION IF NOT EXISTS pg_trgm;
\q
logout # For Debian only
......@@ -66,8 +67,23 @@ npx babel-node --extensions ".ts" src/scripts/retrieve_nesstar_ddis.js --url htt
npx babel-node --extensions ".ts" src/scripts/retrieve_nesstar_ddis.js --url http://nsddata.nsd.uib.no ../public_data/nsddata-ddi/
```
### Indexing DDI files
```bash
npx babel-node --extensions ".ts" -- src/scripts/index_code_books.ts --path=adisp --title=\"Archives de données issues de la statistique publique \(ADISP\)\" ../public_data/adisp-ddi/
npx babel-node --extensions ".ts" -- src/scripts/index_code_books.ts --path=cdsp --title=\"SciencesPo Centre de données socio-politiques \(CDSP\)\" ../public_data/cdsp-ddi/
npx babel-node --extensions ".ts" -- src/scripts/index_code_books.ts --path=ined --title=\"Institut national d\'études démographiques \(INED\)\" ../public_data/ined-ddi/
npx babel-node --extensions ".ts" -- src/scripts/index_code_books.ts --path=ined/gpgsurvey --title=\"Enquête Générations et Genre du projet international Generations and Gender Programme \(GGP\)\" ../public_data/ined-gpgsurvey-ddi/
npx babel-node --extensions ".ts" -- src/scripts/index_code_books.ts --path=ukdataservice --title=\"UK Data Service\" ../public_data/ukdataservice-ddi/
npx babel-node --extensions ".ts" -- src/scripts/index_code_books.ts --path=nsddata --title=\"Norwegian Centre for Research Data \(NSD\)\" ../public_data/nsddata-ddi/
```
## Development
### Extracting TypeScript Raw Types from DDI files
In `data-catalogue` directory:
```bash
npx babel-node --extensions ".ts" --max-old-space-size=10240 src/scripts/raw_types_from_ddi_files.ts ../public_data/adisp-ddi/ ../public_data/adisp-ddi/ ../public_data/ined-ddi/ --target=src/raw_types/code_books.ts
npx babel-node --extensions ".ts" --max-old-space-size=8192 src/scripts/raw_types_from_ddi_files.ts ../public_data/xml-ddi-adisp/ --target=src/raw_types/enquetes_adisp_fournies.ts
......@@ -78,14 +94,3 @@ npx babel-node --extensions ".ts" src/scripts/raw_types_from_ddi_files.ts ../pub
# Prettify generated TypeScript files:
npm run prettier
```
### Indexing DDI files
```bash
npx babel-node --extensions ".ts" -- src/scripts/index_code_books.ts --path=adisp --title=\"Archives de données issues de la statistique publique \(ADISP\)\" ../public_data/adisp-ddi/
npx babel-node --extensions ".ts" -- src/scripts/index_code_books.ts --path=cdsp --title=\"SciencesPo Centre de données socio-politiques \(CDSP\)\" ../public_data/cdsp-ddi/
npx babel-node --extensions ".ts" -- src/scripts/index_code_books.ts --path=ined --title=\"Institut national d\'études démographiques \(INED\)\" ../public_data/ined-ddi/
npx babel-node --extensions ".ts" -- src/scripts/index_code_books.ts --path=ined/gpgsurvey --title=\"Enquête Générations et Genre du projet international Generations and Gender Programme \(GGP\)\" ../public_data/ined-gpgsurvey-ddi/
npx babel-node --extensions ".ts" -- src/scripts/index_code_books.ts --path=ukdataservice --title=\"UK Data Service\" ../public_data/ukdataservice-ddi/
npx babel-node --extensions ".ts" -- src/scripts/index_code_books.ts --path=nsddata --title=\"Norwegian Centre for Research Data \(NSD\)\" ../public_data/nsddata-ddi/
```
......@@ -5,15 +5,15 @@ BASE_URL="http://localhost:3000"
# PostgreSQL database configuration
DB_HOST="localhost"
DB_PORT=5432
DB_NAME="ezddi"
DB_USER="ezddi"
DB_NAME="data_catalogue"
DB_USER="data_catalogue"
# Change value of DB_PASSWORD!
DB_PASSWORD="ezdddi"
# DEV_AUTHENTICATION='{"email": "exemple.admin@example.com", "full_name": "Exemple Admin", "preferred_username": "admin", "roles": ["ezddi_admin"]}'
# DEV_AUTHENTICATION='{"email": "exemple.diffuseur@example.com", "full_name": "Exemple Diffuseur", "preferred_username": "diffuseur", "roles": ["ezddi_diffuseur"]}'
DEV_AUTHENTICATION='{"email": "exemple.support@example.com", "full_name": "Exemple Suport", "preferred_username": "support", "roles": ["ezddi_support"]}'
# DEV_AUTHENTICATION='{"email": "exemple.utilisateur@example.com", "full_name": "Exemple Utilisateur", "preferred_username": "utilisateur", "roles": ["ezddi_utilisateur"]}'
# DEV_AUTHENTICATION='{"email": "exemple.admin@example.com", "full_name": "Exemple Admin", "preferred_username": "admin", "roles": ["data_catalogue_admin"]}'
# DEV_AUTHENTICATION='{"email": "exemple.diffuseur@example.com", "full_name": "Exemple Diffuseur", "preferred_username": "diffuseur", "roles": ["data_catalogue_diffuseur"]}'
DEV_AUTHENTICATION='{"email": "exemple.support@example.com", "full_name": "Exemple Suport", "preferred_username": "support", "roles": ["data_catalogue_support"]}'
# DEV_AUTHENTICATION='{"email": "exemple.utilisateur@example.com", "full_name": "Exemple Utilisateur", "preferred_username": "utilisateur", "roles": ["data_catalogue_utilisateur"]}'
# Log every HTTP requests.
NODE_ENV="development"
......@@ -32,4 +32,4 @@ PUBLIC_DATA_DIR="../public_data"
# Change value OF SESSION_SECRET!
SESSION_SECRET="SESSION_SECRET"
# TITLE="EZ-DDI"
# TITLE="Data Catalogue"
{
"name": "ez-ddi",
"name": "data-catalogue",
"version": "0.0.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "data-catalogue",
"version": "0.0.1",
"hasInstallScript": true,
"license": "AGPL-3.0-or-later",
......@@ -52,7 +53,7 @@
"@types/passport": "^1.0.4",
"@types/passport-local": "^1.0.33",
"@types/polka": "^0.5.1",
"a17t": "^0.4.0",
"a17t": "^0.5.1",
"cached-iterable": "^0.3.0",
"command-line-args": "^5.1.1",
"connect-pg-simple": "^6.2.1",
......@@ -1777,9 +1778,9 @@
"dev": true
},
"node_modules/@types/node": {
"version": "14.14.19",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.19.tgz",
"integrity": "sha512-4nhBPStMK04rruRVtVc6cDqhu7S9GZai0fpXgPXrFpcPX6Xul8xnrjSdGB4KPBVYG/R5+fXWdCM8qBoiULWGPQ==",
"version": "14.14.20",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.20.tgz",
"integrity": "sha512-Y93R97Ouif9JEOWPIUyU+eyIdyRqQR0I8Ez1dzku4hDx34NWh4HbtIc3WNzwB1Y9ULvNGeu5B8h8bVL5cAk4/A==",
"dev": true
},
"node_modules/@types/node-fetch": {
......@@ -1924,13 +1925,10 @@
"dev": true
},
"node_modules/a17t": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/a17t/-/a17t-0.4.0.tgz",
"integrity": "sha512-taZhXp2mlZh/cC0LyJDzTLnrafQ41OTulMvobq6akCnFSjq3EbCbbH3ZSuovg2/GwsS9GbtSwy2R7Nxqd8vUgQ==",
"dev": true,
"dependencies": {
"autoprefixer": "^10.0.2"
}
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/a17t/-/a17t-0.5.1.tgz",
"integrity": "sha512-peIPrH9eDiu49LLzLlSTFFrXj6WLlEX3TRsUkqyyOHi/i58ilJ/eERnu7AcswXhuCBx+/2W9EUuHM+8iAq4ipg==",
"dev": true
},
"node_modules/accepts": {
"version": "1.3.7",
......@@ -2118,15 +2116,16 @@
}
},
"node_modules/autoprefixer": {
"version": "10.1.0",
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.1.0.tgz",
"integrity": "sha512-0/lBNwN+ZUnb5su18NZo5MBIjDaq6boQKZcxwy86Gip/CmXA2zZqUoFQLCNAGI5P25ZWSP2RWdhDJ8osfKEjoQ==",
"version": "10.2.0",
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.2.0.tgz",
"integrity": "sha512-5SdPoK2Q3rxVh4xC8GKdy772KbEESdl2SyJADCw5FMUrd5eNtpOTLo7oCFMEKvK86zQdvsIVTYk93E8dAfRy6g==",
"dev": true,
"peer": true,
"dependencies": {
"browserslist": "^4.15.0",
"caniuse-lite": "^1.0.30001165",
"browserslist": "^4.16.1",
"caniuse-lite": "^1.0.30001173",
"colorette": "^1.2.1",
"fraction.js": "^4.0.12",
"fraction.js": "^4.0.13",
"normalize-range": "^0.1.2",
"postcss-value-parser": "^4.1.0"
},
......@@ -2341,16 +2340,16 @@
"dev": true
},
"node_modules/browserslist": {
"version": "4.16.0",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.0.tgz",
"integrity": "sha512-/j6k8R0p3nxOC6kx5JGAxsnhc9ixaWJfYc+TNTzxg6+ARaESAvQGV7h0uNOB4t+pLQJZWzcrMxXOxjgsCj3dqQ==",
"version": "4.16.1",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.1.tgz",
"integrity": "sha512-UXhDrwqsNcpTYJBTZsbGATDxZbiVDsx6UjpmRUmtnP10pr8wAYr5LgFoEFw9ixriQH2mv/NX2SfGzE/o8GndLA==",
"dev": true,
"dependencies": {
"caniuse-lite": "^1.0.30001165",
"caniuse-lite": "^1.0.30001173",
"colorette": "^1.2.1",
"electron-to-chromium": "^1.3.621",
"electron-to-chromium": "^1.3.634",
"escalade": "^3.1.1",
"node-releases": "^1.1.67"
"node-releases": "^1.1.69"
},
"bin": {
"browserslist": "cli.js"
......@@ -2561,14 +2560,14 @@
}
},
"node_modules/chokidar": {
"version": "3.4.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.3.tgz",
"integrity": "sha512-DtM3g7juCXQxFVSNPNByEC2+NImtBuxQQvWlHunpJIS5Ocr0lG306cC7FCi7cEA0fzmybPUIl4txBIobk1gGOQ==",
"version": "3.5.0",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.0.tgz",
"integrity": "sha512-JgQM9JS92ZbFR4P90EvmzNpSGhpPBGBSj10PILeDyYFwp4h2/D9OM03wsJ4zW1fEp4ka2DGrnUeD7FuvQ2aZ2Q==",
"dev": true,
"dependencies": {
"anymatch": "~3.1.1",
"braces": "~3.0.2",
"fsevents": "~2.1.2",
"fsevents": "~2.3.1",
"glob-parent": "~5.1.0",
"is-binary-path": "~2.1.0",
"is-glob": "~4.0.1",
......@@ -2579,7 +2578,7 @@
"node": ">= 8.10.0"
},
"optionalDependencies": {
"fsevents": "~2.1.2"
"fsevents": "~2.3.1"
}
},
"node_modules/chokidar/node_modules/braces": {
......@@ -2606,6 +2605,20 @@
"node": ">=8"
}
},
"node_modules/chokidar/node_modules/fsevents": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.1.tgz",
"integrity": "sha512-YR47Eg4hChJGAB1O3yEAOkGO+rlzutoICGqGo9EZ4lKWokzZRSyIW1QmTzqjtw8MJdj9srP869CuWw/hyzSiBw==",
"dev": true,
"hasInstallScript": true,
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
"node_modules/chokidar/node_modules/is-number": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
......@@ -3764,9 +3777,9 @@
"integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
},
"node_modules/electron-to-chromium": {
"version": "1.3.633",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.633.tgz",
"integrity": "sha512-bsVCsONiVX1abkWdH7KtpuDAhsQ3N3bjPYhROSAXE78roJKet0Y5wznA14JE9pzbwSZmSMAW6KiKYf1RvbTJkA==",
"version": "1.3.634",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.634.tgz",
"integrity": "sha512-QPrWNYeE/A0xRvl/QP3E0nkaEvYUvH3gM04ZWYtIa6QlSpEetRlRI1xvQ7hiMIySHHEV+mwDSX8Kj4YZY6ZQAw==",
"dev": true
},
"node_modules/encoding": {
......@@ -4401,6 +4414,7 @@
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.0.13.tgz",
"integrity": "sha512-E1fz2Xs9ltlUp+qbiyx9wmt2n9dRzPsS11Jtdb8D2o+cC7wr9xkkKsVKJuBX0ST+LVS+LhLO+SbLJNtfWcJvXA==",
"dev": true,
"peer": true,
"engines": {
"node": "*"
}
......@@ -4441,7 +4455,7 @@
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz",
"integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==",
"deprecated": "Please update to v 2.2.x",
"deprecated": "\"Please update to latest v2.3 or v2.2\"",
"dev": true,
"hasInstallScript": true,
"optional": true,
......@@ -5830,9 +5844,9 @@
}
},
"node_modules/node-releases": {
"version": "1.1.67",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.67.tgz",
"integrity": "sha512-V5QF9noGFl3EymEwUYzO+3NTDpGfQB4ve6Qfnzf3UNydMhjQRVPR1DZTuvWiLzaFJYw2fmDwAfnRNEVb64hSIg==",
"version": "1.1.69",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.69.tgz",
"integrity": "sha512-DGIjo79VDEyAnRlfSqYTsy+yoHd2IOjJiKUozD2MV2D85Vso6Bug56mb9tT/fY5Urt0iqk01H7x+llAruDR2zA==",
"dev": true
},
"node_modules/node-stream-zip": {
......@@ -5857,6 +5871,7 @@
"resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz",
"integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=",
"dev": true,
"peer": true,
"engines": {
"node": ">=0.10.0"
}
......@@ -8994,9 +9009,9 @@
}
},
"node_modules/rollup": {
"version": "2.35.1",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.35.1.tgz",
"integrity": "sha512-q5KxEyWpprAIcainhVy6HfRttD9kutQpHbeqDTWnqAFNJotiojetK6uqmcydNMymBEtC4I8bCYR+J3mTMqeaUA==",
"version": "2.36.1",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.36.1.tgz",
"integrity": "sha512-eAfqho8dyzuVvrGqpR0ITgEdq0zG2QJeWYh+HeuTbpcaXk8vNFc48B7bJa1xYosTCKx0CuW+447oQOW8HgBIZQ==",
"dev": true,
"dependencies": {
"fsevents": "~2.1.2"
......@@ -9199,9 +9214,9 @@
}
},
"node_modules/shimport": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/shimport/-/shimport-2.0.4.tgz",
"integrity": "sha512-5YOyQqYkOFSkPFnpS87De6BYzDiZBc8FS4/aTuGZiST+WmXSwWRoaNRHqyVOeEpSx9wlgYWg9WYfCuzD/11/qA==",
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/shimport/-/shimport-2.0.5.tgz",
"integrity": "sha512-H2FeQyImK4CFhGG1wVhHEB1hASWz+WQK6t2gMP5lk+b0PW30XSrsryDONDBwF1n6hBKsmbr0REfTinaNdEkcPQ==",
"dev": true
},
"node_modules/simple-swizzle": {
......@@ -9910,18 +9925,18 @@
}
},
"node_modules/svelte": {
"version": "3.31.1",
"resolved": "https://registry.npmjs.org/svelte/-/svelte-3.31.1.tgz",
"integrity": "sha512-Q8xVz5U/IFFNjgvVSjdzKJPAX0MFytFwiJo1HAPfGwM7LkHA+BN2q2kL8vKcJwjku7/509MapLov8C9SjogNRg==",
"version": "3.31.2",
"resolved": "https://registry.npmjs.org/svelte/-/svelte-3.31.2.tgz",
"integrity": "sha512-TxZGrXzX2ggFH3BIKY5fmbeMdJuZrMIMDYPMX6R9255bueuYIuVaBQSLUeY2oD7W4IdeqRZiAVGCjDw2POKBRA==",
"dev": true,
"engines": {
"node": ">= 8"
}
},
"node_modules/svelte-check": {
"version": "1.1.24",
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-1.1.24.tgz",
"integrity": "sha512-zKd2uX0cJMF7l1Wsw7kYSqpk2P2IB48AQLYJtgfUEIQt7S7r8sOrBvSQ6qjj6bVEouT7z9lcuzoOgjD16x8P/A==",
"version": "1.1.25",
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-1.1.25.tgz",
"integrity": "sha512-GrECBxcH/m86CtxVFC4bfjBRupUA0EG8xZ5Vz9N/d3X6X7SP/DVXYuJVy1rpzsxcBY4sitRaLh8DJ4hKG9izmQ==",
"dev": true,
"dependencies": {
"chalk": "^4.0.0",
......@@ -10429,9 +10444,9 @@
}
},
"node_modules/tslib": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz",
"integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz",
"integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==",
"dev": true
},
"node_modules/type-check": {
......@@ -12231,9 +12246,9 @@
"dev": true
},
"@types/node": {
"version": "14.14.19",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.19.tgz",
"integrity": "sha512-4nhBPStMK04rruRVtVc6cDqhu7S9GZai0fpXgPXrFpcPX6Xul8xnrjSdGB4KPBVYG/R5+fXWdCM8qBoiULWGPQ==",
"version": "14.14.20",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.20.tgz",
"integrity": "sha512-Y93R97Ouif9JEOWPIUyU+eyIdyRqQR0I8Ez1dzku4hDx34NWh4HbtIc3WNzwB1Y9ULvNGeu5B8h8bVL5cAk4/A==",
"dev": true
},
"@types/node-fetch": {
......@@ -12378,13 +12393,10 @@
"dev": true
},
"a17t": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/a17t/-/a17t-0.4.0.tgz",
"integrity": "sha512-taZhXp2mlZh/cC0LyJDzTLnrafQ41OTulMvobq6akCnFSjq3EbCbbH3ZSuovg2/GwsS9GbtSwy2R7Nxqd8vUgQ==",
"dev": true,
"requires": {
"autoprefixer": "^10.0.2"
}
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/a17t/-/a17t-0.5.1.tgz",
"integrity": "sha512-peIPrH9eDiu49LLzLlSTFFrXj6WLlEX3TRsUkqyyOHi/i58ilJ/eERnu7AcswXhuCBx+/2W9EUuHM+8iAq4ipg==",
"dev": true
},
"accepts": {
"version": "1.3.7",
......@@ -12521,15 +12533,16 @@
"dev": true
},
"autoprefixer": {
"version": "10.1.0",
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.1.0.tgz",
"integrity": "sha512-0/lBNwN+ZUnb5su18NZo5MBIjDaq6boQKZcxwy86Gip/CmXA2zZqUoFQLCNAGI5P25ZWSP2RWdhDJ8osfKEjoQ==",
"version": "10.2.0",
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.2.0.tgz",
"integrity": "sha512-5SdPoK2Q3rxVh4xC8GKdy772KbEESdl2SyJADCw5FMUrd5eNtpOTLo7oCFMEKvK86zQdvsIVTYk93E8dAfRy6g==",
"dev": true,
"peer": true,
"requires": {
"browserslist": "^4.15.0",
"caniuse-lite": "^1.0.30001165",
"browserslist": "^4.16.1",
"caniuse-lite": "^1.0.30001173",
"colorette": "^1.2.1",
"fraction.js": "^4.0.12",
"fraction.js": "^4.0.13",
"normalize-range": "^0.1.2",
"postcss-value-parser": "^4.1.0"
}
......@@ -12707,16 +12720,16 @@
"dev": true
},
"browserslist": {
"version": "4.16.0",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.0.tgz",
"integrity": "sha512-/j6k8R0p3nxOC6kx5JGAxsnhc9ixaWJfYc+TNTzxg6+ARaESAvQGV7h0uNOB4t+pLQJZWzcrMxXOxjgsCj3dqQ==",
"version": "4.16.1",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.1.tgz",
"integrity": "sha512-UXhDrwqsNcpTYJBTZsbGATDxZbiVDsx6UjpmRUmtnP10pr8wAYr5LgFoEFw9ixriQH2mv/NX2SfGzE/o8GndLA==",
"dev": true,
"requires": {
"caniuse-lite": "^1.0.30001165",
"caniuse-lite": "^1.0.30001173",
"colorette": "^1.2.1",
"electron-to-chromium": "^1.3.621",
"electron-to-chromium": "^1.3.634",
"escalade": "^3.1.1",
"node-releases": "^1.1.67"
"node-releases": "^1.1.69"
}
},
"buffer-equal": {
......@@ -12872,14 +12885,14 @@
}
},
"chokidar": {
"version": "3.4.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.3.tgz",
"integrity": "sha512-DtM3g7juCXQxFVSNPNByEC2+NImtBuxQQvWlHunpJIS5Ocr0lG306cC7FCi7cEA0fzmybPUIl4txBIobk1gGOQ==",
"version": "3.5.0",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.0.tgz",
"integrity": "sha512-JgQM9JS92ZbFR4P90EvmzNpSGhpPBGBSj10PILeDyYFwp4h2/D9OM03wsJ4zW1fEp4ka2DGrnUeD7FuvQ2aZ2Q==",
"dev": true,
"requires": {
"anymatch": "~3.1.1",
"braces": "~3.0.2",
"fsevents": "~2.1.2",
"fsevents": "~2.3.1",
"glob-parent": "~5.1.0",
"is-binary-path": "~2.1.0",
"is-glob": "~4.0.1",
......@@ -12905,6 +12918,13 @@
"to-regex-range": "^5.0.1"
}
},
"fsevents": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.1.tgz",
"integrity": "sha512-YR47Eg4hChJGAB1O3yEAOkGO+rlzutoICGqGo9EZ4lKWokzZRSyIW1QmTzqjtw8MJdj9srP869CuWw/hyzSiBw==",
"dev": true,
"optional": true
},
"is-number": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
......@@ -13836,9 +13856,9 @@
"integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
},
"electron-to-chromium": {
"version": "1.3.633",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.633.tgz",
"integrity": "sha512-bsVCsONiVX1abkWdH7KtpuDAhsQ3N3bjPYhROSAXE78roJKet0Y5wznA14JE9pzbwSZmSMAW6KiKYf1RvbTJkA==",
"version": "1.3.634",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.634.tgz",
"integrity": "sha512-QPrWNYeE/A0xRvl/QP3E0nkaEvYUvH3gM04ZWYtIa6QlSpEetRlRI1xvQ7hiMIySHHEV+mwDSX8Kj4YZY6ZQAw==",
"dev": true
},
"encoding": {
......@@ -14344,7 +14364,8 @@
"version": "4.0.13",
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.0.13.tgz",
"integrity": "sha512-E1fz2Xs9ltlUp+qbiyx9wmt2n9dRzPsS11Jtdb8D2o+cC7wr9xkkKsVKJuBX0ST+LVS+LhLO+SbLJNtfWcJvXA==",
"dev": true
"dev": true,
"peer": true
},
"fragment-cache": {
"version": "0.2.1",
......@@ -15466,9 +15487,9 @@
"dev": true
},
"node-releases": {
"version": "1.1.67",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.67.tgz",
"integrity": "sha512-V5QF9noGFl3EymEwUYzO+3NTDpGfQB4ve6Qfnzf3UNydMhjQRVPR1DZTuvWiLzaFJYw2fmDwAfnRNEVb64hSIg==",
"version": "1.1.69",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.69.tgz",
"integrity": "sha512-DGIjo79VDEyAnRlfSqYTsy+yoHd2IOjJiKUozD2MV2D85Vso6Bug56mb9tT/fY5Urt0iqk01H7x+llAruDR2zA==",
"dev": true
},
"node-stream-zip": {
......@@ -15486,7 +15507,8 @@
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz",
"integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=",
"dev": true
"dev": true,
"peer": true
},
"normalize-url": {
"version": "4.5.0",
......@@ -17886,9 +17908,9 @@
}
},
"rollup": {
"version": "2.35.1",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.35.1.tgz",
"integrity": "sha512-q5KxEyWpprAIcainhVy6HfRttD9kutQpHbeqDTWnqAFNJotiojetK6uqmcydNMymBEtC4I8bCYR+J3mTMqeaUA==",
"version": "2.36.1",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.36.1.tgz",
"integrity": "sha512-eAfqho8dyzuVvrGqpR0ITgEdq0zG2QJeWYh+HeuTbpcaXk8vNFc48B7bJa1xYosTCKx0CuW+447oQOW8HgBIZQ==",
"dev": true,
"requires": {
"fsevents": "~2.1.2"
......@@ -18051,9 +18073,9 @@
"dev": true
},
"shimport": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/shimport/-/shimport-2.0.4.tgz",
"integrity": "sha512-5YOyQqYkOFSkPFnpS87De6BYzDiZBc8FS4/aTuGZiST+WmXSwWRoaNRHqyVOeEpSx9wlgYWg9WYfCuzD/11/qA==",
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/shimport/-/shimport-2.0.5.tgz",
"integrity": "sha512-H2FeQyImK4CFhGG1wVhHEB1hASWz+WQK6t2gMP5lk+b0PW30XSrsryDONDBwF1n6hBKsmbr0REfTinaNdEkcPQ==",
"dev": true
},
"simple-swizzle": {
......@@ -18642,15 +18664,15 @@
}
},
"svelte": {
"version": "3.31.1",
"resolved": "https://registry.npmjs.org/svelte/-/svelte-3.31.1.tgz",
"integrity": "sha512-Q8xVz5U/IFFNjgvVSjdzKJPAX0MFytFwiJo1HAPfGwM7LkHA+BN2q2kL8vKcJwjku7/509MapLov8C9SjogNRg==",
"version": "3.31.2",
"resolved": "https://registry.npmjs.org/svelte/-/svelte-3.31.2.tgz",
"integrity": "sha512-TxZGrXzX2ggFH3BIKY5fmbeMdJuZrMIMDYPMX6R9255bueuYIuVaBQSLUeY2oD7W4IdeqRZiAVGCjDw2POKBRA==",
"dev": true
},
"svelte-check": {
"version": "1.1.24",
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-1.1.24.tgz",
"integrity": "sha512-zKd2uX0cJMF7l1Wsw7kYSqpk2P2IB48AQLYJtgfUEIQt7S7r8sOrBvSQ6qjj6bVEouT7z9lcuzoOgjD16x8P/A==",
"version": "1.1.25",
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-1.1.25.tgz",
"integrity": "sha512-GrECBxcH/m86CtxVFC4bfjBRupUA0EG8xZ5Vz9N/d3X6X7SP/DVXYuJVy1rpzsxcBY4sitRaLh8DJ4hKG9izmQ==",
"dev": true,
"requires": {
"chalk": "^4.0.0",
......@@ -19003,9 +19025,9 @@
}
},
"tslib": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz",
"integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz",
"integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==",
"dev": true
},
"type-check": {
......
{
"name": "ez-ddi",
"name": "data-catalogue",
"description": "Fetch, validate, convert & serve CESSDA-compliants DDI repositories",
"license": "AGPL-3.0-or-later",
"repository": {
"type": "git",
"url": "https://git.nomics.world/progedo/ez-ddi.git"
"url": "https://git.nomics.world/progedo/data-catalogue.git"
},
"version": "0.0.1",
"author": "DBnomics Team",
......@@ -66,7 +66,7 @@
"@types/passport": "^1.0.4",
"@types/passport-local": "^1.0.33",
"@types/polka": "^0.5.1",
"a17t": "^0.4.0",
"a17t": "^0.5.1",
"cached-iterable": "^0.3.0",
"command-line-args": "^5.1.1",
"connect-pg-simple": "^6.2.1",
......
......@@ -61,7 +61,7 @@
}
</script>
{#if roles.has('ezddi_admin') || roles.has('ezddi_support')}
{#if roles.has('data_catalogue_admin') || roles.has('data_catalogue_support')}
<nav
class="{display} flex-wrap flex-grow w-full max-w-full px-2 py-4 rounded-lg shadow-lg md:w-auto md:items-center md:justify-between bg-neutral-000 md:bg-transparent md:shadow-none md:p-0">
<ul class="flex flex-wrap items-center">
......
......@@ -15,7 +15,7 @@
<!-- <nav
class="flext flex-wrap flex-grow w-full max-w-full px-2 py-4 rounded-lg shadow-lg md:w-auto md:items-center md:justify-between bg-neutral-000 md:bg-transparent md:shadow-none md:p-0">
<ul class="flex flex-wrap items-center">
{#if roles.has('ezddi_diffuseur') || roles.has('ezddi_support')}
{#if roles.has('data_catalogue_diffuseur') || roles.has('data_catalogue_support')}
<li
class="portal"
class:~info={segment === 'demandes'}
......
......@@ -22,7 +22,7 @@ const config = {
proxy: process.env.PROXY || false,
publicDataDir: process.env.PUBLIC_DATA_DIR || "../public_data",
sessionSecret: process.env.SESSION_SECRET,
title: process.env.TITLE || "EZ-DDI",
title: process.env.TITLE || "Data Catalogue",
}
const [validConfig, error] = validateConfig(config)
......
......@@ -23,7 +23,7 @@
<hr class="h-12 sep" />