Skip to content
Snippets Groups Projects
Commit 0649a76f authored by Dalmon Ian Martins de Oliveira's avatar Dalmon Ian Martins de Oliveira
Browse files

Adiciona função auxiliar de tratamento do arquivo de metadados

parent edfd6815
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,16 @@ createreq() { ...@@ -22,6 +22,16 @@ createreq() {
-d "$json" -d "$json"
} }
mapmetadata() {
sed -re 's/collection.collection.collection/dc\.category/' \
-e '/(description)[[:digit:]]/d' \
-e 's/rightsholder/rights\.holder/' \
-e "s/'//g" \
-e 's/"//g' \
-e 's/category2/category/' "$1"/metadados.txt |\
grep -e '^dc\.'
}
[ $# -ne 3 ] && echo "Uso: $0 <src dir> <base dir> <collection id>" [ $# -ne 3 ] && echo "Uso: $0 <src dir> <base dir> <collection id>"
readonly srcdir="$1" readonly srcdir="$1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment