Skip to content

Commit

Permalink
creating specific xslt shell file for software and the datacite schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazztok45 committed Feb 12, 2024
1 parent dd2958e commit f34ed07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xslt/software/xslt-software-datacite.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
AUTH=$(echo -n "$OAI_BASIC_USER:$OAI_BASIC_PASSWORD" | base64)
XSLT_RADAR_DATACITE='cat xslt-article-transformation.xslt | jq -Rsa . '
VAR_XSLT_RADAR_DATACITE=$(eval "$XSLT_RADAR_DATACITE")

curl --noproxy '*' -X POST -H 'Content-Type: application/json' -i 'https://oai-input.portal.mardi4nfdi.de/oai-backend/crosswalk' --header "Authorization: Basic $AUTH" --data '{"name":"rest2preview","formatFrom":"zbmath_rest_api","formatTo":"oai_zb_preview","xsltStylesheet":'"$VAR_XSLT_RADAR_DATACITE}"'}'

0 comments on commit f34ed07

Please sign in to comment.