From ce08ba4689b54f8e27a5418f490d9c87fe71cc78 Mon Sep 17 00:00:00 2001 From: senator Date: Tue, 17 Nov 2009 10:43:45 +0000 Subject: moved all .osin. instances from any instance containing it to the end of the instance. I have checked to find errors but NOT very thoroughly. The XML files might contain errors, but i will correct these, if any, when i encounter them later on --- server/xml/macros/visus-1.0.xml | 82 ++++++++++++++++++++--------------------- 1 file changed, 41 insertions(+), 41 deletions(-) (limited to 'server/xml/macros/visus-1.0.xml') diff --git a/server/xml/macros/visus-1.0.xml b/server/xml/macros/visus-1.0.xml index 4aad946..9319005 100644 --- a/server/xml/macros/visus-1.0.xml +++ b/server/xml/macros/visus-1.0.xml @@ -18,83 +18,83 @@ out = '' - if ( getValue('snellen.odxt.missing') == '' or getValue('snellen.osin.missing') == '' ) + if ( getValue('snellen.mangler.odxt') == '' or getValue('snellen.mangler.osin') == '' ) then out = out .. 'Objektivt:\n' - if ( getValue('snellen.odxt.missing') == '' ) + if ( getValue('snellen.mangler.odxt') == '' ) then out = out .. 'Visus o.dxt. ' .. getValue('snellen.odxt') .. '\n' out = out .. 'ETDRS o.dxt. ' .. getValue('etdrs.odxt') .. '\n' - if ( getValue('snellen.odxt.korr.basis') ~= 'Ingen' ) + if ( getValue('snellen.korr.basis.odxt') ~= 'Ingen' ) then - out = out .. 'Korr.: ' .. getValue('snellen.odxt.korr.basis') .. ' add ' + out = out .. 'Korr.: ' .. getValue('snellen.korr.basis.odxt') .. ' add ' else out = out .. 'Korr.: add ' end - out = out .. getValue('snellen.odxt.korr.sf') .. ' sf, ' - .. getValue('snellen.odxt.korr.cyl') .. '.sf ' - .. getValue('snellen.odxt.korr.grader') .. ' grader.\n' + out = out .. getValue('snellen.korr.sf.odxt') .. ' sf, ' + .. getValue('snellen.korr.cyl.odxt') .. '.sf ' + .. getValue('snellen.korr.grader.odxt') .. ' grader.\n' end - if ( getValue('snellen.osin.missing') == '' ) + if ( getValue('snellen.mangler.osin') == '' ) then out = out .. 'Visus o.sin. ' .. getValue('snellen.osin') .. '\n' out = out .. 'ETDRS o.sin. ' .. getValue('etdrs.osin') .. '\n' - if ( getValue('snellen.osin.korr.basis') ~= 'Ingen' ) + if ( getValue('snellen.korr.basis.osin') ~= 'Ingen' ) then - out = out .. 'Korr.: ' .. getValue('snellen.osin.korr.basis') .. ' add ' + out = out .. 'Korr.: ' .. getValue('snellen.korr.basis.osin') .. ' add ' else out = out .. 'Korr.: add ' end - out = out .. getValue('snellen.osin.korr.sf') .. ' sf, ' - .. getValue('snellen.osin.korr.cyl') .. '.sf ' - .. getValue('snellen.osin.korr.grader') .. ' grader.\n' + out = out .. getValue('snellen.korr.sf.osin') .. ' sf, ' + .. getValue('snellen.korr.cyl.osin') .. '.sf ' + .. getValue('snellen.korr.grader.osin') .. ' grader.\n' end end return out - - + + - + value = 0 timestamp = 0 source = '' - if( missing_eye_right ) + if( missing_eye_odxt ) then - if( missing_eye_right.value and missing_eye_right.value == '' ) + if( missing_eye_odxt.value and missing_eye_odxt.value == '' ) then value = '' - timestamp = missing_eye_right.timestamp - source = missing_eye_right.source + timestamp = missing_eye_odxt.timestamp + source = missing_eye_odxt.source else value = 'mangler' - timestamp = missing_eye_right.timestamp - source = missing_eye_right.source + timestamp = missing_eye_odxt.timestamp + source = missing_eye_odxt.source end end return value, timestamp, source - + value = 0 timestamp = 0 source = '' - if( missing_eye_left ) + if( missing_eye_osin ) then - if( missing_eye_left.value and missing_eye_left.value == '' ) + if( missing_eye_osin.value and missing_eye_osin.value == '' ) then value = '' - timestamp = missing_eye_left.timestamp - source = missing_eye_left.source + timestamp = missing_eye_osin.timestamp + source = missing_eye_osin.source else value = 'mangler' - timestamp = missing_eye_left.timestamp - source = missing_eye_left.source + timestamp = missing_eye_osin.timestamp + source = missing_eye_osin.source end end return value, timestamp, source @@ -177,8 +177,8 @@ @@ -337,7 +337,7 @@