The following document contains technical details about the following Multilingual Ontology Repository (MOR) component:
output-j-s-array-id
.
default-lang
requester-country-code
AT
(Austria),
BE
(Belgium),
BG
(Bulgaria),
HR
(Croatia),
CY
(Cyprus),
CZ
(Czech Republic),
DK
(Denmark),
EE
(Estonia),
FI
(Finland),
FR
(France),
DE
(Germany),
EL
(Greece),
HU
(Hungary),
IE
(Ireland),
IT
(Italy),
LV
(Latvia),
LT
(Lithuania),
LU
(Luxembourg),
MT
(Malta),
NL
(Netherlands),
PL
(Poland),
PT
(Portugal),
RO
(Romania),
SK
(Slovakia),
SI
(Slovenia),
ES
(Spain),
SE
(Sweden).
canonical-evidence-types
BirthCertificate
MarriageCertificate
CompanyRegistration
HigherEdCertificate
SecondaryEdCertificate
DomicileRegistrationCertificate
.
output-j-s-array-id
[ { "canonicalEvidenceType": "...", "provision": {
"atuLevel": "...", "atuCode": "...", "atuLatinName":
"...", "dataOwnerID":"...",
"dataOwnerPrefLabel":"..." } }, ...]
, where code
canonicalEvidenceType
follows the
codelist from input parameter
canonical-evidence-types
and
provision
is an object retrieved from
IAL.
environment
playground
, test
and
pilot
), where default value is
test
.
output-j-s-array-id
.
The integration of MOR components is possible via
Web Components, where
custom element
de4a-mor-er
is available.
MOR component package contains the following client-side files to be included on a website at Data Evaluator:
mor-elements.css
← default styling (with
Bootstrap,
Font Awesome
and custom styles)
mor-elements-ro.css
← Romanian theme demo styling
mor-elements.js
← business logic for interaction
mor-elements-ro.zip
← compressed package containing all files
Every element of both components can be completely customized using CSS. To facilitate the customization the following elements and classes have been defined that you can modify:
de4a-mor-er
← global setings for individual component
.de4a-title
← titles
.de4a-text
← confirmation, error or warning messages
.de4a-button-evidence
← button for actions related to evidence
.de4a-button-choice-dark
← dark selection button
.de4a-button-choice-light
← light selection button
.de4a-schema-values
← schema attribute value
.de4a-schema-comment
← schema attribute descriptions
.de4a-dropdown-menu
← dropdown menu
.de4a-dropdown-item
← dropdown item
.de4a-input-radio
.de4a-input-file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>MOR ER</title>
...
<link rel="stylesheet" href="mor-elements.css" />
<link rel="stylesheet" href="mor-elements-ro.css" />
<script src="mor-elements.js"></script>
...
</head>
<body>
...
<de4a-mor-er
default-lang="ro"
requester-country-code="SI"
canonical-evidence-types="DomicileRegistrationCertificate"
output-j-s-array-id="outputJSArrayIdMorEr"
environment="test"
></de4a-mor-er>
...
</body>
</html>
outputJSArrayIdMorEr
Empty (please complete explicit request)
MOR components are build as an
Angular project
and the source code is available in MOR-app
folder.
Both components (MOR-ER and MOR-P) can be regenerated with the
following commands:
git clone git@github.com:de4a-wp3/MOR.git
← clone GitHub repository
cd MOR/MOR-app
← change directory to Angular project
npm run pack:elements
← build and packe components
The compiled package and assets files are available in folder
MOR-app/dist/elements/pack
.