summaryrefslogtreecommitdiff
path: root/server/xml/macros/visus-egen_korr-1.0.xml
diff options
context:
space:
mode:
authorsenator <senator>2009-12-09 10:48:51 +0000
committersenator <senator>2009-12-09 10:48:51 +0000
commite3b89a6ff248301fe26fa0aed661d175e8efd4f8 (patch)
tree9d6de4d91e8917c8dd427f2cc94e0b579cdb5030 /server/xml/macros/visus-egen_korr-1.0.xml
parent6a747f3ac701db5b2b2875163bd28bc4d3661cfd (diff)
added less than 0,05 to snelle list. a seemingly unrelated problem exist in the form of ou not being able to be enabled while both st_hul is enabled in odxt and osin of template. i have no idea why
Diffstat (limited to 'server/xml/macros/visus-egen_korr-1.0.xml')
-rw-r--r--server/xml/macros/visus-egen_korr-1.0.xml21
1 files changed, 15 insertions, 6 deletions
diff --git a/server/xml/macros/visus-egen_korr-1.0.xml b/server/xml/macros/visus-egen_korr-1.0.xml
index 4f4d29f..32c0914 100644
--- a/server/xml/macros/visus-egen_korr-1.0.xml
+++ b/server/xml/macros/visus-egen_korr-1.0.xml
@@ -10,6 +10,10 @@
fjern tilsvarende GUI felter der ikke skal bruges
-->
<resume language="lua">
+ function lttoxml(value)
+ return string.gsub(value, '&lt;', '&amp;lt;')
+ end
+
out = ''
if ( getValue('visus.egen_korr.mangler.odxt') == '' or getValue('visus.egen_korr.mangler.osin') == '' or getValue('visus.egen_korr.ou') ~= '' )
then
@@ -21,7 +25,7 @@
out = out .. 'o.dxt: '
if ( getValue('visus.egen_korr.snellen.odxt') ~= '' )
then
- out = out .. getValue('visus.egen_korr.snellen.odxt')
+ out = out .. lttoxml(getValue('visus.egen_korr.snellen.odxt'))
if ( getValue('visus.egen_korr.etdrs.odxt') == '' )
then
out = out .. ', '
@@ -54,7 +58,7 @@
then
if ( getValue('visus.egen_korr.st_hul.snellen.odxt') ~= '' )
then
- out = out .. ', ' .. getValue('visus.egen_korr.st_hul.snellen.odxt')
+ out = out .. ', ' .. lttoxml(getValue('visus.egen_korr.st_hul.snellen.odxt'))
end
if ( getValue('visus.egen_korr.st_hul.etdrs.odxt') ~= '' )
then
@@ -74,7 +78,7 @@
out = out .. 'o.sin: '
if ( getValue('visus.egen_korr.snellen.osin') ~= '' )
then
- out = out .. getValue('visus.egen_korr.snellen.osin')
+ out = out .. lttoxml(getValue('visus.egen_korr.snellen.osin'))
if ( getValue('visus.egen_korr.etdrs.osin') == '' )
then
out = out .. ', '
@@ -107,13 +111,13 @@
then
if ( getValue('visus.egen_korr.st_hul.snellen.osin') ~= '' )
then
- out = out .. ', ' .. getValue('visus.egen_korr.st_hul.snellen.osin')
+ out = out .. ', ' .. lttoxml(getValue('visus.egen_korr.st_hul.snellen.osin'))
end
if ( getValue('visus.egen_korr.st_hul.etdrs.osin') ~= '' )
then
out = out .. ', ' .. getValue('visus.egen_korr.st_hul.etdrs.osin') .. ' ETDRS'
end
- out = out .. ' st.h.\n'
+ out = out .. ' st.h.'
end
out = out .. '\n'
end
@@ -128,7 +132,7 @@
out = out .. 'o.u: '
if ( getValue('visus.egen_korr.snellen.ou') ~= '' )
then
- out = out .. getValue('visus.egen_korr.snellen.ou')
+ out = out .. lttoxml(getValue('visus.egen_korr.snellen.ou'))
end
if ( getValue('visus.egen_korr.etdrs.ou') ~= '' )
then
@@ -433,6 +437,7 @@
<item caption="0,1" value="0,1"/>
<item caption="0,08" value="0,08"/>
<item caption="0,05" value="0,05"/>
+ <item caption="&amp;lt;0,05" value="&amp;lt;0,05"/>
<item caption="6/60" value="6/60"/>
<item caption="3/60" value="3/60"/>
<item caption="1/18" value="1/18"/>
@@ -599,6 +604,7 @@
<item caption="0,1" value="0,1"/>
<item caption="0,08" value="0,08"/>
<item caption="0,05" value="0,05"/>
+ <item caption="&amp;lt;0,05" value="&amp;lt;0,05"/>
<item caption="6/60" value="6/60"/>
<item caption="3/60" value="3/60"/>
<item caption="1/18" value="1/18"/>
@@ -762,6 +768,7 @@
<item caption="0,1" value="0,1"/>
<item caption="0,08" value="0,08"/>
<item caption="0,05" value="0,05"/>
+ <item caption="&amp;lt;0,05" value="&amp;lt;0,05"/>
<item caption="6/60" value="6/60"/>
<item caption="3/60" value="3/60"/>
<item caption="1/18" value="1/18"/>
@@ -928,6 +935,7 @@
<item caption="0,1" value="0,1"/>
<item caption="0,08" value="0,08"/>
<item caption="0,05" value="0,05"/>
+ <item caption="&amp;lt;0,05" value="&amp;lt;0,05"/>
<item caption="6/60" value="6/60"/>
<item caption="3/60" value="3/60"/>
<item caption="1/18" value="1/18"/>
@@ -1094,6 +1102,7 @@
<item caption="0,1" value="0,1"/>
<item caption="0,08" value="0,08"/>
<item caption="0,05" value="0,05"/>
+ <item caption="&amp;lt;0,05" value="&amp;lt;0,05"/>
<item caption="6/60" value="6/60"/>
<item caption="3/60" value="3/60"/>
<item caption="1/18" value="1/18"/>