Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFDS-register-front
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EOSC-Pillar
FFDS
FFDS-register-front
Commits
17bd43cc
Commit
17bd43cc
authored
3 years ago
by
Baptiste Toulemonde
Browse files
Options
Downloads
Patches
Plain Diff
fix import
parent
f7de058b
No related branches found
No related tags found
2 merge requests
!22
Fix/bug from uc6
,
!21
Fix/bug from uc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/mapping/class/dataset.ts
+1
-1
1 addition, 1 deletion
src/app/mapping/class/dataset.ts
src/app/mapping/mapping.component.ts
+8
-4
8 additions, 4 deletions
src/app/mapping/mapping.component.ts
with
9 additions
and
5 deletions
src/app/mapping/class/dataset.ts
+
1
−
1
View file @
17bd43cc
...
...
@@ -11,7 +11,7 @@ export class Dataset {
}
export
class
DatasetPath
{
public
dcatProperty
:
Dataset
;
public
dcatProperty
:
Dataset
|
string
;
public
path
:
string
constructor
(
dcatProperty
:
Dataset
,
path
:
string
)
{
...
...
This diff is collapsed.
Click to expand it.
src/app/mapping/mapping.component.ts
+
8
−
4
View file @
17bd43cc
...
...
@@ -339,10 +339,14 @@ export class MappingComponent implements OnInit {
let
datasetPath
:
DatasetPath
[]
=
[];
reader
.
onloadend
=
()
=>
{
datasetPath
=
<
DatasetPath
[]
>
JSON
.
parse
(
reader
.
result
as
string
);
datasetPath
.
forEach
(
e
=>
{
this
.
selectedPaths
[
datasetPath
.
indexOf
(
e
)]
=
e
.
path
;
this
.
dcatVocabulary
[
datasetPath
.
indexOf
(
e
)]
=
e
.
dcatProperty
;
});
for
(
let
i
=
0
;
i
<
datasetPath
.
length
;
i
++
)
{
this
.
selectedPaths
[
i
]
=
datasetPath
[
i
].
path
;
if
(
typeof
datasetPath
[
i
].
dcatProperty
===
'
string
'
)
{
this
.
dcatVocabulary
[
i
]
=
new
Dataset
(
''
,
<
string
>
datasetPath
[
i
].
dcatProperty
,
''
);
}
else
{
this
.
dcatVocabulary
[
i
]
=
<
Dataset
>
datasetPath
[
i
].
dcatProperty
;
}
}
}
reader
.
readAsText
(
jsonFile
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment