From c06587f2a905cbb23388fca5a6c1e6a3540ea057 Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 23 Sep 2009 07:25:49 +0000 Subject: split visus macros out into 4 different macros --- server/xml/macros/visus-autoref-1.0.xml | 513 +++++++++++++++++++++++++++ server/xml/macros/visus-egen_korr-1.0.xml | 513 +++++++++++++++++++++++++++ server/xml/macros/visus-optimal_korr-1.0.xml | 192 +++++----- server/xml/macros/visus-uden_korr-1.0.xml | 40 +-- 4 files changed, 1152 insertions(+), 106 deletions(-) create mode 100644 server/xml/macros/visus-autoref-1.0.xml create mode 100644 server/xml/macros/visus-egen_korr-1.0.xml (limited to 'server/xml') diff --git a/server/xml/macros/visus-autoref-1.0.xml b/server/xml/macros/visus-autoref-1.0.xml new file mode 100644 index 0000000..7949497 --- /dev/null +++ b/server/xml/macros/visus-autoref-1.0.xml @@ -0,0 +1,513 @@ + + + + out = '' + if ( getValue('visus.autoref.missing.right') == '' ) + then + out = out .. 'Visus, højre øje:\n' + out = out .. 'Snellen: ' .. getValue('visus.autoref.snellen.right') .. '\n' + out = out .. 'ETDRS: ' .. getValue('visus.autoref.etdrs.right') .. '\n' + out = out .. 'Korr.: ' + .. getValue('visus.autoref.korr.sf.right') .. ' sf, ' + .. getValue('visus.autoref.korr.cyl.right') .. ' sph ' + .. getValue('visus.autoref.korr.grader.right') .. ' grader.\n' + end + + if ( getValue('visus.autoref.missing.left') == '' ) + then + out = out .. 'Visus, venstre øje:\n' + out = out .. 'Snellen: ' .. getValue('visus.autoref.snellen.left') .. '\n' + out = out .. 'ETDRS: ' .. getValue('visus.autoref.etdrs.left') .. '\n' + out = out .. 'Korr.: ' + .. getValue('visus.autoref.korr.sf.left') .. ' sf, ' + .. getValue('visus.autoref.korr.cyl.left') .. ' sph ' + .. getValue('visus.autoref.korr.grader.left') .. ' grader.\n' + end + + return out + + + + + + + + value = 0 + timestamp = 0 + source = '' + + if( missing_eye_right ) + then + if( missing_eye_right.value and missing_eye_right.value == '' ) + then + value = '' + timestamp = missing_eye_right.timestamp + source = missing_eye_right.source + else + value = 'mangler' + timestamp = missing_eye_right.timestamp + source = missing_eye_right.source + end + end + return value, timestamp, source + + + value = 0 + timestamp = 0 + source = '' + + if( missing_eye_left ) + then + if( missing_eye_left.value and missing_eye_left.value == '' ) + then + value = '' + timestamp = missing_eye_left.timestamp + source = missing_eye_left.source + else + value = 'mangler' + timestamp = missing_eye_left.timestamp + source = missing_eye_left.source + end + end + return value, timestamp, source + + + + + + + + + + + + + + + + + + + + + +