Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
🚀
This server has been upgraded to GitLab release
15.7
.
🚀
Open sidebar
memoriav
Memobase 2020
utilities
Import Process CLI
Commits
ed39e0af
Commit
ed39e0af
authored
Apr 09, 2021
by
Jonas Waeber
Browse files
Fix run
parent
20c2835e
Changes
4
Hide whitespace changes
Inline
Side-by-side
deployment/api/run.py
View file @
ed39e0af
...
...
@@ -8,8 +8,8 @@ class WorkflowRunner:
self
.
api_endpoint
=
api_endpoint
self
.
institution_id
=
kwargs
[
'institutionId'
]
self
.
record_set_id
=
kwargs
[
'recordSetId'
]
self
.
xml_identifier_field_name
=
kwargs
[
'identifierFieldName'
]
self
.
xml_record_tag
=
kwargs
[
'recordTag'
]
self
.
xml_identifier_field_name
=
kwargs
[
'identifierFieldName'
]
if
'identifierFieldName'
in
kwargs
else
'none'
self
.
xml_record_tag
=
kwargs
[
'recordTag'
]
if
'recordTag'
in
kwargs
else
'none'
self
.
table_sheet_index
=
kwargs
[
'tableSheetIndex'
]
if
'tableSheetIndex'
in
kwargs
else
1
self
.
table_header_count
=
kwargs
[
'tableHeaderCount'
]
if
'tableHeaderCount'
in
kwargs
else
1
self
.
table_header_index
=
kwargs
[
'tableHeaderIndex'
]
if
'tableHeaderIndex'
in
kwargs
else
1
...
...
@@ -27,7 +27,7 @@ class WorkflowRunner:
'institutionId'
:
self
.
institution_id
,
'xmlIdentifierFieldName'
:
self
.
xml_identifier_field_name
,
'xmlRecordTag'
:
self
.
xml_record_tag
,
'isPublished'
:
Fals
e
,
'isPublished'
:
Tru
e
,
'tableSheetIndex'
:
self
.
table_sheet_index
,
'tableHeaderCount'
:
self
.
table_header_count
,
'tableHeaderIndex'
:
self
.
table_header_index
,
...
...
deployment/configurations/deploy-specific-configurations.sh
View file @
ed39e0af
#!/usr/bin/env bash
for
d
in
s
rf-001 srf-020 swi
-001
;
for
d
in
s
ag
-001
;
do
scp
$d
/mappings/localTransforms.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/
$d
/config/localTransforms.yml
;
scp
$d
/mappings/mapping.yml root@mb-wf2.memobase.unibas.ch:/swissbib_index/mb_sftp/
$d
/config/mapping.yml
;
...
...
deployment/configurations/sag-001/mappings/localTransforms.yml
0 → 100644
View file @
ed39e0af
deployment/configurations/sag-001/mappings/transform.xslt
0 → 100644
View file @
ed39e0af
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment