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

37 lines
761 B
Bash
Executable File

#!/usr/bin/env bash
#
# Generate a dot file to create graph of RERO-ils data
#
# Usage:
# bash gen_orgas.sh output.dot
# where `output.dot` is the output file that permit to generate a graph.
# To generate the graph:
# dot -Tsvg output.dot -o organisations.svg
# where `output.dot` is the previous file. And `organisations.svg` the final schema you want to display.
# Load commons variables, functions and statements
source commons.sh
# Graph header
title="Link between organisations, libraries and users."
save "templates/header.tmpl"
# ORGANISATIONS
source process_orgas.sh
# LIBRARIES
source process_lib.sh
# PATRON_TYPES
source process_pt.sh
# USERS
source process_users.sh
# Graph footer
save "templates/footer.tmpl"
# END of program
exit 0