summaryrefslogtreecommitdiff
path: root/server/xml/macros/visus-template-1.0.xml
diff options
context:
space:
mode:
Diffstat (limited to 'server/xml/macros/visus-template-1.0.xml')
-rw-r--r--server/xml/macros/visus-template-1.0.xml206
1 files changed, 103 insertions, 103 deletions
diff --git a/server/xml/macros/visus-template-1.0.xml b/server/xml/macros/visus-template-1.0.xml
index 7818e5a..9e6794a 100644
--- a/server/xml/macros/visus-template-1.0.xml
+++ b/server/xml/macros/visus-template-1.0.xml
@@ -11,64 +11,64 @@
-->
<resume language="lua">
out = ''
- if ( getValue('visus.template.missing.right') == '' or getValue('visus.template.missing.left') == '' or getValue('visus.template.ou') ~= '' )
+ if ( getValue('visus.template.missing.odxt') == '' or getValue('visus.template.missing.osin') == '' or getValue('visus.template.ou') ~= '' )
then
out = out .. 'Visus template:\n'
end
- if ( getValue('visus.template.missing.right') == '' )
+ if ( getValue('visus.template.missing.odxt') == '' )
then
out = out .. 'o.dxt: '
- if ( getValue('visus.template.snellen.right') ~= '' )
+ if ( getValue('visus.template.snellen.odxt') ~= '' )
then
- out = out .. getValue('visus.template.snellen.right')
- if ( getValue('visus.template.etdrs.right') == '' )
+ out = out .. getValue('visus.template.snellen.odxt')
+ if ( getValue('visus.template.etdrs.odxt') == '' )
then
out = out .. ', '
end
end
- if ( getValue('visus.template.etdrs.right') ~= '' )
+ if ( getValue('visus.template.etdrs.odxt') ~= '' )
then
- if ( getValue('visus.template.snellen.right') ~= '' )
+ if ( getValue('visus.template.snellen.odxt') ~= '' )
then
out = out .. ', '
end
- out = out .. getValue('visus.template.etdrs.right') .. ' ETDRS, '
+ out = out .. getValue('visus.template.etdrs.odxt') .. ' ETDRS, '
end
- if ( getValue('visus.template.kontrast.right') ~= '' )
+ if ( getValue('visus.template.kontrast.odxt') ~= '' )
then
- out = out .. getValue('visus.template.kontrast.right') .. ' kontrast, '
+ out = out .. getValue('visus.template.kontrast.odxt') .. ' kontrast, '
end
- out = out .. 'cc ' .. getValue('visus.template.korr.sf.right') .. ' sf'
- if ( getValue('visus.template.korr.cyl.right') ~= '' )
+ out = out .. 'cc ' .. getValue('visus.template.korr.sf.odxt') .. ' sf'
+ if ( getValue('visus.template.korr.cyl.odxt') ~= '' )
then
- out = out .. ', ' .. getValue('visus.template.korr.cyl.right') .. ' cyl'
+ out = out .. ', ' .. getValue('visus.template.korr.cyl.odxt') .. ' cyl'
end
- if ( getValue('visus.template.korr.grader.right') ~= '' )
+ if ( getValue('visus.template.korr.grader.odxt') ~= '' )
then
- out = out .. ', ' .. getValue('visus.template.korr.grader.right') .. ' grader'
+ out = out .. ', ' .. getValue('visus.template.korr.grader.odxt') .. ' grader'
end
- out = out .. ', add ' .. getValue('visus.template.add.sf.right') .. ' sf'
- if ( getValue('visus.template.add.cyl.right') ~= '' )
+ out = out .. ', add ' .. getValue('visus.template.add.sf.odxt') .. ' sf'
+ if ( getValue('visus.template.add.cyl.odxt') ~= '' )
then
- out = out .. ', ' .. getValue('visus.template.add.cyl.right') .. ' cyl'
+ out = out .. ', ' .. getValue('visus.template.add.cyl.odxt') .. ' cyl'
end
- if ( getValue('visus.template.add.grader.right') ~= '' )
+ if ( getValue('visus.template.add.grader.odxt') ~= '' )
then
- out = out .. ', ' .. getValue('visus.template.add.grader.right') .. ' grader'
+ out = out .. ', ' .. getValue('visus.template.add.grader.odxt') .. ' grader'
end
- if ( getValue('visus.template.st_hul.right') ~= '' )
+ if ( getValue('visus.template.st_hul.odxt') ~= '' )
then
- if ( getValue('visus.template.st_hul.snellen.right') ~= '' )
+ if ( getValue('visus.template.st_hul.snellen.odxt') ~= '' )
then
- out = out .. ', ' .. getValue('visus.template.st_hul.snellen.right')
+ out = out .. ', ' .. getValue('visus.template.st_hul.snellen.odxt')
end
- if ( getValue('visus.template.st_hul.etdrs.right') ~= '' )
+ if ( getValue('visus.template.st_hul.etdrs.odxt') ~= '' )
then
- out = out .. ', ' .. getValue('visus.template.st_hul.etdrs.right') .. ' ETDRS'
+ out = out .. ', ' .. getValue('visus.template.st_hul.etdrs.odxt') .. ' ETDRS'
end
out = out .. ' st.h.'
end
@@ -79,59 +79,59 @@
- if ( getValue('visus.template.missing.left') == '' )
+ if ( getValue('visus.template.missing.osin') == '' )
then
out = out .. 'o.sin: '
- if ( getValue('visus.template.snellen.left') ~= '' )
+ if ( getValue('visus.template.snellen.osin') ~= '' )
then
- out = out .. getValue('visus.template.snellen.left')
- if ( getValue('visus.template.etdrs.left') == '' )
+ out = out .. getValue('visus.template.snellen.osin')
+ if ( getValue('visus.template.etdrs.osin') == '' )
then
out = out .. ', '
end
end
- if ( getValue('visus.template.etdrs.left') ~= '' )
+ if ( getValue('visus.template.etdrs.osin') ~= '' )
then
- if ( getValue('visus.template.snellen.left') ~= '' )
+ if ( getValue('visus.template.snellen.osin') ~= '' )
then
out = out .. ', '
end
- out = out .. getValue('visus.template.etdrs.left') .. ' ETDRS, '
+ out = out .. getValue('visus.template.etdrs.osin') .. ' ETDRS, '
end
- if ( getValue('visus.template.kontrast.left') ~= '' )
+ if ( getValue('visus.template.kontrast.osin') ~= '' )
then
- out = out .. getValue('visus.template.kontrast.left') .. ' kontrast, '
+ out = out .. getValue('visus.template.kontrast.osin') .. ' kontrast, '
end
- out = out .. 'cc ' .. getValue('visus.template.korr.sf.left') .. ' sf'
- if ( getValue('visus.template.korr.cyl.left') ~= '' )
+ out = out .. 'cc ' .. getValue('visus.template.korr.sf.osin') .. ' sf'
+ if ( getValue('visus.template.korr.cyl.osin') ~= '' )
then
- out = out .. ', ' .. getValue('visus.template.korr.cyl.left') .. ' cyl'
+ out = out .. ', ' .. getValue('visus.template.korr.cyl.osin') .. ' cyl'
end
- if ( getValue('visus.template.korr.grader.left') ~= '' )
+ if ( getValue('visus.template.korr.grader.osin') ~= '' )
then
- out = out .. ', ' .. getValue('visus.template.korr.grader.left') .. ' grader'
+ out = out .. ', ' .. getValue('visus.template.korr.grader.osin') .. ' grader'
end
- out = out .. ', add ' .. getValue('visus.template.add.sf.left') .. ' sf'
- if ( getValue('visus.template.add.cyl.left') ~= '' )
+ out = out .. ', add ' .. getValue('visus.template.add.sf.osin') .. ' sf'
+ if ( getValue('visus.template.add.cyl.osin') ~= '' )
then
- out = out .. ', ' .. getValue('visus.template.add.cyl.left') .. ' cyl'
+ out = out .. ', ' .. getValue('visus.template.add.cyl.osin') .. ' cyl'
end
- if ( getValue('visus.template.add.grader.left') ~= '' )
+ if ( getValue('visus.template.add.grader.osin') ~= '' )
then
- out = out .. ', ' .. getValue('visus.template.add.grader.left') .. ' grader'
+ out = out .. ', ' .. getValue('visus.template.add.grader.osin') .. ' grader'
end
- if ( getValue('visus.template.st_hul.left') ~= '' )
+ if ( getValue('visus.template.st_hul.osin') ~= '' )
then
- if ( getValue('visus.template.st_hul.snellen.left') ~= '' )
+ if ( getValue('visus.template.st_hul.snellen.osin') ~= '' )
then
- out = out .. ', ' .. getValue('visus.template.st_hul.snellen.left')
+ out = out .. ', ' .. getValue('visus.template.st_hul.snellen.osin')
end
- if ( getValue('visus.template.st_hul.etdrs.left') ~= '' )
+ if ( getValue('visus.template.st_hul.etdrs.osin') ~= '' )
then
- out = out .. ', ' .. getValue('visus.template.st_hul.etdrs.left') .. ' ETDRS'
+ out = out .. ', ' .. getValue('visus.template.st_hul.etdrs.osin') .. ' ETDRS'
end
out = out .. ' st.h.\n'
end
@@ -255,80 +255,80 @@
return false
end
</script>
- <script language="lua" name="snellen.right">
+ <script language="lua" name="snellen.odxt">
if (value == '')
then
- if ( getValue('visus.template.etdrs.right') == '' )
+ if ( getValue('visus.template.etdrs.odxt') == '' )
then
return false
end
end
return true
</script>
- <script language="lua" name="snellen.left">
+ <script language="lua" name="snellen.osin">
if (value == '')
then
- if ( getValue('visus.template.etdrs.left') == '' )
+ if ( getValue('visus.template.etdrs.osin') == '' )
then
return false
end
end
return true
</script>
- <script language="lua" name="etdrs.right">
+ <script language="lua" name="etdrs.odxt">
if (value == '')
then
- if ( getValue('visus.template.snellen.right') == '' )
+ if ( getValue('visus.template.snellen.odxt') == '' )
then
return false
end
end
return true
</script>
- <script language="lua" name="etdrs.left">
+ <script language="lua" name="etdrs.osin">
if (value == '')
then
- if ( getValue('visus.template.snellen.left') == '' )
+ if ( getValue('visus.template.snellen.osin') == '' )
then
return false
end
end
return true
</script>
- <script language="lua" name="st_hul.snellen.right">
+ <script language="lua" name="st_hul.snellen.odxt">
if (value == '')
then
- if ( getValue('visus.template.st_hul.etdrs.right') == '' )
+ if ( getValue('visus.template.st_hul.etdrs.odxt') == '' )
then
return false
end
end
return true
</script>
- <script language="lua" name="st_hul.snellen.left">
+ <script language="lua" name="st_hul.snellen.osin">
if (value == '')
then
- if ( getValue('visus.template.st_hul.etdrs.left') == '' )
+ if ( getValue('visus.template.st_hul.etdrs.osin') == '' )
then
return false
end
end
return true
</script>
- <script language="lua" name="st_hul.etdrs.right">
+ <script language="lua" name="st_hul.etdrs.odxt">
if (value == '')
then
- if ( getValue('visus.template.st_hul.snellen.right') == '' )
+ if ( getValue('visus.template.st_hul.snellen.odxt') == '' )
then
return false
end
end
return true
</script>
- <script language="lua" name="st_hul.etdrs.left">
+ <script language="lua" name="st_hul.etdrs.osin">
if (value == '')
then
- if ( getValue('visus.template.st_hul.snellen.left') == '' )
+ if ( getValue('visus.template.st_hul.snellen.osin') == '' )
then
return false
end
@@ -355,21 +355,21 @@
end
return true
</script>
- <script language="lua" name="st_hul_check.right">
+ <script language="lua" name="st_hul_check.odxt">
if (value == '')
then
- disable('st_hul_frame.right')
+ disable('st_hul_frame.odxt')
else
- enable('st_hul_frame.right')
+ enable('st_hul_frame.odxt')
end
return true
</script>
- <script language="lua" name="st_hul_check.left">
+ <script language="lua" name="st_hul_check.osin">
if (value == '')
then
- disable('st_hul_frame.left')
+ disable('st_hul_frame.osin')
else
- enable('st_hul_frame.left')
+ enable('st_hul_frame.osin')
end
return true
</script>
@@ -415,16 +415,16 @@
<frame layout="hbox">
- <!-- Højre øje -->
+ <!-- o.dxt -->
<frame layout="vbox">
<checkbox caption="Der er ikke målt på o.dxt"
- name="visus.template.missing.right" script="right_eye"
+ name="visus.template.missing.odxt" script="right_eye"
map="missing_eye_right_map"
truevalue="mangler" falsevalue="" value=""/>
<frame name="right_eye_frame" caption="o.dxt" layout="vbox">
<frame layout="hbox">
<label caption="Kontrast:"/>
- <combobox name="visus.template.kontrast.right" value="">
+ <combobox name="visus.template.kontrast.odxt" value="">
<item caption="Ej relevant" value=""/>
<item caption="20%" value="20%"/>
<item caption="50%" value="50%"/>
@@ -435,7 +435,7 @@
<frame layout="hbox">
<frame layout="vbox">
<label caption="Snellen:"/>
- <combobox name="visus.template.snellen.right" layout="vbox" type="search" value="" script="snellen.right">
+ <combobox name="visus.template.snellen.odxt" layout="vbox" type="search" value="" script="snellen.odxt">
<item caption="Ikke udfyldt" value=""/>
<item caption="2,0" value="2,0"/>
<item caption="1,6" value="1,6"/>
@@ -468,7 +468,7 @@
</frame>
<frame layout="vbox">
<label caption="ETDRS:"/>
- <combobox name="visus.template.etdrs.right" value="" type="search" script="etdrs.right">
+ <combobox name="visus.template.etdrs.odxt" value="" type="search" script="etdrs.odxt">
<item caption="Ikke udfyldt" value=""/>
<item caption="0" value="0"/>
<item caption="1" value="1"/>
@@ -583,15 +583,15 @@
</frame>
<frame layout="vbox">
<label caption="Sf:"/>
- <lineedit name="visus.template.korr.sf.right" regexp="[+-]{0,1}\d{1,2},\d{2}" script="lt20gt-25" value=""/>
+ <lineedit name="visus.template.korr.sf.odxt" regexp="[+-]{0,1}\d{1,2},\d{2}" script="lt20gt-25" value=""/>
</frame>
<frame layout="vbox">
<label caption="Cyl:"/>
- <lineedit name="visus.template.korr.cyl.right" regexp="|[-+]?[\d]{1,2},[\d]{2,2}" script="lt10gt-15" value=""/>
+ <lineedit name="visus.template.korr.cyl.odxt" regexp="|[-+]?[\d]{1,2},[\d]{2,2}" script="lt10gt-15" value=""/>
</frame>
<frame layout="vbox">
<label caption="Grader:"/>
- <lineedit name="visus.template.korr.grader.right" regexp="|[\d]+" script="lt359gt0" value=""/>
+ <lineedit name="visus.template.korr.grader.odxt" regexp="|[\d]+" script="lt359gt0" value=""/>
</frame>
</frame>
<!-- slut fjern hertil hvis korr felterne ikke skal bruges -->
@@ -603,25 +603,25 @@
</frame>
<frame layout="vbox">
<label caption="Sf:"/>
- <lineedit name="visus.template.add.sf.right" regexp="[+-]{0,1}\d{1,2},\d{2}" script="lt20gt-25" value=""/>
+ <lineedit name="visus.template.add.sf.odxt" regexp="[+-]{0,1}\d{1,2},\d{2}" script="lt20gt-25" value=""/>
</frame>
<frame layout="vbox">
<label caption="Cyl:"/>
- <lineedit name="visus.template.add.cyl.right" regexp="|[+-]{0,1}\d{1,2},\d{2}" script="lt10gt-15" value=""/>
+ <lineedit name="visus.template.add.cyl.odxt" regexp="|[+-]{0,1}\d{1,2},\d{2}" script="lt10gt-15" value=""/>
</frame>
<frame layout="vbox">
<label caption="Grader:"/>
- <lineedit name="visus.template.add.grader.right" regexp="|[\d]+" script="lt359gt0" value=""/>
+ <lineedit name="visus.template.add.grader.odxt" regexp="|[\d]+" script="lt359gt0" value=""/>
</frame>
</frame>
<!-- slut fjern hertil hvis add felterne ikke skal bruges -->
<frame layout="hbox">
- <checkbox name="visus.template.st_hul.right" caption="Yderligere måling med st. hul (udfyld herunder)" truevalue="true" falsevalue="" script="st_hul_check.right"/>
+ <checkbox name="visus.template.st_hul.odxt" caption="Yderligere måling med st. hul (udfyld herunder)" truevalue="true" falsevalue="" script="st_hul_check.odxt"/>
</frame>
- <frame layout="hbox" name="st_hul_frame.right">
+ <frame layout="hbox" name="st_hul_frame.odxt">
<frame layout="vbox">
<label caption="Snellen:"/>
- <combobox name="visus.template.st_hul.snellen.right" layout="vbox" type="search" value="" script="st_hul.snellen.right">
+ <combobox name="visus.template.st_hul.snellen.odxt" layout="vbox" type="search" value="" script="st_hul.snellen.odxt">
<item caption="Ikke udfyldt" value=""/>
<item caption="2,0" value="2,0"/>
<item caption="1,6" value="1,6"/>
@@ -654,7 +654,7 @@
</frame>
<frame layout="vbox">
<label caption="ETDRS:"/>
- <combobox name="visus.template.st_hul.etdrs.right" value="" type="search" script="st_hul.etdrs.right">
+ <combobox name="visus.template.st_hul.etdrs.odxt" value="" type="search" script="st_hul.etdrs.odxt">
<item caption="Ikke udfyldt" value=""/>
<item caption="0" value="0"/>
<item caption="1" value="1"/>
@@ -764,16 +764,16 @@
</frame>
</frame>
- <!-- Venstre øje -->
+ <!-- o.sin -->
<frame layout="vbox">
- <checkbox caption="Der er ikke målt på o.sin øje"
- name="visus.template.missing.left" script="left_eye"
+ <checkbox caption="Der er ikke målt på o.sin"
+ name="visus.template.missing.osin" script="left_eye"
map="missing_eye_left_map"
truevalue="mangler" falsevalue="" value=""/>
- <frame name="left_eye_frame" caption="o.sin øje" layout="vbox">
+ <frame name="left_eye_frame" caption="o.sin" layout="vbox">
<frame layout="hbox">
<label caption="Kontrast:"/>
- <combobox name="visus.template.kontrast.left" value="">
+ <combobox name="visus.template.kontrast.osin" value="">
<item caption="Ej relevant" value=""/>
<item caption="20%" value="20%"/>
<item caption="50%" value="50%"/>
@@ -784,7 +784,7 @@
<frame layout="hbox">
<frame layout="vbox">
<label caption="Snellen:"/>
- <combobox name="visus.template.snellen.left" layout="vbox" type="search" value="" script="snellen.left">
+ <combobox name="visus.template.snellen.osin" layout="vbox" type="search" value="" script="snellen.osin">
<item caption="Ikke udfyldt" value=""/>
<item caption="2,0" value="2,0"/>
<item caption="1,6" value="1,6"/>
@@ -817,7 +817,7 @@
</frame>
<frame layout="vbox">
<label caption="ETDRS:"/>
- <combobox name="visus.template.etdrs.left" value="" type="search" script="etdrs.left">
+ <combobox name="visus.template.etdrs.osin" value="" type="search" script="etdrs.osin">
<item caption="Ikke udfyldt" value=""/>
<item caption="0" value="0"/>
<item caption="1" value="1"/>
@@ -932,15 +932,15 @@
</frame>
<frame layout="vbox">
<label caption="Sf:"/>
- <lineedit name="visus.template.korr.sf.left" regexp="[+-]{0,1}\d{1,2},\d{2}" script="lt20gt-25" value=""/>
+ <lineedit name="visus.template.korr.sf.osin" regexp="[+-]{0,1}\d{1,2},\d{2}" script="lt20gt-25" value=""/>
</frame>
<frame layout="vbox">
<label caption="Cyl:"/>
- <lineedit name="visus.template.korr.cyl.left" regexp="|[-+]?[\d]{1,2},[\d]{2,2}" script="lt10gt-15" value=""/>
+ <lineedit name="visus.template.korr.cyl.osin" regexp="|[-+]?[\d]{1,2},[\d]{2,2}" script="lt10gt-15" value=""/>
</frame>
<frame layout="vbox">
<label caption="Grader:"/>
- <lineedit name="visus.template.korr.grader.left" regexp="|[\d]+" script="lt359gt0" value=""/>
+ <lineedit name="visus.template.korr.grader.osin" regexp="|[\d]+" script="lt359gt0" value=""/>
</frame>
</frame>
<!-- slut fjern hertil hvis korr felterne ikke skal bruges -->
@@ -952,25 +952,25 @@
</frame>
<frame layout="vbox">
<label caption="Sf:"/>
- <lineedit name="visus.template.add.sf.left" regexp="[+-]{0,1}\d{1,2},\d{2}" script="lt20gt-25" value=""/>
+ <lineedit name="visus.template.add.sf.osin" regexp="[+-]{0,1}\d{1,2},\d{2}" script="lt20gt-25" value=""/>
</frame>
<frame layout="vbox">
<label caption="Cyl:"/>
- <lineedit name="visus.template.add.cyl.left" regexp="|[+-]{0,1}\d{1,2},\d{2}" script="lt10gt-15" value=""/>
+ <lineedit name="visus.template.add.cyl.osin" regexp="|[+-]{0,1}\d{1,2},\d{2}" script="lt10gt-15" value=""/>
</frame>
<frame layout="vbox">
<label caption="Grader:"/>
- <lineedit name="visus.template.add.grader.left" regexp="|[\d]+" script="lt359gt0" value=""/>
+ <lineedit name="visus.template.add.grader.osin" regexp="|[\d]+" script="lt359gt0" value=""/>
</frame>
</frame>
<!-- slut fjern hertil hvis add felterne ikke skal bruges -->
<frame layout="hbox">
- <checkbox name="visus.template.st_hul.left" caption="Yderligere måling med st. hul (udfyld herunder)" truevalue="true" falsevalue="" script="st_hul_check.left"/>
+ <checkbox name="visus.template.st_hul.osin" caption="Yderligere måling med st. hul (udfyld herunder)" truevalue="true" falsevalue="" script="st_hul_check.osin"/>
</frame>
- <frame layout="hbox" name="st_hul_frame.left">
+ <frame layout="hbox" name="st_hul_frame.osin">
<frame layout="vbox">
<label caption="Snellen:"/>
- <combobox name="visus.template.st_hul.snellen.left" layout="vbox" type="search" value="" script="st_hul.snellen.left">
+ <combobox name="visus.template.st_hul.snellen.osin" layout="vbox" type="search" value="" script="st_hul.snellen.osin">
<item caption="Ikke udfyldt" value=""/>
<item caption="2,0" value="2,0"/>
<item caption="1,6" value="1,6"/>
@@ -1003,7 +1003,7 @@
</frame>
<frame layout="vbox">
<label caption="ETDRS:"/>
- <combobox name="visus.template.st_hul.etdrs.left" value="" type="search" script="st_hul.etdrs.left">
+ <combobox name="visus.template.st_hul.etdrs.osin" value="" type="search" script="st_hul.etdrs.osin">
<item caption="Ikke udfyldt" value=""/>
<item caption="0" value="0"/>
<item caption="1" value="1"/>