Skip to content

Commit d011fe8

Browse files
committed
Revert "fix: improve jq conversion logic and update dependencies"
This reverts commit 659c8ec.
1 parent e9787af commit d011fe8

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

middleware/scripts/publiso_conversor.jq

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"@id":
77
(if has("doi")
88
then "https://doi.org/" + .doi
9-
elif has("@id")
10-
then "https://repository.publisso.de/resource/" + .["@id"]
11-
else null
9+
else "https://repository.publisso.de/resource/" + .["@id"]
1210
end),
1311
"name": (if has("title") then (.title[]) else null end),
1412
"alternativeHeadline": (if has("alternative") then .alternative[0] else null end),
@@ -22,14 +20,12 @@
2220
"url": ("https://doi.org/" + .doi)
2321
}
2422
else empty end),
25-
(if has("@id") then
26-
{
27-
"@type": "PropertyValue",
28-
"propertyID": "frl-internal",
29-
"value": .["@id"],
30-
"url": ("https://repository.publisso.de/resource/" + .["@id"])
31-
}
32-
else empty end)
23+
{
24+
"@type": "PropertyValue",
25+
"propertyID": "frl-internal",
26+
"value": .["@id"],
27+
"url": ("https://repository.publisso.de/resource/" + .["@id"])
28+
}
3329
]),
3430

3531
"creator":

0 commit comments

Comments
 (0)