by_json: add description on patron types
This commit is contained in:
parent
d2c7cda421
commit
7a173006fc
@ -1,5 +1,6 @@
|
|||||||
.[] | {
|
.[] | {
|
||||||
pid,
|
pid,
|
||||||
name,
|
name,
|
||||||
|
description,
|
||||||
organisation: .organisation."$ref"
|
organisation: .organisation."$ref"
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,10 @@ while read pt
|
|||||||
do
|
do
|
||||||
pid=$(echo $pt|jq -r .pid)
|
pid=$(echo $pt|jq -r .pid)
|
||||||
name=$(echo $pt|jq -r .name)
|
name=$(echo $pt|jq -r .name)
|
||||||
|
# fix problems with '<' and '>' in descriptions
|
||||||
|
description=$(echo $pt|jq -r .description|sed -e 's/</\</g ; s/>/\>/g')
|
||||||
orga=$(echo $pt|jq -r .organisation)
|
orga=$(echo $pt|jq -r .organisation)
|
||||||
|
|
||||||
# write result in output
|
# write result in output
|
||||||
identifier="Type${pid}"
|
identifier="Type${pid}"
|
||||||
label="$(render templates/label_patron_types.tmpl)"
|
label="$(render templates/label_patron_types.tmpl)"
|
||||||
|
@ -1 +1,2 @@
|
|||||||
<${name}<br/>PID: ${pid}>
|
<${name}<br/>${description}<br/>
|
||||||
|
PID: ${pid}>
|
||||||
|
Reference in New Issue
Block a user