From 1392529a3e694f938e42a4c298ef8facdd7ed4c0 Mon Sep 17 00:00:00 2001 From: "Moritz Schubotz (physikerwelt)" Date: Tue, 6 Feb 2024 14:50:11 +0100 Subject: [PATCH] Add non working example of format creation --- formats/createFormats.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 formats/createFormats.sh diff --git a/formats/createFormats.sh b/formats/createFormats.sh new file mode 100755 index 0000000..cb11a32 --- /dev/null +++ b/formats/createFormats.sh @@ -0,0 +1,4 @@ +#Create OAI_DC Format +AUTH=$(echo -ne "$OAI_BASIC_USER:$OAI_BASIC_PASSWORD" | base64) +printf "\n\nCreate Format oai_dc\n\n" +curl --noproxy '*' -X POST -H 'Content-Type: application/json' -H "Authorization: Basic $AUTH" -i 'https://oai-input.portal.mardi4nfdi.de/oai-backend/format' --data '{"metadataPrefix":"oai_dc","schemaLocation":"http://www.openarchives.org/OAI/2.0/oai_dc.xsd","schemaNamespace":"http://www.openarchives.org/OAI/2.0/oai_dc/","identifierXpath":"/identifier"}'