Archived
1
0
This repository has been archived on 2020-03-05. You can view files and clone it, but cannot push or open issues or pull requests.
rero-ils-graphs/by_json/process_orgas.sh

20 lines
419 B
Bash

# DEPENDS ON: None
# Colors
ORGA_COLOR="${COLOR1}" # organisations
# Main configuration
shape="box"
color="${ORGA_COLOR}"
while read -r orga
do
# take important info
pid=$(echo $orga|jq -r .pid)
code=$(echo $orga|jq -r .code)
name=$(echo $orga|jq -r .name)
# write result in output
identifier="Orga${pid}"
label="$(render ${tmpl_label})"
save "${tmpl_gizmo}"
done <<< $(parse_json "organisations")