by_json: add description on patron types
This commit is contained in:
parent
d2c7cda421
commit
7a173006fc
@ -1,5 +1,6 @@
|
||||
.[] | {
|
||||
pid,
|
||||
name,
|
||||
description,
|
||||
organisation: .organisation."$ref"
|
||||
}
|
||||
|
@ -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/</\</g ; s/>/\>/g')
|
||||
orga=$(echo $pt|jq -r .organisation)
|
||||
|
||||
# write result in output
|
||||
identifier="Type${pid}"
|
||||
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