some even smaller fixes

git-svn-id: http://yolanda.mister-muffin.de/svn@304 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2008-04-15 21:19:18 +00:00
parent 2b2f4a64d5
commit c4b86cf26c
3 changed files with 7 additions and 5 deletions

View file

@ -20,7 +20,6 @@ use lib qw(/var/www/yolanda);
#set global config variable
$config = XMLin("$root/config/backend.xml", KeyAttr => {string => 'id'}, ForceArray => [ 'string' ], ContentKey => '-content');
$config = $config->{"strings"}->{"string"};
#set global variables
$dbh = DBI->connect("DBI:mysql:".$config->{"database_name"}.":".$config->{"database_host"}, $config->{"database_username"}, $config->{"database_password"}) or die $DBI::errstr;
1;

View file

@ -1,10 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<languages>
<lang>
<short></short>
<name lang="en">Undefined</name>
</lang>
<lang>
<short>aa</short>
<name lang="en">Afar</name>

View file

@ -277,6 +277,13 @@
<!-- somehow one cannot access DC.Language from inside the for-each... -->
<xsl:variable name="language" select="//uploadform/@DC.Language" />
<select name="DC.Language" size="1">
<option>
<xsl:if test="not($language)">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:attribute name="value"></xsl:attribute>
Undefined
</option>
<xsl:for-each select="$language_strings">
<option>
<xsl:variable name="short" select="short" />