summaryrefslogtreecommitdiff
path: root/server/xml/macros/pupilstoerrelse-1.0.xml
diff options
context:
space:
mode:
Diffstat (limited to 'server/xml/macros/pupilstoerrelse-1.0.xml')
-rw-r--r--server/xml/macros/pupilstoerrelse-1.0.xml23
1 files changed, 19 insertions, 4 deletions
diff --git a/server/xml/macros/pupilstoerrelse-1.0.xml b/server/xml/macros/pupilstoerrelse-1.0.xml
index 7ec4c03..c2a771a 100644
--- a/server/xml/macros/pupilstoerrelse-1.0.xml
+++ b/server/xml/macros/pupilstoerrelse-1.0.xml
@@ -12,10 +12,25 @@
'missing eye' tilføjet.
-->
<macro name="pupilstoerrelse" version="1.0">
- <resume language="pracro">Pupilstørrelse:
-Højre øje: ${pupilstoerrelse.right.diameter} mm
-Venstre øje: ${pupilstoerrelse.left.diameter} mm
-</resume>
+ <resume language="lua">
+ out = ''
+ if ( getValue('pupilstoerrelse.right.missing') == '' or getValue('pupilstoerrelse.left.missing') == '' )
+ then
+ out = out .. 'Pupilstørrelse:\n'
+ end
+
+ if ( getValue('pupilstoerrelse.right.missing') == '' )
+ then
+ out = out .. 'Højre øje: ' .. getValue('pupilstoerrelse.right.diameter') .. ' mm\n'
+ end
+
+ if ( getValue('pupilstoerrelse.left.missing') == '' )
+ then
+ out = out .. 'Venstre øje: ' .. getValue('pupilstoerrelse.left.diameter') .. ' mm\n'
+ end
+
+ return out
+ </resume>
<queries>
</queries>
<maps>