Archived
1
0

by_json: add description on patron types

This commit is contained in:
Olivier DOSSMANN 2020-02-07 17:15:16 +01:00
parent d2c7cda421
commit 7a173006fc
3 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,6 @@
.[] | {
pid,
name,
description,
organisation: .organisation."$ref"
}

View File

@ -11,7 +11,10 @@ while read pt
do
pid=$(echo $pt|jq -r .pid)
name=$(echo $pt|jq -r .name)
# fix problems with '<' and '>' in descriptions
description=$(echo $pt|jq -r .description|sed -e 's/</\&#60;/g ; s/>/\&#62;/g')
orga=$(echo $pt|jq -r .organisation)
# write result in output
identifier="Type${pid}"
label="$(render templates/label_patron_types.tmpl)"

View File

@ -1 +1,2 @@
<${name}<br/>PID: ${pid}>
<${name}<br/>${description}<br/>
PID: ${pid}>