Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
histhub
fundmuenzen
Commits
4302fb3a
Commit
4302fb3a
authored
Oct 31, 2019
by
Tobinsk
Browse files
Merge branch '1-wrong-links' into 'master'
Resolve "Wrong links" Closes
#1
See merge request
!3
parents
095d2eea
b5de85b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/index.ts
View file @
4302fb3a
...
...
@@ -34,7 +34,7 @@ class Fundmuenzen extends CsvReadable {
return
{
id
:
records
[
7
].
toString
(),
provider
:
'
fundmuenzen
'
,
url
:
`https://www.muenzfunde.ch/id/country/ch/municipality/
${
records
[
7
].
toString
()}
/
`
,
url
:
`https://www.muenzfunde.ch/id/country/ch/municipality/
${
records
[
7
].
toString
()}
`
,
name
:
records
[
0
].
toString
(),
alternative_name
:
records
[
1
].
toString
()
+
'
'
+
records
[
2
].
toString
()
+
'
'
+
records
[
3
].
toString
()
+
'
'
+
records
[
4
].
toString
(),
...
...
@@ -47,7 +47,7 @@ class Fundmuenzen extends CsvReadable {
public
transformLinks
(
records
:
any
):
InterfaceConcordance
|
null
{
const
urls
=
[];
const
from
=
`https://www.muenzfunde.ch/id/country/ch/municipality/
${
records
[
7
].
toString
()}
/
`
;
const
from
=
`https://www.muenzfunde.ch/id/country/ch/municipality/
${
records
[
7
].
toString
()}
`
;
// transform the identifiers to links
urls
.
push
(
this
.
core
.
getUriBuilder
().
urlResolver
(
'
fundmuenzen
'
,
`
${
records
[
7
]}
`
));
urls
.
push
(
this
.
core
.
getUriBuilder
().
urlResolver
(
'
dodis
'
,
`
${
records
[
10
]}
`
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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