From 730eb796bbce6f124be9194f1565b7dda1daddf1 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 1 Jun 2010 13:02:23 +0000 Subject: Afdj macros/templates are now located in their own repo. --- server/xml/macros/visus-autoref-1.0.xml | 626 -------------------------------- 1 file changed, 626 deletions(-) delete mode 100644 server/xml/macros/visus-autoref-1.0.xml (limited to 'server/xml/macros/visus-autoref-1.0.xml') diff --git a/server/xml/macros/visus-autoref-1.0.xml b/server/xml/macros/visus-autoref-1.0.xml deleted file mode 100644 index 439e5b0..0000000 --- a/server/xml/macros/visus-autoref-1.0.xml +++ /dev/null @@ -1,626 +0,0 @@ - - - - - function lttoxml(value) - return string.gsub(value, '<', '&lt;') - end - - out = '' - if ( getValue('visus.autoref.mangler.odxt') == '' ) - then - out = out .. 'Visus, autoref, o.dxt' - if ( getValue('visus.autoref.kontrast.odxt') ~= '' ) - then - out = out .. ', ' .. getValue('visus.autoref.kontrast.odxt') .. ' kontrast' - end - if ( getValue('visus.autoref.st_hul.odxt') ~= '' ) - then - out = out .. ', ' .. getValue('visus.autoref.st_hul.odxt') - end - out = out .. ':\n' - if ( getValue('visus.autoref.snellen.odxt') ~= '' ) - then - out = out .. 'Snellen: ' .. lttoxml(getValue('visus.autoref.snellen.odxt')) .. '\n' - end - if ( getValue('visus.autoref.etdrs.odxt') ~= '' ) - then - out = out .. 'ETDRS: ' .. getValue('visus.autoref.etdrs.odxt') .. '\n' - end - out = out .. 'Korr.: ' .. getValue('visus.autoref.korr.sf.odxt') .. ' sf' - if ( getValue('visus.autoref.korr.cyl.odxt') ~= '' ) - then - out = out .. ', ' .. getValue('visus.autoref.korr.cyl.odxt') .. ' cyl' - end - if ( getValue('visus.autoref.korr.grader.odxt') ~= '' ) - then - out = out .. ', ' .. getValue('visus.autoref.korr.grader.odxt') .. ' grader' - end - out = out .. '\n' - - if ( getValue('visus.autoref.mangler.osin') == '' ) - then - out = out .. '\n' - end - end - - if ( getValue('visus.autoref.mangler.osin') == '' ) - then - out = out .. 'Visus, autoref, o.sin' - if ( getValue('visus.autoref.kontrast.osin') ~= '' ) - then - out = out .. ', ' .. getValue('visus.autoref.kontrast.osin') .. ' kontrast' - end - if ( getValue('visus.autoref.st_hul.osin') ~= '' ) - then - out = out .. ', ' .. getValue('visus.autoref.st_hul.osin') - end - out = out .. ':\n' - if ( getValue('visus.autoref.snellen.osin') ~= '' ) - then - out = out .. 'Snellen: ' .. lttoxml(getValue('visus.autoref.snellen.osin')) .. '\n' - end - if ( getValue('visus.autoref.etdrs.osin') ~= '' ) - then - out = out .. 'ETDRS: ' .. getValue('visus.autoref.etdrs.osin') .. '\n' - end - out = out .. 'Korr.: ' .. getValue('visus.autoref.korr.sf.osin') .. ' sf' - if ( getValue('visus.autoref.korr.cyl.osin') ~= '' ) - then - out = out .. ', ' .. getValue('visus.autoref.korr.cyl.osin') .. ' cyl' - end - if ( getValue('visus.autoref.korr.grader.osin') ~= '' ) - then - out = out .. ', ' .. getValue('visus.autoref.korr.grader.osin') .. ' grader' - end - out = out .. '\n' - - if ( getValue('visus.autoref.mangler.osin') == '' ) - then - out = out .. '\n' - end - end - - return out - - - - - - - - value = 0 - timestamp = 0 - source = '' - - if( missing_eye_odxt ) - then - if( missing_eye_odxt.value and missing_eye_odxt.value == '' ) - then - value = '' - timestamp = missing_eye_odxt.timestamp - source = missing_eye_odxt.source - else - value = 'mangler' - timestamp = missing_eye_odxt.timestamp - source = missing_eye_odxt.source - end - end - return value, timestamp, source - - - value = 0 - timestamp = 0 - source = '' - - if( missing_eye_osin ) - then - if( missing_eye_osin.value and missing_eye_osin.value == '' ) - then - value = '' - timestamp = missing_eye_osin.timestamp - source = missing_eye_osin.source - else - value = 'mangler' - timestamp = missing_eye_osin.timestamp - source = missing_eye_osin.source - end - end - return value, timestamp, source - - - - - - - - - - - - - - - - - - - - - - -