- Fix für SciDepartmentProjectsTabO

- Integriertes Mandalay-Theme auf aktuellen Stand gebracht


git-svn-id: https://svn.libreccm.org/ccm/trunk@1675 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2012-05-21 14:05:39 +00:00
parent 26395fc5a8
commit 697835822b
16 changed files with 46 additions and 40 deletions

View File

@ -216,8 +216,8 @@
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="./contacts/contact[@contactType='commonContact']/contactentries[keyId='homepage']/value"/> <xsl:value-of select="./contacts/contact[@contactType='commonContact']/contactentries[keyId='homepage']/value"/>
</xsl:attribute> </xsl:attribute>
<xsl:if test="string-length(./titlePre) &gt; 0"> <xsl:if test="string-length(./titlepre) &gt; 0">
<xsl:value-of select="./titlePre"/> <xsl:value-of select="./titlepre"/>
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
</xsl:if> </xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0"> <xsl:if test="string-length(./givenname) &gt; 0">
@ -227,16 +227,16 @@
<xsl:if test="string-length(./givenname) &gt; 0"> <xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./surname"/> <xsl:value-of select="./surname"/>
</xsl:if> </xsl:if>
<xsl:if test="string-length(./titlePost) &gt; 0"> <xsl:if test="string-length(./titlepost) &gt; 0">
<xsl:text>, </xsl:text> <xsl:text>, </xsl:text>
<xsl:value-of select="./titlePost"/> <xsl:value-of select="./titlepost"/>
</xsl:if> </xsl:if>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<span class="CIname memberName"> <span class="CIname memberName">
<xsl:if test="string-length(./titlePre) &gt; 0"> <xsl:if test="string-length(./titlepre) &gt; 0">
<xsl:value-of select="./titlePre"/> <xsl:value-of select="./titlepre"/>
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
</xsl:if> </xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0"> <xsl:if test="string-length(./givenname) &gt; 0">
@ -246,9 +246,9 @@
<xsl:if test="string-length(./givenname) &gt; 0"> <xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./surname"/> <xsl:value-of select="./surname"/>
</xsl:if> </xsl:if>
<xsl:if test="string-length(./titlePost) &gt; 0"> <xsl:if test="string-length(./titlepost) &gt; 0">
<xsl:text>, </xsl:text> <xsl:text>, </xsl:text>
<xsl:value-of select="./titlePost"/> <xsl:value-of select="./titlepost"/>
</xsl:if> </xsl:if>
</span> </span>
</xsl:otherwise> </xsl:otherwise>
@ -303,8 +303,8 @@
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</span> </span>
</span> </span><br/>
<xsl:text> </xsl:text> <!-- <xsl:text> </xsl:text> -->
</xsl:if> </xsl:if>
</xsl:for-each> </xsl:for-each>
<xsl:if test="($showAddress = 'true') and (string-length(./contacts/address/address) &gt; 0)"> <xsl:if test="($showAddress = 'true') and (string-length(./contacts/address/address) &gt; 0)">

View File

@ -272,12 +272,12 @@
<xsl:with-param name="id" select="'projectsTab/projectHeadPostText'"/> <xsl:with-param name="id" select="'projectsTab/projectHeadPostText'"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
<xsl:for-each select="./persons"> <xsl:for-each select="./members/member">
<xsl:if test="string-length(./givenname) &gt; 0"> <xsl:if test="string-length(./givenName) &gt; 0">
<xsl:value-of select="./givenname"/> <xsl:value-of select="./givenName"/>
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
</xsl:if> </xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0"> <xsl:if test="string-length(./surname) &gt; 0">
<xsl:value-of select="./surname"/> <xsl:value-of select="./surname"/>
</xsl:if> </xsl:if>
<xsl:if test="./link/role_name = 'head'"> <xsl:if test="./link/role_name = 'head'">

View File

@ -101,7 +101,7 @@
</xsl:if> </xsl:if>
<ul class="availableData"> <ul class="availableData">
<xsl:for-each select="../orgaUnitTabs/availableTabs/availableTab"> <xsl:for-each select="./orgaUnitTabs/availableTabs/availableTab">
<li> <li>
<xsl:if test="./@selected = 'true'"> <xsl:if test="./@selected = 'true'">
<xsl:attribute name="class">selectedTab active</xsl:attribute> <xsl:attribute name="class">selectedTab active</xsl:attribute>
@ -127,7 +127,7 @@
</xsl:for-each> </xsl:for-each>
</ul> </ul>
<xsl:apply-templates select="../orgaUnitTabs/selectedTab" mode="tabs"/> <xsl:apply-templates select="./orgaUnitTabs/selectedTab" mode="tabs"/>
</div> </div>
</xsl:template> </xsl:template>

View File

@ -212,13 +212,13 @@
<xsl:for-each select="./member"> <xsl:for-each select="./member">
<li class="sciMember"> <li class="sciMember">
<xsl:choose> <xsl:choose>
<xsl:when test="($linkMembers = 'true') and ($showContactData = 'true')"> <xsl:when test="($linkMembers = 'true') and ($showContactData = 'true') and (string-length(./contacts/contact[@contactType='commonContact']/contactentries[keyId='homepage']) &gt; 0)">
<a class="CIname memberName"> <a class="CIname memberName">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="./contacts/contactentries[keyId='homepage']/value"/> <xsl:value-of select="./contacts/contact[@contactType='commonContact']/contactentries[keyId='homepage']/value"/>
</xsl:attribute> </xsl:attribute>
<xsl:if test="string-length(./titlePre) &gt; 0"> <xsl:if test="string-length(./titlepre) &gt; 0">
<xsl:value-of select="./titlePre"/> <xsl:value-of select="./titlepre"/>
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
</xsl:if> </xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0"> <xsl:if test="string-length(./givenname) &gt; 0">
@ -228,15 +228,15 @@
<xsl:if test="string-length(./givenname) &gt; 0"> <xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./surname"/> <xsl:value-of select="./surname"/>
</xsl:if> </xsl:if>
<xsl:if test="string-length(./titlePost) &gt; 0"> <xsl:if test="string-length(./titlepost) &gt; 0">
<xsl:text>, </xsl:text> <xsl:text>, </xsl:text>
<xsl:value-of select="./titlePost"/> <xsl:value-of select="./titlepost"/>
</xsl:if> </xsl:if>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<span class="CIname memberName"> <span class="CIname memberName">
<xsl:if test="string-length(./titlePre) &gt; 0"> <xsl:if test="string-length(./titlepre) &gt; 0">
<xsl:value-of select="./titlePre"/> <xsl:value-of select="./titlePre"/>
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
</xsl:if> </xsl:if>
@ -247,9 +247,9 @@
<xsl:if test="string-length(./givenname) &gt; 0"> <xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./surname"/> <xsl:value-of select="./surname"/>
</xsl:if> </xsl:if>
<xsl:if test="string-length(./titlePost) &gt; 0"> <xsl:if test="string-length(./titlepost) &gt; 0">
<xsl:text>, </xsl:text> <xsl:text>, </xsl:text>
<xsl:value-of select="./titlePost"/> <xsl:value-of select="./titlepost"/>
</xsl:if> </xsl:if>
</span> </span>
</xsl:otherwise> </xsl:otherwise>
@ -258,7 +258,7 @@
<xsl:if test="$showContactData = 'true'"> <xsl:if test="$showContactData = 'true'">
<span class="contact"> <span class="contact">
<xsl:for-each select="./contacts/contactentries"> <xsl:for-each select="./contacts/contact[@contactType='commonContact']/contactentries">
<xsl:sort select="key"/> <xsl:sort select="key"/>
<xsl:variable name="showContactEntry"> <xsl:variable name="showContactEntry">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
@ -305,7 +305,8 @@
</xsl:choose> </xsl:choose>
</span> </span>
</span> </span>
<xsl:text> </xsl:text> <br/>
<!-- <xsl:text> </xsl:text>-->
</xsl:if> </xsl:if>
</xsl:for-each> </xsl:for-each>
<xsl:if test="($showAddress = 'true') and (string-length(./contacts/address/address) &gt; 0)"> <xsl:if test="($showAddress = 'true') and (string-length(./contacts/address/address) &gt; 0)">

View File

@ -271,12 +271,12 @@
<xsl:with-param name="id" select="'projectsTab/projectHeadPostText'"/> <xsl:with-param name="id" select="'projectsTab/projectHeadPostText'"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
<xsl:for-each select="./persons"> <xsl:for-each select="./members/member">
<xsl:if test="string-length(./givenname) &gt; 0"> <xsl:if test="string-length(./givenName) &gt; 0">
<xsl:value-of select="./givenname"/> <xsl:value-of select="./givenName"/>
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
</xsl:if> </xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0"> <xsl:if test="string-length(./surname) &gt; 0">
<xsl:value-of select="./surname"/> <xsl:value-of select="./surname"/>
</xsl:if> </xsl:if>
<xsl:if test="./link/role_name = 'head'"> <xsl:if test="./link/role_name = 'head'">

View File

@ -202,7 +202,7 @@
<xsl:if test="./publications"> <xsl:if test="./publications">
<ul class="publicationList"> <ul class="publicationList">
<xsl:for-each select="publications"> <xsl:for-each select="./publications">
<li class="sciPublication"> <li class="sciPublication">
<xsl:apply-templates select="." mode="list_view"/> <xsl:apply-templates select="." mode="list_view"/>
</li> </li>

View File

@ -187,6 +187,7 @@
<xsl:value-of select="./title"/> <xsl:value-of select="./title"/>
</a> </a>
<br/> <br/>
<xsl:if test="count(./heads/head) &gt; 0">
<xsl:call-template name="mandalay:getStaticText"> <xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciInstitute'"/> <xsl:with-param name="module" select="'SciInstitute'"/>
<xsl:with-param name="id" select="'departmentHeadPreText'"/> <xsl:with-param name="id" select="'departmentHeadPreText'"/>
@ -256,6 +257,7 @@
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:for-each> </xsl:for-each>
</xsl:if>
</li> </li>
</xsl:for-each> </xsl:for-each>
</ul> </ul>

View File

@ -436,7 +436,7 @@
<xsl:with-param name="surname" select="./surname"/> <xsl:with-param name="surname" select="./surname"/>
<xsl:with-param name="givenName" select="./givenname"/> <xsl:with-param name="givenName" select="./givenname"/>
<xsl:with-param name="isEditor" select="./@isEditor"/> <xsl:with-param name="isEditor" select="./@isEditor"/>
<xsl:with-param name="authorsCount" select="count(../authors/author)"/> <xsl:with-param name="authorsCount" select="count(../author)"/>
<xsl:with-param name="position" select="position()"/> <xsl:with-param name="position" select="position()"/>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:for-each> </xsl:for-each>

View File

@ -440,7 +440,7 @@
<xsl:with-param name="surname" select="./surname"/> <xsl:with-param name="surname" select="./surname"/>
<xsl:with-param name="givenName" select="./givenname"/> <xsl:with-param name="givenName" select="./givenname"/>
<xsl:with-param name="isEditor" select="./@isEditor"/> <xsl:with-param name="isEditor" select="./@isEditor"/>
<xsl:with-param name="authorsCount" select="count(../authors)"/> <xsl:with-param name="authorsCount" select="count(../author)"/>
<xsl:with-param name="position" select="position()"/> <xsl:with-param name="position" select="position()"/>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:for-each> </xsl:for-each>

View File

@ -435,7 +435,7 @@
<xsl:with-param name="surname" select="./surname"/> <xsl:with-param name="surname" select="./surname"/>
<xsl:with-param name="givenName" select="./givenname"/> <xsl:with-param name="givenName" select="./givenname"/>
<xsl:with-param name="isEditor" select="./@isEditor"/> <xsl:with-param name="isEditor" select="./@isEditor"/>
<xsl:with-param name="authorsCount" select="count(../authors)"/> <xsl:with-param name="authorsCount" select="count(../author)"/>
<xsl:with-param name="position" select="position()"/> <xsl:with-param name="position" select="position()"/>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:for-each> </xsl:for-each>

View File

@ -343,7 +343,7 @@
<xsl:with-param name="surname" select="./surname"/> <xsl:with-param name="surname" select="./surname"/>
<xsl:with-param name="givenName" select="./givenname"/> <xsl:with-param name="givenName" select="./givenname"/>
<xsl:with-param name="isEditor" select="./@isEditor"/> <xsl:with-param name="isEditor" select="./@isEditor"/>
<xsl:with-param name="authorsCount" select="count(../authors/author)"/> <xsl:with-param name="authorsCount" select="count(../author)"/>
<xsl:with-param name="position" select="position()"/> <xsl:with-param name="position" select="position()"/>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:for-each> </xsl:for-each>

View File

@ -374,7 +374,7 @@
<xsl:with-param name="surname" select="./surname"/> <xsl:with-param name="surname" select="./surname"/>
<xsl:with-param name="givenName" select="./givenname"/> <xsl:with-param name="givenName" select="./givenname"/>
<xsl:with-param name="isEditor" select="./@isEditor"/> <xsl:with-param name="isEditor" select="./@isEditor"/>
<xsl:with-param name="authorsCount" select="count(./authors/author)"/> <xsl:with-param name="authorsCount" select="count(../author)"/>
<xsl:with-param name="position" select="position()"/> <xsl:with-param name="position" select="position()"/>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:for-each> </xsl:for-each>

View File

@ -432,7 +432,7 @@
<xsl:with-param name="surname" select="./surname"/> <xsl:with-param name="surname" select="./surname"/>
<xsl:with-param name="givenName" select="./givenname"/> <xsl:with-param name="givenName" select="./givenname"/>
<xsl:with-param name="isEditor" select="@isEditor"/> <xsl:with-param name="isEditor" select="@isEditor"/>
<xsl:with-param name="authorsCount" select="count(../authors/author)"/> <xsl:with-param name="authorsCount" select="count(../author)"/>
<xsl:with-param name="position" select="position()"/> <xsl:with-param name="position" select="position()"/>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:for-each> </xsl:for-each>
@ -451,6 +451,7 @@
</xsl:apply-templates> </xsl:apply-templates>
</xsl:for-each> </xsl:for-each>
</xsl:variable> </xsl:variable>
<!-- Call template for standard format --> <!-- Call template for standard format -->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefMonographFormat"> <xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefMonographFormat">
<xsl:with-param name="authors" select="$authors"/> <xsl:with-param name="authors" select="$authors"/>

View File

@ -333,6 +333,7 @@
<!-- technical data --> <!-- technical data -->
<xsl:param name="oid"/> <xsl:param name="oid"/>
<xsl:param name="useRelativeUrl" select="'false'"/> <xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:apply-templates> <xsl:apply-templates>
<!-- publication data --> <!-- publication data -->
<xsl:with-param name="authors" select="$authors"/> <xsl:with-param name="authors" select="$authors"/>

View File

@ -268,7 +268,7 @@
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:if test="$setOwnerImage = 'true'"> <xsl:if test="$setOwnerImage = 'true'">
<xsl:for-each select="../profileOwner/owner"> <xsl:for-each select="./profileOwner/owner">
<xsl:call-template name="mandalay:imageAttachment"> <xsl:call-template name="mandalay:imageAttachment">
<xsl:with-param name="maxWidth"> <xsl:with-param name="maxWidth">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">

View File

@ -309,7 +309,8 @@ public class SciDepartmentProjectsTab implements GenericOrgaUnitTab {
final long start = System.currentTimeMillis(); final long start = System.currentTimeMillis();
final XmlGenerator generator = new XmlGenerator(project); final XmlGenerator generator = new XmlGenerator(project);
generator.setItemElemName("project", ""); generator.setItemElemName("project", "");
generator.setUseExtraXml(false); generator.setUseExtraXml(true);
generator.setListMode(true);
generator.generateXML(state, parent, ""); generator.generateXML(state, parent, "");
logger.debug(String.format("Generated XML for project '%s' in %d ms.", logger.debug(String.format("Generated XML for project '%s' in %d ms.",
project.getName(), project.getName(),