Changed CIS 'Allgemeiner Downloadlink'-URL from CIS to Moodle

This commit is contained in:
Cris
2019-06-25 16:50:16 +02:00
committed by hainberg
parent 6ad63faa86
commit 19def99066
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -438,9 +438,9 @@ function getStgContent($studiengang_kz, $semester, $sprache)
$xml.='<cis_ext_menu>
<lehrziele_name><![CDATA['.$p->t('global/lehrziele').']]></lehrziele_name>
<download_name><![CDATA['.$p->t('global/allgemeinerdownload').']]></download_name>
<newsgroup_name><![CDATA['.$p->t('global/newsgroups').']]></newsgroup_name>
<kurzbz><![CDATA['.strtolower($studiengang->kuerzel).']]></kurzbz>
<kurzbzlang><![CDATA['.strtolower($studiengang->kurzbzlang).']]></kurzbzlang>
<stg_kz><![CDATA['. $studiengang_kz.']]></stg_kz>
</cis_ext_menu>';
}
+2 -3
View File
@@ -162,11 +162,10 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
</xsl:template>
<xsl:template match="cis_ext_menu">
<xsl:variable name="kurzbz" select="kurzbz"></xsl:variable>
<xsl:variable name="kurzbzlang" select="kurzbzlang"></xsl:variable>
<xsl:variable name="stg_kz" select="stg_kz"></xsl:variable>
<td class="menubox">
<p><xsl:text> </xsl:text><a href="../documents/{kurzbz}/lehrziele/" class="Item" target="_blank"><xsl:value-of select="lehrziele_name" /></a></p>
<p><xsl:text> </xsl:text><a href="../documents/{kurzbz}/download/" class="Item" target="_blank"><xsl:value-of select="download_name" /></a></p>
<p><xsl:text> </xsl:text><a href="news://news.technikum-wien.at/{kurzbzlang}" class="Item" target="_blank"><xsl:value-of select="newsgroup_name" /></a></p>
<p><xsl:text> </xsl:text><a href="https://moodle.technikum-wien.at/course/view.php?idnumber=dl{$stg_kz}" class="Item" target="_blank"><xsl:value-of select="download_name" /></a></p>
</td>
</xsl:template>
</xsl:stylesheet >