- Mandalay support for the content types from the ccm-sci-publications-dramaticarts module
- Some bugfixes for the ccm-sci-publications-dramaticarts module git-svn-id: https://svn.libreccm.org/ccm/trunk@2663 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
d287dcd760
commit
06e25503c7
|
|
@ -217,6 +217,44 @@
|
|||
<line id="monograph/year">Jahr</line>
|
||||
<line id="monograph/yearFirstPublished">Erste Veröffentlichung</line>
|
||||
|
||||
<line id="movie/abstract">Zusammenfassung</line>
|
||||
<line id="movie/author">Autorin/Autor</line>
|
||||
<line id="movie/authors">Autorinnen/Autoren</line>
|
||||
<line id="movie/director">Regie</line>
|
||||
<line id="movie/languageOfPublication">Sprache</line>
|
||||
<line id="movie/misc"></line>
|
||||
<line id="movie/number">Nummer</line>
|
||||
<line id="movie/numberOfPages">Anzahl der Seiten</line>
|
||||
<line id="movie/organization">Organisation</line>
|
||||
<line id="movie/place">Ort</line>
|
||||
<line id="movie/productionCompany">Produktionsgesellschaft</line>
|
||||
<line id="movie/series">Reihe</line>
|
||||
<line id="movie/seriesPre"></line>
|
||||
<line id="movie/seriesPost"></line>
|
||||
<line id="movie/year">Jahr</line>
|
||||
<line id="movie/yearFirstPublished">Erste Veröffentlichung</line>
|
||||
|
||||
<line id="play/abstract">Zusammenfassung</line>
|
||||
<line id="play/authors">Autorinnen/Autoren</line>
|
||||
<line id="play/author">Autorin/Autor</line>
|
||||
<line id="play/edition">Auflage</line>
|
||||
<line id="play/firstProductionTheatre">Erstes Theater</line>
|
||||
<line id="play/firstProductionYear">Erste Produktionsjahr</line>
|
||||
<line id="play/isbn">ISBN</line>
|
||||
<line id="play/languageOfPublication">Sprache</line>
|
||||
<line id="play/misc"></line>
|
||||
<line id="play/numberOfPages">Anzahl der Seiten</line>
|
||||
<line id="play/numberOfVolumes">Anzahl der Bände</line>
|
||||
<line id="play/publisher">Verlag</line>
|
||||
<line id="play/reviewed">Referiert</line>
|
||||
<line id="play/series">Erschienen in der Reihe</line>
|
||||
<line id="play/seriesPre"></line>
|
||||
<line id="play/seriesPost"></line>
|
||||
<line id="play/url">Weitere Informationen</line>
|
||||
<line id="play/volume">Band</line>
|
||||
<line id="play/year">Jahr</line>
|
||||
<line id="play/yearFirstPublished">Erste Veröffentlichung</line>
|
||||
|
||||
<line id="proceedings/abstract">Zusammenfassung</line>
|
||||
<line id="proceedings/authors">Autorinnen/Autoren</line>
|
||||
<line id="proceedings/author">Autorin/Autor</line>
|
||||
|
|
|
|||
|
|
@ -96,8 +96,8 @@
|
|||
<line id="articleInJournal/issue">Issue</line>
|
||||
<line id="articleInJournal/volume">Volume</line>
|
||||
<line id="articleInJournal/year">Year</line>
|
||||
<line id="articleInJournal/articles">Articles</line>
|
||||
<line id="articleInJournal/reviewed">Reviewed article</line>
|
||||
<line id="articleInJournal/articles">Articles</line>
|
||||
<line id="articleInJournal/reviewed">Reviewed article</line>
|
||||
<line id="articleInJournal/yearFirstPublished">First published</line>
|
||||
|
||||
<line id="collectedVolume/abstract">Abstract</line>
|
||||
|
|
@ -210,6 +210,43 @@
|
|||
<line id="monograph/year">Year</line>
|
||||
<line id="monograph/yearFirstPublished">First published</line>
|
||||
|
||||
<line id="movie/abstract">Abstract</line>
|
||||
<line id="movie/author">Author</line>
|
||||
<line id="movie/authors">Authors</line>
|
||||
<line id="movie/director">Director</line>
|
||||
<line id="movie/languageOfPublication">Language</line>
|
||||
<line id="movie/misc">Miscellaneous</line>
|
||||
<line id="movie/number">Number</line>
|
||||
<line id="movie/numberOfPages">Number of pages</line>
|
||||
<line id="movie/organization">Organization</line>
|
||||
<line id="movie/place">Place</line>
|
||||
<line id="movie/productionCompany">Production company</line>
|
||||
<line id="movie/series">Series</line>
|
||||
<line id="movie/seriesPre"></line>
|
||||
<line id="movie/seriesPost"></line>
|
||||
<line id="movie/year">Year</line>
|
||||
<line id="movie/yearFirstPublished">First published</line>
|
||||
|
||||
<line id="play/abstract">Abstract</line>
|
||||
<line id="play/authors">Authors</line>
|
||||
<line id="play/author">Author</line>
|
||||
<line id="play/edition">Edition</line>
|
||||
<line id="play/firstProductionTheatre">First production theatre</line>
|
||||
<line id="play/firstProductionYear">First production year</line>
|
||||
<line id="play/isbn">ISBN</line>
|
||||
<line id="play/misc">Miscellaneous</line>
|
||||
<line id="play/languageOfPublication">Language</line>
|
||||
<line id="play/numberOfPages">Number of pages</line>
|
||||
<line id="play/numberOfVolumes">Number of volumes</line>
|
||||
<line id="play/publisher">Publisher</line>
|
||||
<line id="play/reviewed">Reviewed</line>
|
||||
<line id="play/series">In series</line>
|
||||
<line id="play/url">Further informations</line>
|
||||
<line id="play/volume">Volume</line>
|
||||
<line id="play/year">Year</line>
|
||||
<line id="play/yearFirstPublished">First published</line>
|
||||
|
||||
|
||||
<line id="proceedings/abstract">Abstract</line>
|
||||
<line id="proceedings/authors">Authors</line>
|
||||
<line id="proceedings/author">Author</line>
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
<setting id="collectedVolume/setVolume">true</setting>
|
||||
<setting id="collectedVolume/setYear">true</setting>
|
||||
<setting id="collectedVolume/setYearFirstPublished">true</setting>
|
||||
<setting id="collectedVolume/setArticles">true</setting>
|
||||
<setting id="collectedVolume/setArticles">true</setting>
|
||||
|
||||
<!-- Settings for the detail view of an expertise -->
|
||||
<setting id="expertise/setImage">true</setting>
|
||||
|
|
@ -246,6 +246,57 @@
|
|||
<setting id="monograph/setYear">true</setting>
|
||||
<setting id="monograph/setYearFirstPublished">true</setting>
|
||||
|
||||
<!-- Settings for the detail view of a working paper -->
|
||||
<setting id="movie/setImage">true</setting>
|
||||
<setting id="movie/setImageCaption">true</setting>
|
||||
<setting id="movie/setImageMaxHeight"></setting>
|
||||
<setting id="movie/setImageMaxWidth"></setting>
|
||||
|
||||
<setting id="movie/setAbstract">true</setting>
|
||||
<setting id="movie/setAssignedTerms">true</setting>
|
||||
<setting id="movie/setAuthors">true</setting>
|
||||
<setting id="movie/setDirector">true</setting>
|
||||
<setting id="movie/setLanguageOfPublication">true</setting>
|
||||
<setting id="movie/setMisc">true</setting>
|
||||
<setting id="movie/setNumber">true</setting>
|
||||
<setting id="movie/setNumberOfPages">true</setting>
|
||||
<setting id="movie/setPages">true</setting>
|
||||
<setting id="movie/setOrganization">true</setting>
|
||||
<setting id="movie/setPlace">true</setting>
|
||||
<setting id="movie/setProductionCompany">true</setting>
|
||||
<setting id="movie/setSeries">true</setting>
|
||||
<setting id="movie/setSeriesLink">true</setting>
|
||||
<setting id="movie/setSeriesVolume">true</setting>
|
||||
<setting id="movie/setYear">true</setting>
|
||||
<setting id="movie/setYearFirstPublished">true</setting>
|
||||
|
||||
<!-- Settings for the detail view of a play -->
|
||||
<setting id="play/setImage">true</setting>
|
||||
<setting id="play/setImageCaption">true</setting>
|
||||
<setting id="play/setImageMaxHeight"></setting>
|
||||
<setting id="play/setImageMaxWidth"></setting>
|
||||
|
||||
<setting id="play/setAbstract">true</setting>
|
||||
<setting id="play/setAssignedTerms">true</setting>
|
||||
<setting id="play/setAuthors">true</setting>
|
||||
<setting id="play/setEdition">true</setting>
|
||||
<setting id="play/setFirstProductionTheatre">true</setting>
|
||||
<setting id="play/setFirstProductionYear">true</setting>
|
||||
<setting id="play/setIsbn">true</setting>
|
||||
<setting id="play/setLanguageOfPublication">true</setting>
|
||||
<setting id="play/setMisc">true</setting>
|
||||
<setting id="play/setNumberOfPages">true</setting>
|
||||
<setting id="play/setNumberOfVolumes">true</setting>
|
||||
<setting id="play/setPublisher">true</setting>
|
||||
<setting id="play/setReviewed">true</setting>
|
||||
<setting id="play/setSeries">true</setting>
|
||||
<setting id="play/setSeriesLink">true</setting>
|
||||
<setting id="play/setSeriesVolume">true</setting>
|
||||
<setting id="play/setUrl">true</setting>
|
||||
<setting id="play/setVolume">true</setting>
|
||||
<setting id="play/setYear">true</setting>
|
||||
<setting id="play/setYearFirstPublished">true</setting>
|
||||
|
||||
<!-- Settings for the detail view of an proceedings publication -->
|
||||
<setting id="proceedings/setImage">true</setting>
|
||||
<setting id="proceedings/setImageCaption">true</setting>
|
||||
|
|
@ -303,6 +354,8 @@
|
|||
<setting id="series/setEditors">true</setting>
|
||||
<setting id="series/setVolumes">true</setting>
|
||||
|
||||
|
||||
|
||||
<!-- Settings for the detail view of a working paper -->
|
||||
<setting id="workingPaper/setImage">true</setting>
|
||||
<setting id="workingPaper/setImageCaption">true</setting>
|
||||
|
|
|
|||
|
|
@ -89,6 +89,14 @@ This file defines the format for bibliographic references in lists.
|
|||
<authors after=" "/><year before=" (" after=") "/><title/><edition before=", "/><publisher before=", "/><misc before=", "/>
|
||||
</bibrefMonographFormat>
|
||||
|
||||
<bibrefMovieFormat>
|
||||
<authors after=" "/><year before=" (" after=") "/><title/><place before=", "/><organization before=": "/><series /><number before=" "/><misc before=", "/>
|
||||
</bibrefMovieFormat>
|
||||
|
||||
<bibrefPlayFormat>
|
||||
<authors after=" "/><year before=" (" after=") "/><title/><edition before=", "/><publisher before=", "/><misc before=", "/>
|
||||
</bibrefPlayFormat>
|
||||
|
||||
<bibrefProceedingsFormat>
|
||||
<title/><year before=" (" after=") " ifEmpty=" "/><publisher after=". "/><misc after=". "/><series after=". "/>
|
||||
</bibrefProceedingsFormat>
|
||||
|
|
|
|||
|
|
@ -52,6 +52,8 @@
|
|||
<xsl:import href="SciPublications/Review.xsl"/>
|
||||
<xsl:import href="SciPublications/ResearchReport.xsl"/>
|
||||
<xsl:import href="SciPublications/SciAuthor.xsl"/>
|
||||
<xsl:import href="SciPublications/SciPublicationsMovie.xsl"/>
|
||||
<xsl:import href="SciPublications/SciPublicationsPlay.xsl"/>
|
||||
<xsl:import href="SciPublications/Series.xsl"/>
|
||||
<xsl:import href="SciPublications/UnPublished.xsl"/>
|
||||
<xsl:import href="SciPublications/WorkingPaper.xsl"/>
|
||||
|
|
|
|||
|
|
@ -60,7 +60,8 @@
|
|||
|
||||
<!-- DE Bild -->
|
||||
<!-- EN image -->
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Proceedings']" mode="image">
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Proceedings']"
|
||||
mode="image">
|
||||
|
||||
<!-- DE Hole alle benötigten Einstellungen-->
|
||||
<!-- EN Getting all needed setting-->
|
||||
|
|
@ -102,7 +103,9 @@
|
|||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="CT_Proceedings_graphics" match="cms:item[objectType='com.arsdigita.cms.contenttypes.Proceedings']" mode="detailed_view">
|
||||
<xsl:template name="CT_Proceedings_graphics"
|
||||
match="cms:item[objectType='com.arsdigita.cms.contenttypes.Proceedings']"
|
||||
mode="detailed_view">
|
||||
|
||||
<xsl:variable name="setAbstract">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
|
|
|
|||
|
|
@ -0,0 +1,574 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE stylesheet [<!ENTITY nbsp ' '>]>
|
||||
|
||||
<!--
|
||||
Copyright 2014 Jens Pelzetter
|
||||
|
||||
|
||||
This file is part of Mandalay.
|
||||
|
||||
Mandalay is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Mandalay is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Mandalay. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||
xmlns:nav="http://ccm.redhat.com/navigation"
|
||||
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||
xmlns:mandalay="http://mandalay.quasiweb.de"
|
||||
exclude-result-prefixes="xsl bebop cms nav"
|
||||
version="1.0">
|
||||
|
||||
<!--
|
||||
|
||||
*************************************************
|
||||
** Templates for the SciPublicationsMovie type **
|
||||
*************************************************
|
||||
-->
|
||||
|
||||
<!--
|
||||
Lead View
|
||||
-->
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciPublicationsMovie']"
|
||||
mode="lead">
|
||||
<xsl:variable name="setLeadText">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setLeadText'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:if test="./lead and ($setLeadText = 'true')">
|
||||
<div class="lead">
|
||||
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
|
||||
</div>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Image -->
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciPublicationsMovie']"
|
||||
mode="image">
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<!-- Detail view -->
|
||||
<xsl:template name="CT_SciPublicationsMovie_graphics"
|
||||
match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciPublicationsMovie']"
|
||||
mode="detailed_view">
|
||||
<xsl:variable name="setImage">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setImage'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setImageCaption">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setImageCaption'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setImageMaxHeight">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setImageMaxHeight'"/>
|
||||
<xsl:with-param name="default" select="''"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setImageMaxWidth">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setImageMaxWidth'"/>
|
||||
<xsl:with-param name="default" select="''"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="setAbstract">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setAbstract'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setAuthors">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setAuthors'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setAssignedTerms">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'movie/setAssignedTerms'" />
|
||||
<xsl:with-param name="default" select="'false'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setDirector">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'movie/setDirector'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setLanguageOfPublication">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'movie/setLanguageOfPublication'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setMisc">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setMisc'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setNumber">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setNumber'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setNumberOfPages">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setNumberOfPages'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setOrganization">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setPages'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setPlace">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setPlace'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setProductionCompany">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setProductionCompany'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setSeries">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setSeries'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setSeriesLink">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setSeriesLink'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setSeriesVolume">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setSeriesVolume'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setYear">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'movie/setYear'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setYearFirstPublished">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'movie/setYearFirstPublished'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
||||
<div class="mainBody publication publicationDetails publicationGreyLiteratureDetails">
|
||||
<xsl:if test="$setImage = 'true'">
|
||||
<xsl:call-template name="mandalay:imageAttachment">
|
||||
<xsl:with-param name="showCaption" select="$setImageCaption" />
|
||||
<xsl:with-param name="maxHeight" select="$setImageMaxHeight" />
|
||||
<xsl:with-param name="maxWidth" select="$setImageMaxWidth" />
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
|
||||
<dl>
|
||||
<xsl:if test="($setAuthors = 'true') and (string-length(./authors) > 0)">
|
||||
<xsl:call-template name="scipublicationsAuthors">
|
||||
<xsl:with-param name="authors" select="./authors/author"/>
|
||||
<xsl:with-param name="authorText">
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'movie/author'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
<xsl:with-param name="authorsText">
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'movie/authors'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="($setDirector = 'true') and (string-length(./director) > 0)">
|
||||
<xsl:call-template name="scipublicationsAuthors">
|
||||
<xsl:with-param name="authors" select="./director"/>
|
||||
<xsl:with-param name="authorText">
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'movie/director'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
<xsl:with-param name="authorsText">
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'movie/director'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'movie/year'"/>
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./yearOfPublication"/>
|
||||
</dd>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="($setYearFirstPublished = 'true') and (string-length(./yearFirstPublished) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'monograph/yearFirstPublished'"/>
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./yearFirstPublished" />
|
||||
</dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="($setLanguageOfPublication = 'true') and (string-length(./languageOfPublication) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'movie/languageOfPublication'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:variable name="langText">
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'languageCodes'" />
|
||||
<xsl:with-param name="id" select="./languageOfPublication" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="(string-length($langText) > 0) and (contains($langText, 'Missing Translation') = false())">
|
||||
<xsl:value-of select="$langText"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="./languageOfPublication"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</dd>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="($setProductionCompany = 'true') and (string-length(./productionCompany/title) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'movie/productionCompany'"/>
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./productionCompany/title"/>
|
||||
</dd>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="($setOrganization = 'true') and (string-length(./organization/title) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'movie/organization'"/>
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./organization/title"/>
|
||||
</dd>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="($setPlace = 'true') and (string-length(./place) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'movie/place'"/>
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./place"/>
|
||||
</dd>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="($setNumber = 'true') and (string-length(./number) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'movie/number'"/>
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./number"/>
|
||||
</dd>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="($setNumberOfPages = 'true') and (string-length(./numberOfPages) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'movie/numberOfPages'"/>
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./numberOfPages"/>
|
||||
</dd>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="($setSeries = 'true') and (string-length(./series) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'movie/series'"/>
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$setSeriesLink = 'true'">
|
||||
<a>
|
||||
<xsl:attribute name="href">/redirect/?oid=<xsl:value-of select="./series/series/@oid" /></xsl:attribute>
|
||||
<xsl:value-of select="./series/series/title" />
|
||||
|
||||
<xsl:if test="$setSeriesVolume = 'true'">
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'movie/seriesVolumePre'" />
|
||||
</xsl:call-template>
|
||||
<xsl:value-of select="./series/series/@volume" />
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'movie/seriesVolumePost'" />
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="./series/series/title" />
|
||||
<xsl:if test="$setSeriesVolume = 'true'">
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'movie/seriesVolumePre'" />
|
||||
</xsl:call-template>
|
||||
<xsl:value-of select="./series/series/@volume" />
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'movie/seriesVolumePost'" />
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="$setAssignedTerms = 'true'">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'assignedTerms'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:call-template name="scipublications_assigned_terms"/>
|
||||
</dd>
|
||||
</xsl:if>
|
||||
</dl>
|
||||
|
||||
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) > 0)">
|
||||
<div class="publicationAbstract">
|
||||
<h3>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'movie/abstract'"/>
|
||||
</xsl:call-template>
|
||||
</h3>
|
||||
<div class="abstract">
|
||||
<xsl:value-of disable-output-escaping="yes" select="./abstract" />
|
||||
</div>
|
||||
</div>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="($setMisc = 'true') and (string-length(normalize-space(./misc)) > 0)">
|
||||
<div class="publicationMisc">
|
||||
<h3>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'movie/misc'"/>
|
||||
</xsl:call-template>
|
||||
</h3>
|
||||
<xsl:value-of disable-output-escaping="yes"
|
||||
select="./misc"/>
|
||||
</div>
|
||||
</xsl:if>
|
||||
|
||||
</div>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<!-- List View -->
|
||||
|
||||
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.SciPublicationsMovie']"
|
||||
mode="list_view">
|
||||
<xsl:param name="useRelativeUrl" select="'false'"/>
|
||||
<xsl:call-template name="CT_SciPublicationsMovie_List">
|
||||
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.SciPublicationsMovie']"
|
||||
mode="list_view">
|
||||
<xsl:param name="useRelativeUrl" select="'false'"/>
|
||||
<xsl:call-template name="CT_SciPublicationsMovie_List">
|
||||
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="CT_SciPublicationsMovie_List"
|
||||
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.SciPublicationsMovie']"
|
||||
mode="list_view">
|
||||
<xsl:param name="useRelativeUrl" select="'false'"/>
|
||||
|
||||
<!-- EN Get all settings needed -->
|
||||
<xsl:variable name="formatDefFile">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'formatDefFile'"/>
|
||||
<xsl:with-param name="default" select="'SciPublicationsDefaultFormat.xml'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setLinkToDetails">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'listView/setLinkToDetails'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setLeadText">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'listView/setLeadText'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setLeadTextLength">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'listView/setLeadTextLength'"/>
|
||||
<xsl:with-param name="default" select="'0'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setMoreButton">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'listView/setMoreButton'"/>
|
||||
<xsl:with-param name="default" select="'false'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
||||
<!--
|
||||
Process authors first, and store the result (complete author part)
|
||||
in a variable. The format for the authors part is defined in a
|
||||
seperate XML file, which is also processed
|
||||
here.
|
||||
-->
|
||||
<xsl:variable name="authors">
|
||||
<xsl:for-each select="./authors/author">
|
||||
<xsl:sort select="./@order" data-type="number"/>
|
||||
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefAuthorFormat">
|
||||
<xsl:with-param name="surname" select="./surname"/>
|
||||
<xsl:with-param name="givenName" select="./givenname"/>
|
||||
<xsl:with-param name="isEditor" select="./@isEditor"/>
|
||||
<xsl:with-param name="authorsCount" select="count(../author)"/>
|
||||
<xsl:with-param name="position" select="position()"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="director">
|
||||
<xsl:for-each select="./director">
|
||||
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefAuthorFormat">
|
||||
<xsl:with-param name="surname" select="./surname"/>
|
||||
<xsl:with-param name="givenName" select="./givenname"/>
|
||||
<xsl:with-param name="isEditor" select="'false'"/>
|
||||
<xsl:with-param name="authorsCount" select="count(../director)"/>
|
||||
<xsl:with-param name="position" select="position()"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
|
||||
<!--
|
||||
Procecess the format specification and use the values from the XML
|
||||
-->
|
||||
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefMovieFormat">
|
||||
<xsl:with-param name="authors" select="$authors"/>
|
||||
<xsl:with-param name="director" select="$director"/>
|
||||
<xsl:with-param name="misc" select="./misc"/>
|
||||
<xsl:with-param name="number" select="./number"/>
|
||||
<xsl:with-param name="numberOfPages" select="./numberOfPages"/>
|
||||
<xsl:with-param name="organization" select="./organization/title"/>
|
||||
<xsl:with-param name="place" select="./place"/>
|
||||
<xsl:with-param name="productionCompany" select="./productionCompany/title"/>
|
||||
<xsl:with-param name="series" select="./series/series/title"/>
|
||||
<xsl:with-param name="title" select="./title"/>
|
||||
<xsl:with-param name="year" select="./yearOfPublication"/>
|
||||
<xsl:with-param name="oid" select="./@oid"/>
|
||||
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- link view -->
|
||||
<xsl:template
|
||||
name="CT_WorkingPaper_Link"
|
||||
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.SciPublicationsMovie']"
|
||||
mode="link_view">
|
||||
<!-- Simply call template for Publications, because there is not difference for list view between these
|
||||
two types -->
|
||||
<xsl:call-template name="CT_Publication_Link"/>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,613 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE stylesheet [<!ENTITY nbsp ' '>]>
|
||||
|
||||
<!--
|
||||
Copyright 2014 Jens Pelzetter
|
||||
|
||||
|
||||
This file is part of Mandalay.
|
||||
|
||||
Mandalay is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Mandalay is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Mandalay. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||
xmlns:nav="http://ccm.redhat.com/navigation"
|
||||
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||
xmlns:mandalay="http://mandalay.quasiweb.de"
|
||||
exclude-result-prefixes="xsl bebop cms nav"
|
||||
version="1.0">
|
||||
|
||||
<!--
|
||||
***************************************
|
||||
** Templates for SciPublicationsPlay **
|
||||
***************************************
|
||||
-->
|
||||
|
||||
<!-- Lead view -->
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciPublicationsPlay']"
|
||||
mode="lead">
|
||||
<xsl:variable name="setLeadText">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'play/setLeadText'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:if test="./lead and $setLeadText = 'true'">
|
||||
<div class="lead">
|
||||
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
|
||||
</div>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Image view -->
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciPublicationsPlay']"
|
||||
mode="image">
|
||||
<xsl:variable name="setImage">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'play/setImage'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setImageMaxHeight">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'play/setImageMaxHeight'"/>
|
||||
<xsl:with-param name="default" select="''"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setImageMaxWidth">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'play/setImageMaxWidth'"/>
|
||||
<xsl:with-param name="default" select="''"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setImageCaption">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="setting" select="'play/setImageCaption'"/>
|
||||
<xsl:with-param name="default" select="'true'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:if test="$setImage = 'true'">
|
||||
<xsl:call-template name="mandalay:imageAttachment">
|
||||
<xsl:with-param name="showCaption" select="$setImageCaption"/>
|
||||
<xsl:with-param name="maxHeight" select="$setImageMaxHeight" />
|
||||
<xsl:with-param name="maxWidth" select="$setImageMaxWidth" />
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="CT_SciPublicationsPlay_graphics"
|
||||
match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciPublicationsPlay']"
|
||||
mode="detailed_view">
|
||||
<xsl:variable name="setAbstract">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setAbstract'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setAssignedTerms">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setAssignedTerms'" />
|
||||
<xsl:with-param name="default" select="'false'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setAuthors">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setAuthors'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setEdition">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setEdition'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setFirstProductionTheatre">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setFirstProductionTheatre'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setFirstProductionYear">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setFirstYear'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setIsbn">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setIsbn'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setLanguageOfPublication">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setLanguageOfPublication'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setMisc">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setMisc'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setNumberOfPages">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setNumberOfPages'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setNumberOfVolumes">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setNumberOfVolumes'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setPublisher">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setPublisher'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setReviewed">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setReviewed'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setSeries">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setSeries'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setSeriesLink">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setSeriesLink'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setSeriesVolume">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setSeriesVolume'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setUrl">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setUrl'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setVolume">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setVolume'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setYear">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setYear'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="setYearFirstPublished">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'play/setYearFirstPublished'" />
|
||||
<xsl:with-param name="default" select="'true'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="formatDefFile">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'formatDefFile'" />
|
||||
<xsl:with-param name="default" select="'SciPublicationsDefaultFormat.xml'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
||||
<div class="mainBody publication publicationDetails publicationPlayDetails">
|
||||
|
||||
<dl>
|
||||
<xsl:if test="($setAuthors = 'true') and (string-length(./authors) > 0)">
|
||||
<xsl:call-template name="scipublicationsAuthors">
|
||||
<xsl:with-param name="authors" select="./authors/author" />
|
||||
<xsl:with-param name="authorText">
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/author'" />
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
<xsl:with-param name="authorsText">
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/authors'" />
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/year'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./yearOfPublication" />
|
||||
</dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="($setYearFirstPublished = 'true') and (string-length(./yearFirstPublished) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'play/yearFirstPublished'"/>
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./yearFirstPublished" />
|
||||
</dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="($setFirstProductionYear = 'true') and (string-length(./firstProductionYear) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/firstProductionYear'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./firstProductionYear"/>
|
||||
</dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="($setFirstProductionTheatre = 'true') and (string-length(./firstProductionTheatre) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/firstProductionTheatre'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./firstProductionTheatre/title"/>
|
||||
</dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="($setLanguageOfPublication = 'true') and (string-length(./languageOfPublication) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/languageOfPublication'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:variable name="langText">
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'languageCodes'" />
|
||||
<xsl:with-param name="id" select="./languageOfPublication" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="(string-length($langText) > 0) and (contains($langText, 'Missing Translation') = false())">
|
||||
<xsl:value-of select="$langText"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="./languageOfPublication"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="($setPublisher = 'true') and (string-length(./publisher) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/publisher'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:variable name="publisherName" select="./publisher/publisherName" />
|
||||
<xsl:variable name="place" select="./publisher/place" />
|
||||
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefPublisherFormat">
|
||||
<xsl:with-param name="name" select="$publisherName" />
|
||||
<xsl:with-param name="place" select="$place" />
|
||||
</xsl:apply-templates>
|
||||
</dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="($setIsbn = 'true') and (string-length(./isbn) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/isbn'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./isbn" />
|
||||
</dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="($setUrl = 'true') and (string-length(./url) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/url'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="./url" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="./url" />
|
||||
</a>
|
||||
</dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="($setVolume = 'true') and (string-length(./volume) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/volume'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./volume" />
|
||||
</dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="($setNumberOfVolumes = 'true') and (string-length(./numberOfVolumes) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/numberOfVolumes'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./numberOfVolumes" />
|
||||
</dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="($setNumberOfPages = 'true') and (string-length(./numberOfPages) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/numberOfPages'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./numberOfPages" />
|
||||
</dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="($setEdition = 'true') and (string-length(./edition) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/edition'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="./edition" />
|
||||
</dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="($setReviewed = 'true') and (string-length(./reviewed) > 0) and (./reviewed = 'true')">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/reviewed'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd><EFBFBD></dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="($setSeries = 'true') and (string-length(./series/series) > 0)">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/series'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$setSeriesLink = 'true'">
|
||||
<a>
|
||||
<xsl:attribute name="href">/redirect/?oid=<xsl:value-of select="./series/series/@oid" /></xsl:attribute>
|
||||
<xsl:value-of select="./series/series/title" />
|
||||
|
||||
<xsl:if test="$setSeriesVolume = 'true'">
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/seriesVolumePre'" />
|
||||
</xsl:call-template>
|
||||
<xsl:value-of select="./series/series/@volume" />
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/seriesVolumePost'" />
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="./series/series/title" />
|
||||
<xsl:if test="$setSeriesVolume = 'true'">
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/seriesVolumePre'" />
|
||||
</xsl:call-template>
|
||||
<xsl:value-of select="./series/series/@volume" />
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/seriesVolumePost'" />
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</dd>
|
||||
</xsl:if>
|
||||
<xsl:if test="$setAssignedTerms = 'true'">
|
||||
<dt>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'"/>
|
||||
<xsl:with-param name="id" select="'assignedTerms'" />
|
||||
</xsl:call-template>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:call-template name="scipublications_assigned_terms"/>
|
||||
|
||||
|
||||
</dd>
|
||||
</xsl:if>
|
||||
</dl>
|
||||
|
||||
<xsl:if test="($setAbstract = 'true') and (string-length(normalize-space(./abstract)) > 0)">
|
||||
<div class="publicationAbstract">
|
||||
<h3>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/abstract'" />
|
||||
</xsl:call-template>
|
||||
</h3>
|
||||
<div class="abstract">
|
||||
<xsl:value-of disable-output-escaping="yes" select="./abstract" />
|
||||
</div>
|
||||
</div>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="($setMisc = 'true') and (string-length(normalize-space(./misc)) > 0)">
|
||||
<div class="publicationMisc">
|
||||
<h3>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="id" select="'play/misc'" />
|
||||
</xsl:call-template>
|
||||
</h3>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./misc" />
|
||||
</div>
|
||||
</xsl:if>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<!-- List View -->
|
||||
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.SciPublicationsPlay']"
|
||||
mode="list_view">
|
||||
<xsl:param name="useRelativeUrl" select="'false'" />
|
||||
<xsl:call-template name="CT_Play_List">
|
||||
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.SciPublicationsPlay']"
|
||||
mode="list_view">
|
||||
<xsl:param name="useRelativeUrl" select="'false'" />
|
||||
<xsl:call-template name="CT_Play_List">
|
||||
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="CT_Play_List"
|
||||
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.SciPublicationsPlay']"
|
||||
mode="list_view">
|
||||
<xsl:param name="useRelativeUrl" select="'false'" />
|
||||
<xsl:variable name="formatDefFile">
|
||||
<xsl:call-template name="mandalay:getSetting">
|
||||
<xsl:with-param name="module" select="'SciPublications'" />
|
||||
<xsl:with-param name="setting" select="'formatDefFile'" />
|
||||
<xsl:with-param name="default" select="'SciPublicationsDefaultFormat.xml'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
||||
<!--
|
||||
Process authors first, and store the result (complete author part)
|
||||
in a variable. The format for the authors part is defined in a
|
||||
seperate XML file, which is also processed
|
||||
here.
|
||||
-->
|
||||
<xsl:variable name="authors">
|
||||
<xsl:for-each select="./authors/author">
|
||||
<xsl:sort select="./@order" data-type="number" />
|
||||
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefAuthorFormat">
|
||||
<xsl:with-param name="surname" select="./surname" />
|
||||
<xsl:with-param name="givenName" select="./givenname" />
|
||||
<xsl:with-param name="isEditor" select="@isEditor" />
|
||||
<xsl:with-param name="authorsCount" select="count(../author)" />
|
||||
<xsl:with-param name="position" select="position()" />
|
||||
</xsl:apply-templates>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
|
||||
<!--
|
||||
Process publisher part, and store in a variable. The format for
|
||||
the publisher part is definied in a separate XML file which also
|
||||
processed here.
|
||||
-->
|
||||
<xsl:variable name="publisher">
|
||||
<xsl:for-each select="./publisher">
|
||||
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefPublisherFormat">
|
||||
<xsl:with-param name="name" select="./publisherName" />
|
||||
<xsl:with-param name="place" select="./place" />
|
||||
</xsl:apply-templates>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
|
||||
<!-- Call template for standard format -->
|
||||
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefPlayFormat">
|
||||
<xsl:with-param name="authors" select="$authors" />
|
||||
<xsl:with-param name="edition" select="./edition" />
|
||||
<xsl:with-param name="firstProductionTheatre" select="./firstProductionTheatre/title"/>
|
||||
<xsl:with-param name="firstProductionYear" select="./firstProductionYear"/>
|
||||
<xsl:with-param name="isbn" select="./isbn" />
|
||||
<xsl:with-param name="misc" select="./misc" />
|
||||
<xsl:with-param name="numberOfPages" select="./numberofpages" />
|
||||
<xsl:with-param name="numberOfVolumes" select="./numberofvolumes" />
|
||||
<xsl:with-param name="publisher" select="$publisher" />
|
||||
<xsl:with-param name="reviewed" select="./reviewed" />
|
||||
<xsl:with-param name="series" select="./series/series/title"/>
|
||||
<xsl:with-param name="seriesVolume" select="./series/series/@volume"/>
|
||||
<xsl:with-param name="title" select="./title" />
|
||||
<xsl:with-param name="volume" select="./volume" />
|
||||
<xsl:with-param name="year" select="./yearOfPublication" />
|
||||
<xsl:with-param name="oid" select="./@oid" />
|
||||
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
|
||||
</xsl:apply-templates>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<!-- Link view -->
|
||||
<xsl:template name="CT_Play_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.SciPublicationsPlay']" mode="link_view">
|
||||
<!-- Simply call template for Publications with publisher, because there is
|
||||
no difference for list view between these
|
||||
two types -->
|
||||
<xsl:call-template name="CT_PublicationWithPublisher_Link" />
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -16,3 +16,4 @@ publications.dramaticarts.ui.movie.production_company.no_company_selected=No pro
|
|||
publications.dramaticarts.ui.play.production_theater.none=No theatre assigned
|
||||
publications.dramaticarts.ui.play.production_theater.remove=Remove
|
||||
publications.dramaticarts.ui.play.production_theater.remove.confirm=Are you sure to remove the assigned theatre?
|
||||
publications.dramaticarts.ui.play.productiontheater=First production theathre
|
||||
|
|
|
|||
|
|
@ -16,3 +16,4 @@ publications.dramaticarts.ui.movie.production_company.no_company_selected=Keine
|
|||
publications.dramaticarts.ui.play.production_theater.none=Kein Theater zugewiesen
|
||||
publications.dramaticarts.ui.play.production_theater.remove=Entfernen
|
||||
publications.dramaticarts.ui.play.production_theater.remove.confirm=Sind Sie sicher, dass Sie das zugewiesene Theater entfernen wollen?
|
||||
publications.dramaticarts.ui.play.productiontheater=Erstes Theater
|
||||
|
|
|
|||
|
|
@ -147,8 +147,8 @@ public class SciPublicationsMovieDirectorSheet
|
|||
case 0:
|
||||
return director.getFullName();
|
||||
case 1:
|
||||
return globalisationUtil.globalise(
|
||||
"publications.dramaticarts.ui.movie.director.remove");
|
||||
return new Label(globalisationUtil.globalise(
|
||||
"publications.dramaticarts.ui.movie.director.remove"));
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
|
@ -234,12 +234,12 @@ public class SciPublicationsMovieDirectorSheet
|
|||
movie);
|
||||
|
||||
if (canEdit) {
|
||||
final ControlLink link = new ControlLink(value.toString());
|
||||
final ControlLink link = new ControlLink((Label)value);
|
||||
link.setConfirmation(globalisationUtil.globalise(
|
||||
"publications.dramaticarts.ui.movie.director.remove.confirm"));
|
||||
return link;
|
||||
} else {
|
||||
return new Label(value.toString());
|
||||
return (Label) value;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -146,8 +146,8 @@ public class SciPublicationsMovieProductionCompanySheet
|
|||
case 0:
|
||||
return productionCompany.getTitle();
|
||||
case 1:
|
||||
return globalisationUtil.globalise(
|
||||
"publications.dramaticarts.ui.movie.production_company.remove");
|
||||
return new Label(globalisationUtil.globalise(
|
||||
"publications.dramaticarts.ui.movie.production_company.remove"));
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
|
@ -233,12 +233,12 @@ public class SciPublicationsMovieProductionCompanySheet
|
|||
movie);
|
||||
|
||||
if (canEdit) {
|
||||
final ControlLink link = new ControlLink(value.toString());
|
||||
final ControlLink link = new ControlLink((Label) value);
|
||||
link.setConfirmation(globalisationUtil.globalise(
|
||||
"publications.dramaticarts.ui.movie.production_company.remove.confirm"));
|
||||
return link;
|
||||
} else {
|
||||
return new Label(value.toString());
|
||||
return (Label) value;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -145,8 +145,8 @@ public class SciPublicationsPlayProductionTheaterSheet
|
|||
case 0:
|
||||
return productionTheater.getTitle();
|
||||
case 1:
|
||||
return globalisationUtil.globalise(
|
||||
"publications.dramaticarts.ui.play.production_theater.remove");
|
||||
return new Label(globalisationUtil.globalise(
|
||||
"publications.dramaticarts.ui.play.production_theater.remove"));
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
|
@ -233,12 +233,12 @@ public class SciPublicationsPlayProductionTheaterSheet
|
|||
play);
|
||||
|
||||
if (canEdit) {
|
||||
final ControlLink link = new ControlLink(value.toString());
|
||||
final ControlLink link = new ControlLink((Label) value);
|
||||
link.setConfirmation(globalisationUtil.globalise(
|
||||
"publications.dramaticarts.ui.play.production_theater.remove.confirm"));
|
||||
return link;
|
||||
} else {
|
||||
return new Label(value.toString());
|
||||
return (Label) value;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ package com.arsdigita.cms.contenttypes.ui;
|
|||
|
||||
import com.arsdigita.bebop.FormData;
|
||||
import com.arsdigita.bebop.FormProcessException;
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.bebop.event.FormInitListener;
|
||||
import com.arsdigita.bebop.event.FormProcessListener;
|
||||
import com.arsdigita.bebop.event.FormSectionEvent;
|
||||
|
|
@ -64,6 +65,7 @@ public class SciPublicationsPlayPropertyForm
|
|||
final TextField firstProdYear = new TextField(firstProdYearParam);
|
||||
firstProdYear.setMaxLength(4);
|
||||
firstProdYear.setLabel(globalisationUtil.globalise("publications.dramaticarts.ui.play.first_production_year"));
|
||||
add(new Label(globalisationUtil.globalise("publications.dramaticarts.ui.play.first_production_year")));
|
||||
add(firstProdYear);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue