Backported some changes and improvments from the Mandalay-YAML fork back the orginal mandalay. Also updated the Mandaly-YAML branch.

git-svn-id: https://svn.libreccm.org/ccm/trunk@2534 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-02-19 14:17:06 +00:00
parent 406f531a45
commit 733a08faa1
26 changed files with 6217 additions and 5397 deletions

View File

@ -243,6 +243,7 @@
<xsl:template match="body">
<body>
<xsl:call-template name="mandalay:setIdAndClass"/>
<span id="top"/>
<a href="#startcontent" accesskey="S" class="ym-skip">
<xsl:attribute name="title">
<xsl:call-template name="mandalay:getStaticText">

View File

@ -65,6 +65,7 @@
<line id="articleInCollectedVolume/chapter">Kapitel</line>
<line id="articleInCollectedVolume/collectedVolume">In Sammelband</line>
<line id="articleInCollectedVolume/isbn">ISBN</line>
<line id="articleInCollectedVolume/languageOfPublication">Sprache</line>
<line id="articleInCollectedVolume/misc"></line>
<line id="articleInCollectedVolume/pages">Seiten</line>
<line id="articleInCollectedVolume/pagesSeparator"> bis </line>
@ -77,16 +78,21 @@
<line id="articleInCollectedVolume/seriesVolumePost"></line>
<line id="articleInCollectedVolume/url">Weitere Informationen</line>
<line id="articleInCollectedVolume/year">Jahr</line>
<line id="articleInCollectedVolume/yearFirstPublished">Erste Veröffentlichung</line>
<line id="articleInJournal/abstract">Zusammenfassung</line>
<line id="articleInJournal/articles">Beiträge</line>
<line id="articleInJournal/authors">Autorinnen/Autoren</line>
<line id="articleInJournal/author">Autorin/Autor</line>
<line id="articleInJournal/issn">ISSN</line>
<line id="articleInJournal/issue">Ausgabe</line>
<line id="articleInJournal/journal">Journal</line>
<line id="articleInJournal/languageOfPublication">Sprache</line>
<line id="articleInJournal/misc"></line>
<line id="articleInJournal/pages">Seiten</line>
<line id="articleInJournal/pagesSeparator"> bis </line>
<line id="articleInJournal/publicationDate">Publikationsdatum</line>
<line id="articleInJournal/reviewed">Referierter Artikel</line>
<line id="articleInJournal/url">Weitere Informationen</line>
<line id="articleInJournal/issue">Ausgabe</line>
<line id="articleInJournal/volume">Jahrgang</line>
@ -100,6 +106,7 @@
<line id="collectedVolume/author">Herausgeberin/Herausgeber</line>
<line id="collectedVolume/edition">Auflage</line>
<line id="collectedVolume/isbn">ISBN</line>
<line id="collectedVolume/languageOfPublication">Sprache</line>
<line id="collectedVolume/misc"></line>
<line id="collectedVolume/numberOfPages">Anzahl der Seiten</line>
<line id="collectedVolume/numberOfVolumes">Anzahl der Bände</line>
@ -111,10 +118,12 @@
<line id="collectedVolume/url">Weitere Informationen</line>
<line id="collectedVolume/volume">Band</line>
<line id="collectedVolume/year">Jahr</line>
<line id="collectedVolume/yearFirstPublished">Erste Veröffentlichung</line>
<line id="expertise/abstract">Zusammenfassung</line>
<line id="expertise/authors">Autorinnen/Autoren</line>
<line id="expertise/author">Autorin/Autor</line>
<line id="expertise/languageOfPublication">Sprache</line>
<line id="expertise/misc"></line>
<line id="expertise/numberOfPages">Anzahl der Seiten</line>
<line id="expertise/orderer">Auftraggeber</line>
@ -125,10 +134,12 @@
<line id="expertise/seriesPost"></line>
<line id="expertise/url">Weitere Informationen</line>
<line id="expertise/year">Jahr</line>
<line id="expertise/yearFirstPublished">Erste Veröffentlichung</line>
<line id="greyLiterature/abstract">Zusammenfassung</line>
<line id="greyLiterature/authors">Autorinnen/Autoren</line>
<line id="greyLiterature/author">Autorin/Autor</line>
<line id="greyLiterature/languageOfPublication">Sprache</line>
<line id="greyLiterature/misc"></line>
<line id="greyLiterature/number">Nummer</line>
<line id="greyLiterature/numberOfPages">Anzahl der Seiten</line>
@ -141,10 +152,12 @@
<line id="greyLiterature/seriesPost"></line>
<line id="greyLiterature/url">Weitere Informationen</line>
<line id="greyLiterature/year">Jahr</line>
<line id="greyLiterature/yearFirstPublished">Erste Veröffentlichung</line>
<line id="inProceedings/abstract">Zusammenfassung</line>
<line id="inProceedings/authors">Autorinnen/Autoren</line>
<line id="inProceedings/author">Autorin/Autor</line>
<line id="inProceedings/languageOfPublication">Sprache</line>
<line id="inProceedings/misc"></line>
<line id="inProceedings/pages">Seiten</line>
<line id="inProceedings/pagesSeparator"> bis </line>
@ -154,12 +167,14 @@
<line id="inProceedings/seriesPost"></line>
<line id="inProceedings/url">Weitere Informationen</line>
<line id="inProceedings/year">Jahr</line>
<line id="inProceedings/yearFirstPublished">Erste Veröffentlichung</line>
<line id="internetArticle/abstract">Zusammenfassung</line>
<line id="internetArticle/authors">Autorinnen/Autoren</line>
<line id="internetArticle/authors">Autorin/Autor</line>
<line id="internetArticle/edition">Auflage</line>
<line id="internetArticle/issn">ISSN</line>
<line id="internetArticle/languageOfPublication">Sprache</line>
<line id="internetArticle/misc"></line>
<line id="internetArticle/number">Nummer</line>
<line id="internetArticle/numberOfPages">Anzahl der Seiten</line>
@ -170,6 +185,7 @@
<line id="internetArticle/seriesPre"></line>
<line id="internetArticle/seriesPost"></line>
<line id="internetArticle/year">Jahr</line>
<line id="internetArticle/yearFirstPublished">Erste Veröffentlichung</line>
<line id="journal/articles">Artikel in dieser Zeitschrift</line>
<line id="journal/issn">ISSN</line>
@ -182,6 +198,7 @@
<line id="monograph/author">Autorin/Autor</line>
<line id="monograph/edition">Auflage</line>
<line id="monograph/isbn">ISBN</line>
<line id="monograph/languageOfPublication">Sprache</line>
<line id="monograph/misc"></line>
<line id="monograph/numberOfPages">Anzahl der Seiten</line>
<line id="monograph/numberOfVolumes">Anzahl der Bände</line>
@ -193,6 +210,7 @@
<line id="monograph/url">Weitere Informationen</line>
<line id="monograph/volume">Band</line>
<line id="monograph/year">Jahr</line>
<line id="monograph/yearFirstPublished">Erste Veröffentlichung</line>
<line id="proceedings/abstract">Zusammenfassung</line>
<line id="proceedings/authors">Autorinnen/Autoren</line>
@ -200,6 +218,7 @@
<line id="proceedings/dateOfConference">Termin der Konferenz</line>
<line id="proceedings/dateToOfConference"> bis </line>
<line id="proceedings/isbn">ISBN</line>
<line id="proceedings/languageOfPublication">Sprache</line>
<line id="proceedings/misc"></line>
<line id="proceedings/nameOfConference">Konferenz</line>
<line id="proceedings/numberOfVolumes">Anzahl der Bände</line>
@ -211,8 +230,9 @@
<line id="proceedings/url">Weitere Informationen</line>
<line id="proceedings/volume">Band</line>
<line id="proceedings/year">Jahr</line>
<line id="proceedings/yearFirstPublished">Erste Veröffentlichung</line>
<line id="publisher/place">Ort</line>b
<line id="publisher/place">Ort</line>
<line id="review/abstract">Zusammenfassung</line>
<line id="review/authors">Autorinnen/Autoren</line>
@ -220,12 +240,14 @@
<line id="review/issn">ISSN</line>
<line id="review/issue">Ausgabe</line>
<line id="review/journal">Zeitschrift</line>
<line id="review/languageOfPublication">Sprache</line>
<line id="review/misc"></line>
<line id="review/pages">Seiten</line>
<line id="review/publicationDate">Erscheinungsdatum</line>
<line id="review/url">Weitere Informationen</line>
<line id="review/volume">Jahrgang</line>
<line id="review/year">Jahr</line>
<line id="review/yearFirstPublished">Erste Veröffentlichung</line>
<line id="series/abstract">Über die Reihe</line>
<line id="series/editors">Herausgeber der Reihe</line>
@ -240,6 +262,7 @@
<line id="workingPaper/abstract">Zusammenfassung</line>
<line id="workingPaper/author">Autorin/Autor</line>
<line id="workingPaper/authors">Autorinnen/Autoren</line>
<line id="workingPaper/languageOfPublication">Sprache</line>
<line id="workingPaper/misc"></line>
<line id="workingPaper/number">Nummer</line>
<line id="workingPaper/numberOfPages">Anzahl der Seiten</line>
@ -249,5 +272,6 @@
<line id="workingPaper/seriesPre"></line>
<line id="workingPaper/seriesPost"></line>
<line id="workingPaper/year">Jahr</line>
<line id="workingPaper/yearFirstPublished">Erste Veröffentlichung</line>
</translations>

View File

@ -41,7 +41,7 @@
<line id="SciPublicationsListyearOfPublication">Erscheinungsjahr</line>
<line id="SciPublicationsListyearOfPublicationAll">Alle</line>
<line id="SciPublicationsListSortBy">Sortieren nach</line>
s<line id="SciPublicationsListSortBytitle">Titel</line>
<line id="SciPublicationsListSortBytitle">Titel</line>
<line id="SciPublicationsListSortByyearAsc">Jahr (aufsteigend)</line>
<line id="SciPublicationsListSortByyearDesc">Jahr (absteigend)</line>
<line id="SciPublicationsListSortByauthors">Autoren</line>

View File

@ -63,6 +63,7 @@
<line id="articleInCollectedVolume/chapter">Chapter</line>
<line id="articleInCollectedVolume/collectedVolume">Collected volume</line>
<line id="articleInCollectedVolume/isbn">ISBN</line>
<line id="articleInCollectedVolume/languageOfPublication">Language</line>
<line id="articleInCollectedVolume/misc"></line>
<line id="articleInCollectedVolume/pages">Pages</line>
<line id="articleInCollectedVolume/pagesSeparator"> to </line>
@ -75,16 +76,20 @@
<line id="articleInCollectedVolume/seriesPost"></line>
<line id="articleInCollectedVolume/url">Further informations</line>
<line id="articleInCollectedVolume/year">Year</line>
<line id="articleInCollectedVolume/yearFirstPublished">First published</line>
<line id="articleInJournal/abstract">Abstract</line>
<line id="articleInJournal/articles">Articles</line>
<line id="articleInJournal/authors">Authors</line>
<line id="articleInJournal/author">Author</line>
<line id="articleInJournal/issn">ISSN</line>
<line id="articleInJournal/journal">Journal</line>
<line id="articleInJournal/languageOfPublication">Language</line>
<line id="articleInJournal/misc"></line>
<line id="articleInJournal/pages">Pages</line>
<line id="articleInJournal/pagesSeparator"> to </line>
<line id="articleInJournal/publicationDate">Publication date</line>
<line id="articleInJournal/reviewed">Reviewed article</line>
<line id="articleInJournal/url">Further informations</line>
<line id="articleInJournal/issue">Issue</line>
<line id="articleInJournal/volume">Volume</line>
@ -98,6 +103,7 @@
<line id="collectedVolume/author">Editor</line>
<line id="collectedVolume/edition">Edition</line>
<line id="collectedVolume/isbn">ISBN</line>
<line id="collectedVolume/languageOfPublication">Language</line>
<line id="collectedVolume/misc"></line>
<line id="collectedVolume/numberOfPages">Number of pages</line>
<line id="collectedVolume/numberOfVolumes">Number of volumes</line>
@ -109,10 +115,12 @@
<line id="collectedVolume/url">Further informations</line>
<line id="collectedVolume/volume">Volume</line>
<line id="collectedVolume/year">Year</line>
<line id="collectedVolume/yearFirstPublished">First published</line>
<line id="expertise/abstract">Abstract</line>
<line id="expertise/authors">Authors</line>
<line id="expertise/author">Author</line>
<line id="expertise/languageOfPublication">Language</line>
<line id="expertise/misc">Miscellaneous</line>
<line id="expertise/numberOfPages">Number of pages</line>
<line id="expertise/orderer">Orderer</line>
@ -123,10 +131,12 @@
<line id="expertise/seriesPost"></line>
<line id="expertise/url">Further informations</line>
<line id="expertise/year">Year</line>
<line id="expertise/yearFirstPublished">First published</line>
<line id="greyLiterature/abstract">Abstract</line>
<line id="greyLiterature/authors">Authors</line>
<line id="greyLiterature/author">Author</line>
<line id="greyLiterature/languageOfPublication">Language</line>
<line id="greyLiterature/misc">Miscellaneous</line>
<line id="greyLiterature/number">Number</line>
<line id="greyLiterature/numberOfPages">Number of pages</line>
@ -139,10 +149,12 @@
<line id="greyLiterature/seriesPost"></line>
<line id="greyLiterature/url">Further informations</line>
<line id="greyLiterature/year">Year</line>
<line id="greyLiterature/yearFirstPublished">First published</line>
<line id="inProceedings/abstract">Abstract</line>
<line id="inProceedings/authors">Authors</line>
<line id="inProceedings/author">Author</line>
<line id="inProceedings/languageOfPublication">Language</line>
<line id="inProceedings/misc">Miscellaneous</line>
<line id="inProceedings/pages">Pages</line>
<line id="inProceedings/proceedings">In Proceedings</line>
@ -152,12 +164,14 @@
<line id="inProceedings/url">Further informations</line>
<line id="inProceedings/volume">Volume</line>
<line id="inProceedings/year">Year</line>
<line id="inProceedings/yearFirstPublished">First published</line>
<line id="internetArticle/abstract">Abstract</line>
<line id="internetArticle/authors">Authors</line>
<line id="internetArticle/author">Author</line>
<line id="internetArticle/edition">Edition</line>
<line id="internetArticle/issn">ISSN</line>
<line id="internetArticle/languageOfPublication">Language</line>
<line id="internetArticle/misc">Miscellaneous</line>
<line id="internetArticle/number">Number</line>
<line id="internetArticle/numberOfPages">Number of pages</line>
@ -168,6 +182,7 @@
<line id="internetArticle/seriesPre"></line>
<line id="internetArticle/seriesPost"></line>
<line id="internetArticle/year">Year</line>
<line id="internetArticle/yearFirstPublished">First published</line>
<line id="journal/articles">Articles of this journal</line>
<line id="journal/issn">ISSN</line>
@ -181,6 +196,7 @@
<line id="monograph/edition">Edition</line>
<line id="monograph/isbn">ISBN</line>
<line id="monograph/misc">Miscellaneous</line>
<line id="monograph/languageOfPublication">Language</line>
<line id="monograph/numberOfPages">Number of pages</line>
<line id="monograph/numberOfVolumes">Number of volumes</line>
<line id="monograph/publisher">Publisher</line>
@ -189,12 +205,14 @@
<line id="monograph/url">Further informations</line>
<line id="monograph/volume">Volume</line>
<line id="monograph/year">Year</line>
<line id="monograph/yearFirstPublished">First published</line>
<line id="proceedings/abstract">Abstract</line>
<line id="proceedings/authors">Authors</line>
<line id="proceedings/author">Author</line>
<line id="proceedings/dateOfConference">Date of conference</line>
<line id="proceedings/isbn">ISBN</line>
<line id="proceedings/languageOfPublication">Language</line>
<line id="proceedings/misc">Miscellaneous</line>
<line id="proceedings/nameOfConference">Conference</line>
<line id="proceedings/numberOfVolumes">Number of volumes</line>
@ -208,6 +226,7 @@
<line id="proceedings/url">Further informations</line>
<line id="proceedings/volume">Volume</line>
<line id="proceedings/year">Year</line>
<line id="proceedings/yearFirstPublished">First published</line>
<line id="publisher/place">Place</line>
@ -217,12 +236,14 @@
<line id="review/issn">ISSN</line>
<line id="review/issue">Year</line>
<line id="review/journal">Journal</line>
<line id="review/languageOfPublication">Language</line>
<line id="review/misc">Miscellaneous</line>
<line id="review/pages">Pages</line>
<line id="review/publicationDate">Publication date</line>
<line id="review/url">Further informations</line>
<line id="review/volume">Volume</line>
<line id="review/year">Year</line>
<line id="review/yearFirstPublished">First published</line>
<line id="series/abstract">About the series</line>
<line id="series/editors">Editors of the series</line>
@ -232,6 +253,7 @@
<line id="workingPaper/abstract">Abstract</line>
<line id="workingPaper/author">Author</line>
<line id="workingPaper/authors">Authors</line>
<line id="workingPaper/languageOfPublication">Language</line>
<line id="workingPaper/misc">Miscellaneous</line>
<line id="workingPaper/number">Number</line>
<line id="workingPaper/numberOfPages">Number of pages</line>
@ -241,5 +263,6 @@
<line id="workingPaper/seriesPre"></line>
<line id="workingPaper/seriesPost"></line>
<line id="workingPaper/year">Year</line>
<line id="workingPaper/yearFirstPublished">First published</line>
</translations>

View File

@ -62,6 +62,7 @@
<setting id="articleInCollectedVolume/setChapter">true</setting>
<setting id="articleInCollectedVolume/setCollectedVolume">true</setting>
<setting id="articleInCollectedVolume/setIsbn">true</setting>
<setting id="articleInCollectedVolume/setLanguageOfPublication">true</setting>
<setting id="articleInCollectedVolume/setMisc">true</setting>
<setting id="articleInCollectedVolume/setPages">true</setting>
<setting id="articleInCollectedVolume/setPublisher">true</setting>
@ -71,6 +72,7 @@
<setting id="articleInCollectedVolume/setSeriesVolume">true</setting>
<setting id="articleInCollectedVolume/setUrl">true</setting>
<setting id="articleInCollectedVolume/setYear">true</setting>
<setting id="articleInCollectedVolume/setYearFirstPublished">true</setting>
<!-- Settings for the detail view of an article in a journal -->
<setting id="articleInJournal/setImage">true</setting>
@ -83,12 +85,14 @@
<setting id="articleInJournal/setIssn">true</setting>
<setting id="articleInJournal/setIssue">true</setting>
<setting id="articleInJournal/setJournal">true</setting>
<setting id="articleInJournal/setLanguageOfPublication">true</setting>
<setting id="articleInJournal/setMisc">true</setting>
<setting id="articleInJournal/setPages">true</setting>
<setting id="articleInJournal/setPublicationDate">true</setting>
<setting id="articleInJournal/setUrl">true</setting>
<setting id="articleInJournal/setVolume">true</setting>
<setting id="articleInJournal/setYear">true</setting>
<setting id="articleInJournal/setYearFirstPublished">true</setting>
<!-- Settings for the detail view of a collected volume -->
<setting id="collectedVolume/setImage">true</setting>
@ -101,6 +105,7 @@
<setting id="collectedVolume/setAuthors">true</setting>
<setting id="collectedVolume/setEdition">true</setting>
<setting id="collectedVolume/setIsbn">true</setting>
<setting id="collectedVolume/setLanguageOfPublication">true</setting>
<setting id="collectedVolume/setMisc">true</setting>
<setting id="collectedVolume/setNumberOfPages">true</setting>
<setting id="collectedVolume/setNumberOfVolumes">true</setting>
@ -111,7 +116,7 @@
<setting id="collectedVolume/setUrl">true</setting>
<setting id="collectedVolume/setVolume">true</setting>
<setting id="collectedVolume/setYear">true</setting>
<setting id="collectedVolume/setArticles">true</setting>
<setting id="collectedVolume/setYearFirstPublished">true</setting>
<!-- Settings for the detail view of an expertise -->
<setting id="expertise/setImage">true</setting>
@ -121,6 +126,7 @@
<setting id="expertise/setAbstract">true</setting>
<setting id="expertise/setAutors">true</setting>
<setting id="expertise/setLanguageOfPublication">true</setting>
<setting id="expertise/setMisc">true</setting>
<setting id="expertise/setNumberOfPages">true</setting>
<setting id="expertise/setOrderer">true</setting>
@ -131,6 +137,7 @@
<setting id="expertise/setSeriesVolume">false</setting>
<setting id="expertise/setUrl">true</setting>
<setting id="expertise/setYear">true</setting>
<setting id="expertise/setYearFirstPublished">true</setting>
<!-- Settings for the detail view of a grey literature publication -->
<setting id="greyLiterature/setImage">true</setting>
@ -140,6 +147,7 @@
<setting id="greyLiterature/setAbstract">true</setting>
<setting id="greyLiterature/setAuthors">true</setting>
<setting id="greyLiterature/setLanguageOfPublication">true</setting>
<setting id="greyLiterature/setMisc">true</setting>
<setting id="greyLiterature/setNumber">true</setting>
<setting id="greyLiterature/setNumberOfPages">true</setting>
@ -151,6 +159,7 @@
<setting id="greyLiterature/setSeriesVolume">true</setting>
<setting id="greyLiterature/setUrl">false</setting>
<setting id="greyLiterature/setYear">true</setting>
<setting id="greyLiterature/setYearFirstPublished">true</setting>
<!-- Settings for the detail view of an in proceedings publication -->
<setting id="inProceedings/setImage">true</setting>
@ -160,6 +169,7 @@
<setting id="inProceedings/setAbstract">true</setting>
<setting id="inProceedings/setAuthors">true</setting>
<setting id="inProceedings/setLanguageOfPublication">true</setting>
<setting id="inProceedings/setMisc">true</setting>
<setting id="inProceedings/setPages">true</setting>
<setting id="inProceedings/setProceedings">true</setting>
@ -168,6 +178,7 @@
<setting id="inProceedings/setSeriesVolume">true</setting>
<setting id="inProceedings/setUrl">true</setting>
<setting id="inProceedings/setYear">true</setting>
<setting id="inProceedings/setYearFirstPublished">true</setting>
<!-- Settings for the detail view of an internet article -->
<setting id="internetArticle/setImage">true</setting>
@ -179,6 +190,7 @@
<setting id="internetArticle/setAuthors">true</setting>
<setting id="internetArticle/setEdition">true</setting>
<setting id="internetArticle/setIssn">true</setting>
<setting id="internetArticle/setLanguageOfPublication">true</setting>
<setting id="internetArticle/setMisc">true</setting>
<setting id="internetArticle/setNumber">true</setting>
<setting id="internetArticle/setNumberOfPages">true</setting>
@ -189,6 +201,7 @@
<setting id="internetArticle/setSeriesLink">true</setting>
<setting id="internetArticle/setSeriesVolume">true</setting>
<setting id="internetArticle/setYear">true</setting>
<setting id="internetArticle/setYearFirstPublished">true</setting>
<!-- Settings for the detail view of a journal -->
<setting id="journal/setAbstract">true</setting>
@ -207,6 +220,7 @@
<setting id="monograph/setAuthors">true</setting>
<setting id="monograph/setEdition">true</setting>
<setting id="monograph/setIsbn">true</setting>
<setting id="monograph/setLanguageOfPublication">true</setting>
<setting id="monograph/setMisc">true</setting>
<setting id="monograph/setNumberOfPages">true</setting>
<setting id="monograph/setNumberOfVolumes">true</setting>
@ -218,6 +232,7 @@
<setting id="monograph/setUrl">true</setting>
<setting id="monograph/setVolume">true</setting>
<setting id="monograph/setYear">true</setting>
<setting id="monograph/setYearFirstPublished">true</setting>
<!-- Settings for the detail view of an proceedings publication -->
<setting id="proceedings/setImage">true</setting>
@ -229,6 +244,7 @@
<setting id="proceedings/setAuthors">true</setting>
<setting id="proceedings/setDateOfConference">true</setting>
<setting id="proceedings/setIsbn">true</setting>
<setting id="proceedings/setLanguageOfPublication">true</setting>
<setting id="proceedings/setMisc">true</setting>
<setting id="proceedings/setNameOfConference">true</setting>
<setting id="proceedings/setNumberOfPages">true</setting>
@ -241,6 +257,7 @@
<setting id="proceedings/setUrl">true</setting>
<setting id="proceedings/setVolume">true</setting>
<setting id="proceedings/setYear">true</setting>
<setting id="proceedings/setYearFirstPublished">true</setting>
<!-- Settings for the detail view of a review -->
<setting id="review/setImage">true</setting>
@ -253,12 +270,14 @@
<setting id="review/setIssn">true</setting>
<setting id="review/setIssue">true</setting>
<setting id="review/setJournal">true</setting>
<setting id="review/setLanguageOfPublication">true</setting>
<setting id="review/setMisc">true</setting>
<setting id="review/setPages">true</setting>
<setting id="review/setPublicationDate">true</setting>
<setting id="review/setUrl">true</setting>
<setting id="review/setVolume">true</setting>
<setting id="review/setYear">true</setting>
<setting id="review/setYearFirstPublished">true</setting>
<!-- Settings for the detail view of a series -->
<setting id="series/setImage">true</setting>
@ -278,6 +297,7 @@
<setting id="workingPaper/setAbstract">true</setting>
<setting id="workingPaper/setAuthors">true</setting>
<setting id="workingPaper/setLanguageOfPublication">true</setting>
<setting id="workingPaper/setMisc">true</setting>
<setting id="workingPaper/setNumber">true</setting>
<setting id="workingPaper/setNumberOfPages">true</setting>
@ -288,6 +308,7 @@
<setting id="workingPaper/setSeriesLink">true</setting>
<setting id="workingPaper/setSeriesVolume">true</setting>
<setting id="workingPaper/setYear">true</setting>
<setting id="workingPaper/setYearFirstPublished">true</setting>
<setting id="sciAuthor/setNameDetails">false</setting>

View File

@ -49,6 +49,12 @@
</xsl:template>
-->
<xsl:template match="fragmentLayout">
<div class="ccmFragment">
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="showDynamicImage">
<div>
<xsl:call-template name="mandalay:setIdAndClass"/>

View File

@ -22,396 +22,445 @@
-->
<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">
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 an Expertise publication **
**************************************************************************
-->
<!--
**************************************************************************
** Templates for an Expertise publication **
**************************************************************************
-->
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Expertise']" 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="'expertise/setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Expertise']" 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="'expertise/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>
<xsl:if test="./lead and $setLeadText = 'true'">
<div class="lead">
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
</div>
</xsl:if>
</xsl:template>
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Expertise']" mode="image">
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Expertise']" mode="image">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'expertise/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="'expertise/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="'expertise/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="'expertise/setImageCaption'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'expertise/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="'expertise/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="'expertise/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="'expertise/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: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_Expertise_graphics" match="cms:item[objectType='com.arsdigita.cms.contenttypes.Expertise']" mode="detailed_view">
<xsl:template name="CT_Expertise_graphics" match="cms:item[objectType='com.arsdigita.cms.contenttypes.Expertise']" 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="'expertise/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="'expertise/setAuthors'" />
<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="'expertise/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="'expertise/setNumberOfPages'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setOrderer">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="setting" select="'expertise/setOrderer'" />
<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="'expertise/setOrganization'" />
<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="'expertise/setPlace'" />
<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="'expertise/setSeries'" />
<xsl:with-param name="default" select="'false'" />
</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="'expertise/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="'expertise/setSeriesVolume'" />
<xsl:with-param name="setting" 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="'expertise/setUrl'" />
<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="'expertise/setYear'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<div class="mainBody publication publicationDetails publicationExpertiseDetails">
<dl>
<xsl:if test="($setAuthors = 'true') and (string-length(./authors) &gt; 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:variable name="setAbstract">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/author'" />
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="authorsText">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="setting" select="'expertise/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="id" select="'expertise/authors'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/year'" />
<xsl:with-param name="setting" select="'expertise/setAuthors'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication" />
</dd>
</xsl:if>
<xsl:if test="($setPlace = 'true') and (string-length(./place) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/place'" />
</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="'expertise/setLanguageOfPublication'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./place" />
</dd>
</xsl:if>
<xsl:if test="($setUrl = 'true') and (string-length(./url) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/url'" />
</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="'expertise/setMisc'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</dt>
<dd>
<a>
<xsl:attribute name="href">
<xsl:value-of select="./url" />x</xsl:attribute>
<xsl:value-of select="./url" />
</a>
</dd>
</xsl:if>
<xsl:if test="($setNumberOfPages = 'true') and (string-length(./numberOfPages) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/numberOfPages'" />
</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="'expertise/setNumberOfPages'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./numberOfPages" />
</dd>
</xsl:if>
<xsl:if test="($setSeries = 'true') and (string-length(./series) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/series'" />
</xsl:variable>
<xsl:variable name="setOrderer">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="setting" select="'expertise/setOrderer'" />
<xsl:with-param name="default" select="'true'" />
</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:variable>
<xsl:variable name="setOrganization">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="setting" select="'expertise/setOrganization'" />
<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="'expertise/setPlace'" />
<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="'expertise/setSeries'" />
<xsl:with-param name="default" select="'false'" />
</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="'expertise/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="'expertise/setSeriesVolume'" />
<xsl:with-param name="setting" 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="'expertise/setUrl'" />
<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="'expertise/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="'expertise/setYearFirstPublished'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<div class="mainBody publication publicationDetails publicationExpertiseDetails">
<dl>
<xsl:if test="($setAuthors = 'true') and (string-length(./authors) &gt; 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="'expertise/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="'expertise/authors'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/year'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication" />
</dd>
</xsl:if>
<xsl:if test="($setYearFirstPublished = 'true') and (string-length(./yearFirstPublished) &gt; 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) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/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) &gt; 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="($setPlace = 'true') and (string-length(./place) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/place'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./place" />
</dd>
</xsl:if>
<xsl:if test="($setUrl = 'true') and (string-length(./url) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/url'" />
</xsl:call-template>
</dt>
<dd>
<a>
<xsl:attribute name="href">
<xsl:value-of select="./url" />x</xsl:attribute>
<xsl:value-of select="./url" />
</a>
</dd>
</xsl:if>
<xsl:if test="($setNumberOfPages = 'true') and (string-length(./numberOfPages) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/numberOfPages'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./numberOfPages" />
</dd>
</xsl:if>
<xsl:if test="($setSeries = 'true') and (string-length(./series) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/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="'expertise/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="'expertise/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="./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="'expertise/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="'expertise/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</dd>
</xsl:if>
<xsl:if test="($setOrderer = 'true') and (string-length(./orderer) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/orderer'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./orderer/title" />
</dd>
</xsl:if>
<xsl:if test="($setOrganization = 'true') and (string-length(./organization) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/organization'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./organization/title" />
</dd>
</xsl:if>
</dl>
<xsl:if test="$setSeriesVolume = 'true'">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/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="'expertise/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="./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="'expertise/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="'expertise/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</dd>
</xsl:if>
<xsl:if test="($setOrderer = 'true') and (string-length(./orderer) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/orderer'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./orderer/title" />
</dd>
</xsl:if>
<xsl:if test="($setOrganization = 'true') and (string-length(./organization) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/organization'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./organization/title" />
</dd>
</xsl:if>
</dl>
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/abstract'" />
</xsl:call-template>
</h3>
<div class="abstract">
<xsl:value-of disable-output-escaping="yes" select="./abstract" />
</div>
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/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)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/misc'" />
</xsl:call-template>
</h3>
<xsl:value-of select="./misc" />
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
</xsl:if>
<xsl:if test="($setMisc = 'true') and (string-length(normalize-space(./misc)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'expertise/misc'" />
</xsl:template>
<!--
List view
=========
-->
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.Expertise']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_Expertise_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.Expertise']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_Expertise_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template name="CT_Expertise_List" match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.Expertise']" 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>
</h3>
<xsl:value-of select="./misc" />
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
</xsl:template>
<!--
List view
=========
-->
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.Expertise']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_Expertise_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.Expertise']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_Expertise_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template name="CT_Expertise_List" match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.Expertise']" 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>
</xsl:variable>
<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: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>
<!-- Call template for standard format -->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefExpertiseFormat">
<xsl:with-param name="authors" select="$authors" />
<xsl:with-param name="misc" select="./misc" />
<xsl:with-param name="numberOfPages" select="./numberofpages" />
<xsl:with-param name="place" select="./place" />
<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:for-each>
</xsl:variable>
</xsl:template>
<!-- Call template for standard format -->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefExpertiseFormat">
<xsl:with-param name="authors" select="$authors" />
<xsl:with-param name="misc" select="./misc" />
<xsl:with-param name="numberOfPages" select="./numberofpages" />
<xsl:with-param name="place" select="./place" />
<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_Expertise_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.Expertise']" 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>
<!-- Link view -->
<xsl:template name="CT_Expertise_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.Expertise']" 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>

View File

@ -22,434 +22,483 @@
-->
<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">
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 an GreyLiterature publication **
**************************************************************************
-->
<!--
**************************************************************************
** Templates for an GreyLiterature publication **
**************************************************************************
-->
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.GreyLiterature']" 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="'greyLiterature/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>
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.GreyLiterature']" mode="image">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'greyLiterature/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="'greyLiterature/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="'greyLiterature/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="'greyLiterature/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_GreyLiterature_graphics" match="cms:item[objectType='com.arsdigita.cms.contenttypes.GreyLiterature']" 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="'greyLiterature/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="'greyLiterature/setAuthors'" />
<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="'greyLiterature/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="'greyLiterature/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="'greyLiterature/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="'greyLiterature/setPages'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setPages">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="setting" select="'greyLiterature/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="'greyLiterature/setPlace'" />
<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="'greyLiterature/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="'greyLiterature/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="'greyLiterature/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="'greyLiterature/setUrl'" />
<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="'greyLiterature/setYear'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<div class="mainBody publication publicationDetails publicationGreyLiteratureDetails">
<dl>
<xsl:if test="($setAuthors = 'true') and (string-length(./authors) &gt; 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="'greyLiterature/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="'greyLiterature/authors'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/year'" />
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.GreyLiterature']" 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="'greyLiterature/setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication" />
</dd>
</xsl:if>
<xsl:if test="($setOrganization = 'true') and (string-length(../organization) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/organization'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="../organization/title" />
</dd>
</xsl:if>
<xsl:if test="($setPlace = 'true') and (string-length(./place) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/place'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./place" />
</dd>
</xsl:if>
<xsl:if test="($setNumber = 'true') and (string-length(./number) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/number'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./number" />
</dd>
</xsl:if>
<xsl:if test="($setUrl = 'true') and (string-length(./url) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/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="($setNumberOfPages = 'true') and (string-length(./numberOfPages) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/numberOfPages'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./numberOfPages" />
</dd>
</xsl:if>
<xsl:if test="($setPages = 'true') and (string-length(./pagesFrom) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/pages'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./pagesFrom" />
<xsl:if test="string-length(./pagesTo)">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/pagesSeparator'" />
</xsl:call-template>
<xsl:value-of select="./pagesTo" />
</xsl:if>
</dd>
</xsl:if>
<xsl:if test="($setSeries = 'true') and (count(./series/series) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/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="'greyLiterature/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="'greyLiterature/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="'greyLiterature/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="'greyLiterature/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</dd>
</xsl:if>
</dl>
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/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)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/misc'" />
</xsl:call-template>
</h3>
<xsl:value-of select="./misc" />
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
</xsl:template>
<!--
List view
=========
-->
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.GreyLiterature']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_GreyLiterature_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.GreyLiterature']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_GreyLiterature_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template name="CT_GreyLiterature_List" match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.GreyLiterature']" 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>
<xsl:choose>
<xsl:when test="string-length(./nav:attribute[@name='title']) &gt;0">
<xsl:call-template name="CT_Publication_List" />
</xsl:when>
<xsl:otherwise>
<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>
<!-- Call template for standard format -->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefGreyLiteratureFormat">
<xsl:with-param name="authors" select="$authors" />
<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="pagesFrom" select="./pagesFrom" />
<xsl:with-param name="pagesTo" select="./pagesTo" />
<xsl:with-param name="place" select="./place" />
<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:otherwise>
</xsl:choose>
</xsl:template>
<xsl:if test="./lead and $setLeadText = 'true'">
<div class="lead">
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
</div>
</xsl:if>
</xsl:template>
<!-- Link view -->
<xsl:template name="CT_GreyLiterature_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.GreyLiterature']" 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>
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.GreyLiterature']" mode="image">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'greyLiterature/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="'greyLiterature/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="'greyLiterature/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="'greyLiterature/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_GreyLiterature_graphics" match="cms:item[objectType='com.arsdigita.cms.contenttypes.GreyLiterature']" 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="'greyLiterature/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="'greyLiterature/setAuthors'" />
<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="'greyLiterature/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="'greyLiterature/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="'greyLiterature/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="'greyLiterature/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="'greyLiterature/setPages'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setPages">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="setting" select="'greyLiterature/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="'greyLiterature/setPlace'" />
<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="'greyLiterature/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="'greyLiterature/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="'greyLiterature/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="'greyLiterature/setUrl'" />
<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="'greyLiterature/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="'greyLiterature/setYearFirstPublished'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<div class="mainBody publication publicationDetails publicationGreyLiteratureDetails">
<dl>
<xsl:if test="($setAuthors = 'true') and (string-length(./authors) &gt; 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="'greyLiterature/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="'greyLiterature/authors'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/year'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication" />
</dd>
</xsl:if>
<xsl:if test="($setYearFirstPublished = 'true') and (string-length(./yearFirstPublished) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'greyLiterature/yearFirstPublished'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearFirstPublished" />
</dd>
</xsl:if>
<xsl:if test="($setLanguageOfPublication = 'true') and (string-length(./languageOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/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) &gt; 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="($setOrganization = 'true') and (string-length(../organization) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/organization'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="../organization/title" />
</dd>
</xsl:if>
<xsl:if test="($setPlace = 'true') and (string-length(./place) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/place'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./place" />
</dd>
</xsl:if>
<xsl:if test="($setNumber = 'true') and (string-length(./number) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/number'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./number" />
</dd>
</xsl:if>
<xsl:if test="($setUrl = 'true') and (string-length(./url) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/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="($setNumberOfPages = 'true') and (string-length(./numberOfPages) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/numberOfPages'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./numberOfPages" />
</dd>
</xsl:if>
<xsl:if test="($setPages = 'true') and (string-length(./pagesFrom) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/pages'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./pagesFrom" />
<xsl:if test="string-length(./pagesTo)">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/pagesSeparator'" />
</xsl:call-template>
<xsl:value-of select="./pagesTo" />
</xsl:if>
</dd>
</xsl:if>
<xsl:if test="($setSeries = 'true') and (count(./series/series) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/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="'greyLiterature/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="'greyLiterature/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="'greyLiterature/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="'greyLiterature/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</dd>
</xsl:if>
</dl>
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/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)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'greyLiterature/misc'" />
</xsl:call-template>
</h3>
<xsl:value-of select="./misc" />
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
</xsl:template>
<!--
List view
=========
-->
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.GreyLiterature']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_GreyLiterature_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.GreyLiterature']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_GreyLiterature_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template name="CT_GreyLiterature_List" match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.GreyLiterature']" 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>
<xsl:choose>
<xsl:when test="string-length(./nav:attribute[@name='title']) &gt;0">
<xsl:call-template name="CT_Publication_List" />
</xsl:when>
<xsl:otherwise>
<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>
<!-- Call template for standard format -->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefGreyLiteratureFormat">
<xsl:with-param name="authors" select="$authors" />
<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="pagesFrom" select="./pagesFrom" />
<xsl:with-param name="pagesTo" select="./pagesTo" />
<xsl:with-param name="place" select="./place" />
<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:otherwise>
</xsl:choose>
</xsl:template>
<!-- Link view -->
<xsl:template name="CT_GreyLiterature_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.GreyLiterature']" 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>

View File

@ -22,438 +22,487 @@
-->
<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">
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 an InProceedings publication **
**************************************************************************
-->
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.InProceedings']" 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="'inProceedings/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>
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.InProceedings']" mode="image">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'inProceedings/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="'inProceedings/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="'inProceedings/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="'inProceedings/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_InProceedings_graphics" match="cms:item[objectType='com.arsdigita.cms.contenttypes.InProceedings']" 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="'inProceedings/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="'inProceedings/setAuthors'" />
<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="'inProceedings/setMisc'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setPages">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="setting" select="'inProceedings/setPages'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setProceedings">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="setting" select="'inProceedings/setProceedings'" />
<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="'inProceedings/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="'inProceedings/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="'inProceedings/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="'inProceedings/setYear'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<div class="mainBody publication publicationDetails publicationInProceedingsDetails">
<dl>
<xsl:if test="($setAuthors = 'true') and (string-length(./authors) &gt; 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="'inProceedings/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="'inProceedings/authors'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'inProceedings/year'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication" />
</dd>
</xsl:if>
<xsl:if test="($setPages = 'true') and (string-length(./pagesFrom) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'inProceedings/pages'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./pagesFrom" />
<xsl:if test="string-length(./pagesTo) &gt; 0">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'inProceedings/pagesSeparator'" />
</xsl:call-template>
<xsl:value-of select="./pagesTo" />
</xsl:if>
</dd>
</xsl:if>
<xsl:if test="($setProceedings = 'true') and (count(./proceedings) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'inProceedings/proceedings'" />
</xsl:call-template>
</dt>
<dd>
<!--<a>
<xsl:attribute name="href">/redirect/?oid=
<xsl:value-of select="./proceedings/@oid" /></xsl:attribute>
<xsl:value-of select="./proceedings/title" />
</a>-->
<xsl:for-each select="./proceedings">
<xsl:call-template name="CT_Proceedings_List"/>
</xsl:for-each>
</dd>
</xsl:if>
<xsl:if test="($setSeries = 'true') and (string-length(../series/series) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'inProceedings/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="'inProceedings/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="'inProceedings/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="'inProceedings/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="'inProceedings/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</dd>
</xsl:if>
</dl>
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'inProceedings/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)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'inProceedings/misc'" />
</xsl:call-template>
</h3>
<xsl:value-of select="./misc" />
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
</xsl:template>
<!--
List view
=========
-->
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.InProceedings']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_InProceedings_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.InProceedings']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_InProceedings_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template name="CT_InProceedings_List" match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.InProceedings']" 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>
<!--
**************************************************************************
** Templates for an InProceedings publication **
**************************************************************************
-->
<!--
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.
Detail view
===========
-->
<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>
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.InProceedings']" 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="'inProceedings/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>
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.InProceedings']" mode="image">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'inProceedings/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="'inProceedings/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="'inProceedings/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="'inProceedings/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_InProceedings_graphics" match="cms:item[objectType='com.arsdigita.cms.contenttypes.InProceedings']" 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="'inProceedings/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="'inProceedings/setAuthors'" />
<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="'inProceedings/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="'inProceedings/setMisc'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setPages">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="setting" select="'inProceedings/setPages'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setProceedings">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="setting" select="'inProceedings/setProceedings'" />
<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="'inProceedings/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="'inProceedings/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="'inProceedings/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="'inProceedings/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="'inProceedings/setYearFirstPublished'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<div class="mainBody publication publicationDetails publicationInProceedingsDetails">
<dl>
<xsl:if test="($setAuthors = 'true') and (string-length(./authors) &gt; 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="'inProceedings/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="'inProceedings/authors'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'inProceedings/year'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication" />
</dd>
</xsl:if>
<xsl:if test="($setYearFirstPublished = 'true') and (string-length(./yearFirstPublished) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'inProceedings/yearFirstPublished'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearFirstPublished" />
</dd>
</xsl:if>
<xsl:if test="($setLanguageOfPublication = 'true') and (string-length(./languageOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'inProceedings/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) &gt; 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="($setPages = 'true') and (string-length(./pagesFrom) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'inProceedings/pages'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./pagesFrom" />
<xsl:if test="string-length(./pagesTo) &gt; 0">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'inProceedings/pagesSeparator'" />
</xsl:call-template>
<xsl:value-of select="./pagesTo" />
</xsl:if>
</dd>
</xsl:if>
<xsl:if test="($setProceedings = 'true') and (count(./proceedings) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'inProceedings/proceedings'" />
</xsl:call-template>
</dt>
<dd>
<!--<a>
<xsl:attribute name="href">/redirect/?oid=
<xsl:value-of select="./proceedings/@oid" /></xsl:attribute>
<xsl:value-of select="./proceedings/title" />
</a>-->
<xsl:for-each select="./proceedings">
<xsl:call-template name="CT_Proceedings_List"/>
</xsl:for-each>
</dd>
</xsl:if>
<xsl:if test="($setSeries = 'true') and (string-length(../series/series) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'inProceedings/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="'inProceedings/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="'inProceedings/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="'inProceedings/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="'inProceedings/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</dd>
</xsl:if>
</dl>
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'inProceedings/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)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'inProceedings/misc'" />
</xsl:call-template>
</h3>
<xsl:value-of select="./misc" />
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
</xsl:template>
<!--
List view
=========
-->
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.InProceedings']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_InProceedings_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.InProceedings']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_InProceedings_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template name="CT_InProceedings_List" match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.InProceedings']" 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>
<!-- Process the publisher of the proceedings -->
<xsl:variable name="proceedingsPublisher">
<xsl:for-each select="./proceedings/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>
<!-- Process the publisher of the proceedings -->
<xsl:variable name="proceedingsPublisher">
<xsl:for-each select="./proceedings/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>
<!-- Process the authors of the proceedings -->
<xsl:variable name="proceedingsAuthors">
<xsl:for-each select="./proceedings/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="false" />
<xsl:with-param name="authorsCount" select="count(../author)" />
<xsl:with-param name="position" select="position()" />
<!-- Process the authors of the proceedings -->
<xsl:variable name="proceedingsAuthors">
<xsl:for-each select="./proceedings/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="false" />
<xsl:with-param name="authorsCount" select="count(../author)" />
<xsl:with-param name="position" select="position()" />
</xsl:apply-templates>
</xsl:for-each>
</xsl:variable>
<!-- Processing the proceedings -->
<xsl:variable name="proceedings">
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefProceedingsFormat">
<xsl:with-param name="authors" select="$proceedingsAuthors"/>
<xsl:with-param name="dateFromOfConference" select="./proceedings/dateFromOfConference" />
<xsl:with-param name="dateToOfConference" select="./proceedings/dateToOfConference" />
<xsl:with-param name="isbn" select="./proceedings/isbn" />
<xsl:with-param name="misc" select="./proceedings/misc" />
<xsl:with-param name="nameOfConference" select="./proceedings/nameOfConference" />
<xsl:with-param name="numberOfPages" select="./proceedings/numberOfPages" />
<xsl:with-param name="numberOfVolumes" select="./proceedings/numberOfVolumes" />
<xsl:with-param name="organizerOfConference" select="./proceedings/organizerOfConference" />
<xsl:with-param name="placeOfConference" select="./proceedings/placeOfConference" />
<xsl:with-param name="publisher" select="$proceedingsPublisher" />
<xsl:with-param name="title" select="./proceedings/title" />
<xsl:with-param name="volume" select="./proceedings/volume" />
<xsl:with-param name="year" select="''" />
<xsl:with-param name="oid" select="./proceedings/@oid" />
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:apply-templates>
</xsl:for-each>
</xsl:variable>
</xsl:variable>
<!-- Processing the proceedings -->
<xsl:variable name="proceedings">
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefProceedingsFormat">
<xsl:with-param name="authors" select="$proceedingsAuthors"/>
<xsl:with-param name="dateFromOfConference" select="./proceedings/dateFromOfConference" />
<xsl:with-param name="dateToOfConference" select="./proceedings/dateToOfConference" />
<xsl:with-param name="isbn" select="./proceedings/isbn" />
<xsl:with-param name="misc" select="./proceedings/misc" />
<xsl:with-param name="nameOfConference" select="./proceedings/nameOfConference" />
<xsl:with-param name="numberOfPages" select="./proceedings/numberOfPages" />
<xsl:with-param name="numberOfVolumes" select="./proceedings/numberOfVolumes" />
<xsl:with-param name="organizerOfConference" select="./proceedings/organizerOfConference" />
<xsl:with-param name="placeOfConference" select="./proceedings/placeOfConference" />
<xsl:with-param name="publisher" select="$proceedingsPublisher" />
<xsl:with-param name="title" select="./proceedings/title" />
<xsl:with-param name="volume" select="./proceedings/volume" />
<xsl:with-param name="year" select="''" />
<xsl:with-param name="oid" select="./proceedings/@oid" />
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:apply-templates>
</xsl:variable>
<!-- Process the format specification -->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefInProceedingsFormat">
<xsl:with-param name="authors" select="$authors" />
<xsl:with-param name="misc" select="./misc" />
<xsl:with-param name="pagesFrom" select="./pagesFrom" />
<xsl:with-param name="pagesTo" select="./pagesTo" />
<xsl:with-param name="proceedings" select="$proceedings" />
<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>
<!-- Process the format specification -->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefInProceedingsFormat">
<xsl:with-param name="authors" select="$authors" />
<xsl:with-param name="misc" select="./misc" />
<xsl:with-param name="pagesFrom" select="./pagesFrom" />
<xsl:with-param name="pagesTo" select="./pagesTo" />
<xsl:with-param name="proceedings" select="$proceedings" />
<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>
</xsl:template>
<!-- Link view -->
<xsl:template name="CT_InProceedings_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.InProceedings']" 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>
<!-- Link view -->
<xsl:template name="CT_InProceedings_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.InProceedings']" 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>

View File

@ -22,464 +22,514 @@
-->
<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"
>
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 an InternetArticle publication **
**************************************************************************
-->
<!--
**************************************************************************
** Templates for an InternetArticle publication **
**************************************************************************
-->
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.InternetArticle']" 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="'internetArticle/setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.InternetArticle']" 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="'internetArticle/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>
<xsl:if test="./lead and $setLeadText = 'true'">
<div class="lead">
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
</div>
</xsl:if>
</xsl:template>
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.InternetArticle']" mode="image">
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.InternetArticle']" mode="image">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'internetArticle/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="'internetArticle/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="'internetArticle/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="'internetArticle/setImageCaption'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'internetArticle/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="'internetArticle/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="'internetArticle/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="'internetArticle/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: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_InternetArticle_graphics"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.InternetArticle']"
mode="detailed_view">
match="cms:item[objectType='com.arsdigita.cms.contenttypes.InternetArticle']"
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="'internetArticle/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="'internetArticle/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="'internetArticle/setEdition'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setIssn">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'internetArticle/setIssn'"/>
<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="'internetArticle/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="'internetArticle/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="'internetArticle/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="'internetArticle/setOrganization'"/>
<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="'internetArticle/setPlace'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setPublicationDate">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'internetArticle/setPublicationDate'"/>
<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="'internetArticle/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="'internetArticle/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="'internetArticle/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="'internetArticle/setYear'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<div class="mainBody publication publicationDetails publicationInternetArticleDetails">
<dl>
<xsl:if test="($setAuthors = 'true') and (string-length(./authors) &gt; 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="'internetArticle/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="'internetArticle/authors'"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/year'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication"/>
</dd>
</xsl:if>
<xsl:if test="($setPublicationDate = 'true') and (string-length(./publicationDate) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/publicationDate'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./publicationDate"/>
</dd>
</xsl:if>
<xsl:if test="($setOrganization = 'true') and (string-length(./organization/title) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/organization'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./organization/title"/>
</dd>
</xsl:if>
<xsl:if test="($setPlace = 'true') and (string-length(./place) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/place'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./place"/>
</dd>
</xsl:if>
<xsl:if test="($setNumber = 'true') and (string-length(./number) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/number'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./number"/>
</dd>
</xsl:if>
<xsl:if test="($setIssn = 'true') and (string-length(./issn) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/issn'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./issn"/>
</dd>
</xsl:if>
<xsl:if test="($setNumberOfPages = 'true') and (string-length(./numberOfPages) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/numberOfPages'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./numberOfPages"/>
</dd>
</xsl:if>
<xsl:if test="($setEdition = 'true') and (string-length(./edition) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/edition'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./edition"/>
</dd>
</xsl:if>
<xsl:if test="($setSeries = 'true') and (string-length(./series/series) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/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="'internetArticle/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="'internetArticle/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="'internetArticle/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="'internetArticle/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</dd>
</xsl:if>
</dl>
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/abstract'"/>
<xsl:variable name="setAbstract">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'internetArticle/setAbstract'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</h3>
<div class="abstract">
<xsl:value-of disable-output-escaping="yes" select="./abstract" />
</div>
</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="'internetArticle/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="'internetArticle/setEdition'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setIssn">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'internetArticle/setIssn'"/>
<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="'internetArticle/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="'internetArticle/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="'internetArticle/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="'internetArticle/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="'internetArticle/setOrganization'"/>
<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="'internetArticle/setPlace'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setPublicationDate">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'internetArticle/setPublicationDate'"/>
<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="'internetArticle/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="'internetArticle/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="'internetArticle/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="'internetArticle/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="'internetArticle/setYearFirstPublished'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<div class="mainBody publication publicationDetails publicationInternetArticleDetails">
<dl>
<xsl:if test="($setAuthors = 'true') and (string-length(./authors) &gt; 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="'internetArticle/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="'internetArticle/authors'"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/year'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication"/>
</dd>
</xsl:if>
<xsl:if test="($setYearFirstPublished = 'true') and (string-length(./yearFirstPublished) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/yearFirstPublished'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearFirstPublished" />
</dd>
</xsl:if>
<xsl:if test="($setLanguageOfPublication = 'true') and (string-length(./languageOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'internetArticle/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) &gt; 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="($setPublicationDate = 'true') and (string-length(./publicationDate) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/publicationDate'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./publicationDate"/>
</dd>
</xsl:if>
<xsl:if test="($setOrganization = 'true') and (string-length(./organization/title) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/organization'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./organization/title"/>
</dd>
</xsl:if>
<xsl:if test="($setPlace = 'true') and (string-length(./place) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/place'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./place"/>
</dd>
</xsl:if>
<xsl:if test="($setNumber = 'true') and (string-length(./number) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/number'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./number"/>
</dd>
</xsl:if>
<xsl:if test="($setIssn = 'true') and (string-length(./issn) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/issn'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./issn"/>
</dd>
</xsl:if>
<xsl:if test="($setNumberOfPages = 'true') and (string-length(./numberOfPages) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/numberOfPages'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./numberOfPages"/>
</dd>
</xsl:if>
<xsl:if test="($setEdition = 'true') and (string-length(./edition) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/edition'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./edition"/>
</dd>
</xsl:if>
<xsl:if test="($setSeries = 'true') and (string-length(./series/series) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/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="'internetArticle/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="'internetArticle/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="'internetArticle/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="'internetArticle/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</dd>
</xsl:if>
</dl>
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/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)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/misc'"/>
</xsl:call-template>
</h3>
<xsl:value-of select="./misc"/>
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
</xsl:if>
<xsl:if test="($setMisc = 'true') and (string-length(normalize-space(./misc)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'internetArticle/misc'"/>
</xsl:call-template>
</h3>
<xsl:value-of select="./misc"/>
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
</xsl:template>
</xsl:template>
<!--
List view
=========
-->
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.InternetArticle']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_InternetArticle_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<!--
List view
=========
-->
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.InternetArticle']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_InternetArticle_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.InternetArticle']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_InternetArticle_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.InternetArticle']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_InternetArticle_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<xsl:template
name="CT_InternetArticle_List"
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.InternetArticle']"
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>
<xsl:template
name="CT_InternetArticle_List"
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.InternetArticle']"
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>
<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="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>
<!-- Call template for standard format -->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefInternetArticleFormat">
<xsl:with-param name="authors" select="$authors"/>
<xsl:with-param name="doi" select="./doi"/>
<xsl:with-param name="edition" select="./edition"/>
<xsl:with-param name="issn" select="./issn"/>
<xsl:with-param name="lastAccessed" select="./lastAccessed/@longDate"/>
<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="title" select="./title"/>
<xsl:with-param name="url" select="./url"/>
<xsl:with-param name="urn" select="./urn"/>
<xsl:with-param name="year" select="./yearOfPublication"/>
<xsl:with-param name="oid" select="./@oid"/>
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:apply-templates>
<!-- Call template for standard format -->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefInternetArticleFormat">
<xsl:with-param name="authors" select="$authors"/>
<xsl:with-param name="doi" select="./doi"/>
<xsl:with-param name="edition" select="./edition"/>
<xsl:with-param name="issn" select="./issn"/>
<xsl:with-param name="lastAccessed" select="./lastAccessed/@longDate"/>
<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="title" select="./title"/>
<xsl:with-param name="url" select="./url"/>
<xsl:with-param name="urn" select="./urn"/>
<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>
</xsl:template>
<!-- Link view -->
<xsl:template
name="CT_InternetArticle_Link"
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.InternetArticle']"
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>
<!-- Link view -->
<xsl:template
name="CT_InternetArticle_Link"
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.InternetArticle']"
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>

View File

@ -22,493 +22,542 @@
-->
<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">
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 an Monograph publication **
**************************************************************************
-->
<!--
**************************************************************************
** Templates for an Monograph publication **
**************************************************************************
-->
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Monograph']" 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="'monograph/setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Monograph']" 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="'monograph/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>
<xsl:if test="./lead and $setLeadText = 'true'">
<div class="lead">
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
</div>
</xsl:if>
</xsl:template>
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Monograph']" mode="image">
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Monograph']" mode="image">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'monograph/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="'monograph/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="'monograph/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="'monograph/setImageCaption'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'monograph/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="'monograph/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="'monograph/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="'monograph/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: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_Monograph_graphics" match="cms:item[objectType='com.arsdigita.cms.contenttypes.Monograph']" mode="detailed_view">
<xsl:template name="CT_Monograph_graphics" match="cms:item[objectType='com.arsdigita.cms.contenttypes.Monograph']" 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="'monograph/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="'monograph/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="'monograph/setEdition'" />
<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="'monograph/setIsbn'" />
<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="'monograph/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="'monograph/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="'monograph/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="'monograph/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="'monograph/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="'monograph/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="'monograph/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="'monograph/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="'monograph/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="'monograph/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="'monograph/setYear'" />
<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 publicationMonographDetails">
<dl>
<xsl:if test="($setAuthors = 'true') and (string-length(./authors) &gt; 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:variable name="setAbstract">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/author'" />
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="authorsText">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="setting" select="'monograph/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="id" select="'monograph/authors'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/year'" />
<xsl:with-param name="setting" select="'monograph/setAuthors'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication" />
</dd>
</xsl:if>
<xsl:if test="($setPublisher = 'true') and (string-length(./publisher) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/publisher'" />
</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="'monograph/setEdition'" />
<xsl:with-param name="default" select="'true'" />
</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) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/isbn'" />
</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="'monograph/setIsbn'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./isbn" />
</dd>
</xsl:if>
<xsl:if test="($setUrl = 'true') and (string-length(./url) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/url'" />
</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="'monograph/setLanguageOfPublication'" />
<xsl:with-param name="default" select="'true'" />
</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) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/volume'" />
</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="'monograph/setMisc'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./volume" />
</dd>
</xsl:if>
<xsl:if test="($setNumberOfVolumes = 'true') and (string-length(./numberOfVolumes) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/numberOfVolumes'" />
</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="'monograph/setNumberOfPages'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./numberOfVolumes" />
</dd>
</xsl:if>
<xsl:if test="($setNumberOfPages = 'true') and (string-length(./numberOfPages) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/numberOfPages'" />
</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="'monograph/setNumberOfVolumes'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./numberOfPages" />
</dd>
</xsl:if>
<xsl:if test="($setEdition = 'true') and (string-length(./edition) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/edition'" />
</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="'monograph/setPublisher'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./edition" />
</dd>
</xsl:if>
<xsl:if test="($setReviewed = 'true') and (string-length(./reviewed) &gt; 0) and (./reviewed = 'true')">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/reviewed'" />
</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="'monograph/setReviewed'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</dt>
<dd><EFBFBD></dd>
</xsl:if>
<xsl:if test="($setSeries = 'true') and (string-length(./series/series) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/series'" />
</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="'monograph/setSeries'" />
<xsl:with-param name="default" select="'true'" />
</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:variable>
<xsl:variable name="setSeriesLink">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="setting" select="'monograph/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="'monograph/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="'monograph/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="'monograph/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="'monograph/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="'monograph/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 publicationMonographDetails">
<dl>
<xsl:if test="($setAuthors = 'true') and (string-length(./authors) &gt; 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="'monograph/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="'monograph/authors'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/year'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication" />
</dd>
</xsl:if>
<xsl:if test="($setYearFirstPublished = 'true') and (string-length(./yearFirstPublished) &gt; 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) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/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) &gt; 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) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/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) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/isbn'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./isbn" />
</dd>
</xsl:if>
<xsl:if test="($setUrl = 'true') and (string-length(./url) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/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) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/volume'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./volume" />
</dd>
</xsl:if>
<xsl:if test="($setNumberOfVolumes = 'true') and (string-length(./numberOfVolumes) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/numberOfVolumes'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./numberOfVolumes" />
</dd>
</xsl:if>
<xsl:if test="($setNumberOfPages = 'true') and (string-length(./numberOfPages) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/numberOfPages'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./numberOfPages" />
</dd>
</xsl:if>
<xsl:if test="($setEdition = 'true') and (string-length(./edition) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/edition'" />
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./edition" />
</dd>
</xsl:if>
<xsl:if test="($setReviewed = 'true') and (string-length(./reviewed) &gt; 0) and (./reviewed = 'true')">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/reviewed'" />
</xsl:call-template>
</dt>
<dd><EFBFBD></dd>
</xsl:if>
<xsl:if test="($setSeries = 'true') and (string-length(./series/series) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/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="'monograph/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="'monograph/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="'monograph/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="'monograph/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</dd>
</xsl:if>
</dl>
<xsl:if test="$setSeriesVolume = 'true'">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/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="'monograph/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="'monograph/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="'monograph/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</dd>
</xsl:if>
</dl>
<xsl:if test="($setAbstract = 'true') and (string-length(normalize-space(./abstract)) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/abstract'" />
</xsl:call-template>
</h3>
<div class="abstract">
<xsl:value-of disable-output-escaping="yes" select="./abstract" />
</div>
</div>
</xsl:if>
<xsl:if test="($setAbstract = 'true') and (string-length(normalize-space(./abstract)) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/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)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/misc'" />
</xsl:call-template>
</h3>
<xsl:value-of select="./misc" />
</div>
</xsl:if>
<xsl:if test="($setMisc = 'true') and (string-length(normalize-space(./misc)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'monograph/misc'" />
</xsl:call-template>
</h3>
<xsl:value-of select="./misc" />
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
</xsl:template>
</xsl:template>
<!--
List view
=========
-->
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.Monograph']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_Monograph_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.Monograph']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_Monograph_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template name="CT_Monograph_List" match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.Monograph']" 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.
<!--
List view
=========
-->
<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:template match="publication[objectType='com.arsdigita.cms.contenttypes.Monograph']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_Monograph_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.Monograph']" mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_Monograph_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template name="CT_Monograph_List" match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.Monograph']" 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" />
<!--
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/bibrefMonographFormat">
<xsl:with-param name="authors" select="$authors" />
<xsl:with-param name="edition" select="./edition" />
<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:for-each>
</xsl:variable>
<!-- Call template for standard format -->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefMonographFormat">
<xsl:with-param name="authors" select="$authors" />
<xsl:with-param name="edition" select="./edition" />
<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>
</xsl:template>
<!-- Link view -->
<xsl:template name="CT_Monograph_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.Monograph']" 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>
<!-- Link view -->
<xsl:template name="CT_Monograph_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.Monograph']" 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>

View File

@ -22,440 +22,490 @@
-->
<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"
>
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 an ResearchReport publication **
**************************************************************************
-->
<!--
**************************************************************************
** Templates for an ResearchReport publication **
**************************************************************************
-->
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.ResearchReport']" 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="'researchReport/setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.ResearchReport']" 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="'researchReport/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>
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.ResearchReport']" mode="image">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'researchReport/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="'researchReport/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="'researchReport/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="'researchReport/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_ResearchReport_graphics"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.ResearchReport']"
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="'researchReport/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="'researchReport/setAuthors'"/>
<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="'researchReport/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="'researchReport/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="'researchReport/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="'researchReport/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="'researchReport/setPlace'"/>
<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="'researchReport/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="'researchReport/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="'researchReport/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="'researchReport/setYear'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<div class="mainBody publication publicationDetails publicationGreyLiteratureDetails">
<dl>
<xsl:if test="($setAuthors = 'true') and (string-length(./authors) &gt; 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="'researchReport/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="'researchReport/authors'"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/year'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication"/>
</dd>
</xsl:if>
<xsl:if test="($setOrganization = 'true') and (string-length(./organization) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/organization'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./organization/title"/>
</dd>
</xsl:if>
<xsl:if test="($setPlace = 'true') and (string-length(./place) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/place'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./place"/>
</dd>
</xsl:if>
<xsl:if test="($setNumber = 'true') and (string-length(./number) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/number'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./number"/>
</dd>
</xsl:if>
<xsl:if test="($setNumberOfPages = 'true') and (string-length(./numberOfPages) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/numberOfPages'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./numberOfPages"/>
</dd>
</xsl:if>
<xsl:if test="($setSeries = 'true') and (string-length(./series) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/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="'researchReport/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="'researchReport/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="'researchReport/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="'researchReport/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</dd>
<xsl:if test="./lead and $setLeadText = 'true'">
<div class="lead">
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
</div>
</xsl:if>
</xsl:template>
</dl>
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.ResearchReport']" mode="image">
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/abstract'"/>
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'researchReport/setImage'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</h3>
<div class="abstract">
<xsl:value-of disable-output-escaping="yes" select="./abstract" />
</div>
</div>
</xsl:if>
</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="'researchReport/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="'researchReport/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="'researchReport/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_ResearchReport_graphics"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.ResearchReport']"
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="'researchReport/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="'researchReport/setAuthors'"/>
<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="'researchReport/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="'researchReport/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="'researchReport/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="'researchReport/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="'researchReport/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="'researchReport/setPlace'"/>
<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="'researchReport/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="'researchReport/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="'researchReport/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="'researchReport/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="'researchReport/setYearFirstPublished'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<div class="mainBody publication publicationDetails publicationGreyLiteratureDetails">
<dl>
<xsl:if test="($setAuthors = 'true') and (string-length(./authors) &gt; 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="'researchReport/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="'researchReport/authors'"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/year'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication"/>
</dd>
</xsl:if>
<xsl:if test="($setYearFirstPublished = 'true') and (string-length(./yearFirstPublished) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/yearFirstPublished'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearFirstPublished" />
</dd>
</xsl:if>
<xsl:if test="($setLanguageOfPublication = 'true') and (string-length(./languageOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'researchReport/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) &gt; 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="($setOrganization = 'true') and (string-length(./organization) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/organization'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./organization/title"/>
</dd>
</xsl:if>
<xsl:if test="($setPlace = 'true') and (string-length(./place) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/place'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./place"/>
</dd>
</xsl:if>
<xsl:if test="($setNumber = 'true') and (string-length(./number) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/number'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./number"/>
</dd>
</xsl:if>
<xsl:if test="($setNumberOfPages = 'true') and (string-length(./numberOfPages) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/numberOfPages'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./numberOfPages"/>
</dd>
</xsl:if>
<xsl:if test="($setSeries = 'true') and (string-length(./series) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/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="'researchReport/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="'researchReport/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="'researchReport/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="'researchReport/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</dd>
</xsl:if>
</dl>
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/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)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/misc'"/>
</xsl:call-template>
</h3>
<xsl:value-of select="./misc"/>
<xsl:if test="($setMisc = 'true') and (string-length(normalize-space(./misc)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/misc'"/>
</xsl:call-template>
</h3>
<xsl:value-of select="./misc"/>
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
</xsl:template>
</xsl:template>
<!--
List view
=========
-->
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.ResearchReport']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_ResearchReport_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.ResearchReport']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_ResearchReport_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<xsl:template
name="CT_ResearchReport_List"
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.ResearchReport']"
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>
<!--
Procecess the format specification and use the values from the XML
List view
=========
-->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefResearchReportFormat">
<xsl:with-param name="authors" select="$authors"/>
<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="series" select="./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 match="publications[objectType='com.arsdigita.cms.contenttypes.ResearchReport']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_ResearchReport_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.ResearchReport']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_ResearchReport_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<!-- link view -->
<xsl:template
name="CT_ResearchReport_Link"
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.ResearchReport']"
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:template
name="CT_ResearchReport_List"
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.ResearchReport']"
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>
<!--
Procecess the format specification and use the values from the XML
-->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefResearchReportFormat">
<xsl:with-param name="authors" select="$authors"/>
<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="series" select="./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_ResearchReport_Link"
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.ResearchReport']"
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>

View File

@ -22,444 +22,494 @@
-->
<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"
>
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 an Review publication **
**************************************************************************
-->
<!--
**************************************************************************
** Templates for an Review publication **
**************************************************************************
-->
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Review']" 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="'review/setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Review']" 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="'review/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>
<xsl:if test="./lead and $setLeadText = 'true'">
<div class="lead">
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
</div>
</xsl:if>
</xsl:template>
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Review']" mode="image">
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Review']" mode="image">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'review/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="'review/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="'review/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="'review/setImageCaption'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'review/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="'review/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="'review/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="'review/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: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_Review_graphics"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.Review']"
mode="detailed_view">
<xsl:template name="CT_Review_graphics"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.Review']"
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="'review/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="'review/setAuthors'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setIssn">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'review/setIssn'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setIssue">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'review/setIssue'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setJournal">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'review/setJournal'"/>
<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="'review/setMisc'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setPages">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'review/setPages'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setPublicationDate">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'review/setPublicationDate'"/>
<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="'review/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="'review/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="'review/setYear'"/>
<xsl:with-param name="default" select="'true'"/>
</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="'review/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="'review/setAuthors'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setIssn">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'review/setIssn'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setIssue">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'review/setIssue'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setJournal">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'review/setJournal'"/>
<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="'review/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="'review/setMisc'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setPages">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'review/setPages'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setPublicationDate">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'review/setPublicationDate'"/>
<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="'review/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="'review/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="'review/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="'review/setYearFirstPublished'" />
<xsl:with-param name="default" select="'true'" />
</xsl:call-template>
</xsl:variable>
<div class="mainBody publication publicationDetails publicationReviewDetails">
<div class="mainBody publication publicationDetails publicationReviewDetails">
<dl>
<xsl:if test="($setAuthors = 'true') and (string-length(../authors) &gt; 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="'review/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="'review/authors'"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<dl>
<xsl:if test="($setAuthors = 'true') and (string-length(../authors) &gt; 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="'review/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="'review/authors'"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/year'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication"/>
</dd>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/year'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication"/>
</dd>
</xsl:if>
<xsl:if test="($setYearFirstPublished = 'true') and (string-length(./yearFirstPublished) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/yearFirstPublished'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearFirstPublished" />
</dd>
</xsl:if>
<xsl:if test="($setLanguageOfPublication = 'true') and (string-length(./languageOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'review/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) &gt; 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="($setJournal = 'true') and (string-length(../journal) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/journal'"/>
</xsl:call-template>
</dt>
<dd>
<a>
<xsl:attribute name="href">/redirect/?oid=<xsl:value-of select="../journal/@oid"/></xsl:attribute>
<xsl:value-of select="../journal/title"/>
</a>
</dd>
</xsl:if>
<xsl:if test="($setJournal = 'true') and (string-length(../journal) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/journal'"/>
</xsl:call-template>
</dt>
<dd>
<a>
<xsl:attribute name="href">/redirect/?oid=<xsl:value-of select="../journal/@oid"/></xsl:attribute>
<xsl:value-of select="../journal/title"/>
</a>
</dd>
</xsl:if>
<xsl:if test="($setIssn = 'true') and (string-length(./issn) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/issn'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./issn"/>
</dd>
</xsl:if>
<xsl:if test="($setIssn = 'true') and (string-length(./issn) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/issn'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./issn"/>
</dd>
</xsl:if>
<xsl:if test="($setUrl = 'true') and (string-length(./url) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/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="($setUrl = 'true') and (string-length(./url) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/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) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/volume'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./volume"/>
</dd>
</xsl:if>
<xsl:if test="($setVolume = 'true') and (string-length(./volume) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/volume'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./volume"/>
</dd>
</xsl:if>
<xsl:if test="($setIssue = 'true') and (string-length(./issue) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/issue'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./issue"/>
</dd>
</xsl:if>
<xsl:if test="($setIssue = 'true') and (string-length(./issue) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/issue'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./issue"/>
</dd>
</xsl:if>
<xsl:if test="($setPublicationDate = 'true') and (string-length(./publicationDate) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/publicationDate'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./publicationDate"/>
</dd>
</xsl:if>
</dl>
<xsl:if test="($setPublicationDate = 'true') and (string-length(./publicationDate) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/publicationDate'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./publicationDate"/>
</dd>
</xsl:if>
</dl>
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/abstract'"/>
</xsl:call-template>
</h3>
<div class="abstract">
<xsl:variable name="abstract">
<xsl:call-template name="mandalay:string-replace">
<xsl:with-param name="string" select="./abstract"/>
<xsl:with-param name="from" select="'&#xA;'"/>
<xsl:with-param name="to" select="'&lt;br/>'"/>
</xsl:call-template>
</xsl:variable>
<xsl:value-of disable-output-escaping="yes" select="$abstract"/>
</div>
</div>
</xsl:if>
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/abstract'"/>
</xsl:call-template>
</h3>
<div class="abstract">
<xsl:variable name="abstract">
<xsl:call-template name="mandalay:string-replace">
<xsl:with-param name="string" select="./abstract"/>
<xsl:with-param name="from" select="'&#xA;'"/>
<xsl:with-param name="to" select="'&lt;br/>'"/>
</xsl:call-template>
</xsl:variable>
<xsl:value-of disable-output-escaping="yes" select="$abstract"/>
</div>
</div>
</xsl:if>
<xsl:if test="($setMisc = 'true') and (string-length(normalize-space(./misc)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/misc'"/>
</xsl:call-template>
</h3>
<xsl:value-of select="./misc"/>
</div>
</xsl:if>
<xsl:if test="($setMisc = 'true') and (string-length(normalize-space(./misc)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/misc'"/>
</xsl:call-template>
</h3>
<xsl:value-of select="./misc"/>
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
</xsl:template>
</xsl:template>
<!--
List view
=========
-->
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.Review']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_Review_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.Review']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_Review_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<xsl:template
name="CT_Review_List"
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.Review']"
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.
<!--
List view
=========
-->
<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:template match="publications[objectType='com.arsdigita.cms.contenttypes.Review']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_Review_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.Review']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_Review_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<xsl:template
name="CT_Review_List"
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.Review']"
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>
<!-- Processing the journal data using the format for journals -->
<xsl:variable name="journal">
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefJournalFormat">
<xsl:with-param name="issn" select="./journal/issn"/>
<xsl:with-param name="misc" select="./journal/misc"/>
<xsl:with-param name="reviewed" select="./journal/reviewed"/>
<xsl:with-param name="title" select="./journal/title"/>
</xsl:apply-templates>
</xsl:variable>
<!-- Processing the journal data using the format for journals -->
<xsl:variable name="journal">
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefJournalFormat">
<xsl:with-param name="issn" select="./journal/issn"/>
<xsl:with-param name="misc" select="./journal/misc"/>
<xsl:with-param name="reviewed" select="./journal/reviewed"/>
<xsl:with-param name="title" select="./journal/title"/>
</xsl:apply-templates>
</xsl:variable>
<!--
Procecess the format specification and use the values from the XML
-->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefReviewFormat">
<xsl:with-param name="authors" select="$authors"/>
<xsl:with-param name="issue" select="./issue"/>
<xsl:with-param name="journal" select="$journal"/>
<xsl:with-param name="misc" select="./misc"/>
<xsl:with-param name="pagesFrom" select="./pagesFrom"/>
<xsl:with-param name="pagesTo" select="./pagesTo"/>
<xsl:with-param name="publicationDate" select="./publicationDate"/>
<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>
<!--
Procecess the format specification and use the values from the XML
-->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefReviewFormat">
<xsl:with-param name="authors" select="$authors"/>
<xsl:with-param name="issue" select="./issue"/>
<xsl:with-param name="journal" select="$journal"/>
<xsl:with-param name="misc" select="./misc"/>
<xsl:with-param name="pagesFrom" select="./pagesFrom"/>
<xsl:with-param name="pagesTo" select="./pagesTo"/>
<xsl:with-param name="publicationDate" select="./publicationDate"/>
<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>
</xsl:template>
<!-- Review link view -->
<xsl:template
name="CT_Review_Link"
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.Review']"
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>
<!-- Review link view -->
<xsl:template
name="CT_Review_Link"
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.Review']"
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>

View File

@ -22,53 +22,53 @@
-->
<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"
>
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 an UnPublished publication **
**************************************************************************
-->
<!--
**************************************************************************
** Templates for an UnPublished publication **
**************************************************************************
-->
<!--
Detail view
===========
-->
<!--
Detail view
===========
-->
<!--
List view
=========
-->
<xsl:template
name="CT_UnPublished_List"
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.UnPublished']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<!-- Simply call template for Publications, because there is not difference for list view between these
two types -->
<xsl:call-template name="CT_Publication_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<!--
List view
=========
-->
<xsl:template
name="CT_UnPublished_List"
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.UnPublished']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<!-- Simply call template for Publications, because there is not difference for list view between these
two types -->
<xsl:call-template name="CT_Publication_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<!-- Link view -->
<xsl:template
name="CT_UnPublished_Link"
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.UnPublished']"
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>
<!-- Link view -->
<xsl:template
name="CT_UnPublished_Link"
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.UnPublished']"
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>

View File

@ -22,438 +22,488 @@
-->
<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"
>
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 an WorkingPaper publication **
**************************************************************************
-->
<!--
**************************************************************************
** Templates for an WorkingPaper publication **
**************************************************************************
-->
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.WorkingPaper']" 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="'workingPaper/setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.WorkingPaper']" 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="'workingPaper/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>
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.WorkingPaper']" mode="image">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
</xsl:template>
<xsl:template name="CT_WorkingPaper_graphics"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.WorkingPaper']"
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="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/setAuthors'"/>
<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="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/setPlace'"/>
<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="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/setYear'"/>
<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) &gt; 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="'workingPaper/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="'workingPaper/authors'"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/year'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication"/>
</dd>
</xsl:if>
<xsl:if test="($setOrganization = 'true') and (string-length(./organization/title) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/organization'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./organization/title"/>
</dd>
</xsl:if>
<xsl:if test="($setPlace = 'true') and (string-length(./place) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/place'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./place"/>
</dd>
</xsl:if>
<xsl:if test="($setNumber = 'true') and (string-length(./number) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/number'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./number"/>
</dd>
</xsl:if>
<xsl:if test="($setNumberOfPages = 'true') and (string-length(./numberOfPages) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/numberOfPages'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./numberOfPages"/>
</dd>
</xsl:if>
<xsl:if test="($setSeries = 'true') and (string-length(./series) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</dd>
<xsl:if test="./lead and $setLeadText = 'true'">
<div class="lead">
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
</div>
</xsl:if>
</xsl:template>
</dl>
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.WorkingPaper']" mode="image">
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/abstract'"/>
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
</xsl:template>
<xsl:template name="CT_WorkingPaper_graphics"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.WorkingPaper']"
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="'workingPaper/setImage'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</h3>
<div class="abstract">
<xsl:value-of disable-output-escaping="yes" select="./abstract" />
</div>
</div>
</xsl:if>
</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="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/setAuthors'"/>
<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="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/setPlace'"/>
<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="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/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) &gt; 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="'workingPaper/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="'workingPaper/authors'"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="($setYear = 'true') and (string-length(./yearOfPublication) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/year'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./yearOfPublication"/>
</dd>
</xsl:if>
<xsl:if test="($setYearFirstPublished = 'true') and (string-length(./yearFirstPublished) &gt; 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) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
<xsl:with-param name="id" select="'workingPaper/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) &gt; 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="($setOrganization = 'true') and (string-length(./organization/title) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/organization'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./organization/title"/>
</dd>
</xsl:if>
<xsl:if test="($setPlace = 'true') and (string-length(./place) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/place'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./place"/>
</dd>
</xsl:if>
<xsl:if test="($setNumber = 'true') and (string-length(./number) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/number'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./number"/>
</dd>
</xsl:if>
<xsl:if test="($setNumberOfPages = 'true') and (string-length(./numberOfPages) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/numberOfPages'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./numberOfPages"/>
</dd>
</xsl:if>
<xsl:if test="($setSeries = 'true') and (string-length(./series) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/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="'workingPaper/seriesVolumePost'" />
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</dd>
</xsl:if>
</dl>
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/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)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/misc'"/>
</xsl:call-template>
</h3>
<xsl:value-of select="./misc"/>
<xsl:if test="($setMisc = 'true') and (string-length(normalize-space(./misc)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'workingPaper/misc'"/>
</xsl:call-template>
</h3>
<xsl:value-of select="./misc"/>
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
</div>
</xsl:template>
</xsl:template>
<!--
List view
=========
-->
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.WorkingPaper']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_WorkingPaper_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.WorkingPaper']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_WorkingPaper_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<xsl:template
name="CT_WorkingPaper_List"
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.WorkingPaper']"
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>
<!--
Procecess the format specification and use the values from the XML
List view
=========
-->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefWorkingPaperFormat">
<xsl:with-param name="authors" select="$authors"/>
<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="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>
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.WorkingPaper']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_WorkingPaper_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<!-- link view -->
<xsl:template
name="CT_WorkingPaper_Link"
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.WorkingPaper']"
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:template match="publication[objectType='com.arsdigita.cms.contenttypes.WorkingPaper']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_WorkingPaper_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<xsl:template
name="CT_WorkingPaper_List"
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.WorkingPaper']"
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>
<!--
Procecess the format specification and use the values from the XML
-->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefWorkingPaperFormat">
<xsl:with-param name="authors" select="$authors"/>
<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="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.WorkingPaper']"
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>

View File

@ -47,7 +47,6 @@
<!--
<xsl:if test="count($resultTree//cms:item/image | $resultTree//cms:item/imageAttachments/image) > 1">
-->
<script type="text/javascript" src="/assets/jquery.js"/>
<script type="text/javascript" src="/assets/fancybox/jquery.fancybox.pack.js"/>
<script type="text/javascript" src="/assets/fancybox/jquery.easing.pack.js"/>
<script type="text/javascript" src="/assets/fancybox/jquery.mousewheel.pack.js"/>

View File

@ -35,7 +35,7 @@
xmlns:ppp="http://www.arsdigita.com/PublicPersonalProfile/1.0"
xmlns:mandalay="http://mandalay.quasiweb.de"
xmlns:atoz="http://xmlns.redhat.com/atoz/1.0"
exclude-result-prefixes="xsl aplaws bebop cms docs forum mandalay nav portal ppp search subsite terms ui"
exclude-result-prefixes="xsl aplaws atoz bebop cms docs forum mandalay nav portal ppp search subsite terms ui"
version="1.0">
<!-- Autor: Sören Bernstein -->
@ -48,7 +48,8 @@
</xsl:template>
<xsl:template match="pageLayout">
<html>
<xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html&gt;</xsl:text>
<html xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="lang">
<xsl:value-of select="$lang"/>
</xsl:attribute>
@ -125,6 +126,13 @@
<meta name="XSL-Theme-Name" content="Mandalay"/>
<meta name="XSL-Theme-Version" content="{$version}"/>
<!-- Metainformation about LibreCCM -->
<meta name="generator">
<xsl:attribute name="content">
<xsl:value-of select="concat($resultTree/bebop:systemInformation/@appname, ' ', $resultTree/bebop:systemInformation/@version)"/>
</xsl:attribute>
</meta>
<!-- DE Diese Metainformationen sind für den WIA Level 3 notwendig -->
<!-- EN These meta informations are needed to get Level 3 WAI -->
<meta name="language" content="{$lang}"/>
@ -187,13 +195,25 @@
<xsl:call-template name="mandalay:fancybox"/>
</xsl:template>
<xsl:template match="useJqueryUi">
<xsl:template match="useJQuery">
<script type="text/javascript" src="/assets/jquery.js"/>
</xsl:template>
<xsl:template match="useJQueryUI">
<script type="text/javascript" src="/assets/jquery-ui.min.js"/>
</xsl:template>
<xsl:template match="useMathJax">
<script type="text/javascript" src="/assets/mathjax/MathJax.js?config=TeX-MML-AM_HTMLorMML"/>
</xsl:template>
<xsl:template match="useHTML5shiv">
<xsl:text disable-output-escaping="yes">
&lt;!--[if lt IE 9]&gt;
&lt;script src="/assets/html5shiv.js"/&gt;
&lt;![endif]--&gt;
</xsl:text>
</xsl:template>
<!-- DE Setze den lokalisierten Seitentitel -->
<!-- EN Setup localized page title -->
@ -265,6 +285,45 @@
</xsl:if>
</xsl:template>
<!-- HTML5 elements -->
<xsl:template match="header">
<header>
<xsl:call-template name="mandalay:setIdAndClass"/>
<xsl:apply-templates/>
</header>
</xsl:template>
<xsl:template match="footer">
<footer>
<xsl:call-template name="mandalay:setIdAndClass"/>
<xsl:apply-templates/>
</footer>
</xsl:template>
<xsl:template match="main">
<main>
<xsl:call-template name="mandalay:setIdAndClass"/>
<xsl:apply-templates/>
</main>
</xsl:template>
<xsl:template match="nav">
<nav>
<xsl:call-template name="mandalay:setIdAndClass"/>
<xsl:apply-templates/>
</nav>
</xsl:template>
<xsl:template match="aside">
<aside>
<xsl:call-template name="mandalay:setIdAndClass"/>
<xsl:apply-templates/>
</aside>
</xsl:template>
<!-- HTML5 elements end -->
<!-- ************************************************************************************************************ -->

View File

@ -94,9 +94,11 @@
<line id="articleInJournal/publicationDate">Publikationsdatum</line>
<line id="articleInJournal/reviewed">Referierter Artikel</line>
<line id="articleInJournal/url">Weitere Informationen</line>
<line id="articleInJournal/issue">Ausgabe</line>
<line id="articleInJournal/volume">Jahrgang</line>
<line id="articleInJournal/year">Jahr</line>
<line id="articleInJournal/yearFirstPublished">Erste Veröffentlichung</line>
<line id="articleInJournal/articles">Beiträge</line>
<line id="articleInJournal/reviewed">Referierter Artikel</line>
<line id="collectedVolume/abstract">Zusammenfassung</line>
<line id="collectedVolume/articles">Artikel</line>
@ -230,7 +232,7 @@
<line id="proceedings/year">Jahr</line>
<line id="proceedings/yearFirstPublished">Erste Veröffentlichung</line>
<line id="publisher/place">Ort</line>b
<line id="publisher/place">Ort</line>
<line id="review/abstract">Zusammenfassung</line>
<line id="review/authors">Autorinnen/Autoren</line>

View File

@ -94,7 +94,8 @@
<line id="articleInJournal/issue">Issue</line>
<line id="articleInJournal/volume">Volume</line>
<line id="articleInJournal/year">Year</line>
<line id="articleInJournal/yearFirstPublished">First published</line>
<line id="articleInJournal/articles">Articles</line>
<line id="articleInJournal/reviewed">Reviewed article</line>
<line id="collectedVolume/abstract">Abstract</line>
<line id="collectedVolume/articles">Articles</line>

View File

@ -52,4 +52,7 @@
<entrypoint application="none" class="weblog">content-center.xml</entrypoint>
<entrypoint application="atoz" class="simplePage">content-center.xml</entrypoint>
<entrypoint application="PortletDataProvider" class="simplePage">PortletDataProvider.xml</entrypoint>
</settings>

View File

@ -22,11 +22,12 @@
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:atoz="http://xmlns.redhat.com/atoz/1.0"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de"
xmlns:theme="http://ccm.redhat.com/themedirector"
exclude-result-prefixes="xsl bebop nav mandalay theme"
exclude-result-prefixes="xsl atoz bebop nav mandalay theme"
version="1.0">
<!-- DE globalVars.xsl importieren, um alle wichtigen Einstellungen und Variablen zu erhalten -->
@ -70,8 +71,6 @@
-->
<xsl:output
method="html"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
indent="yes"
encoding="utf-8"
/>

View File

@ -49,7 +49,7 @@
</xsl:template>
-->
<xsl:template name="fragmentLayout">
<xsl:template match="fragmentLayout">
<div class="ccmFragment">
<xsl:apply-templates/>
</div>
@ -139,4 +139,92 @@
<xsl:call-template name="mandalay:socialMedia"/>
</xsl:template>
<xsl:template match="useYAML">
<link rel="stylesheet" type="text/css" href="{$theme-prefix}/yaml/core/base.min.css"/>
<xsl:text disable-output-escaping="yes">
&lt;!--[if lte IE 7]&gt;
&lt;link rel="stylesheet" type="text/css" href="{$theme-prefix}/yaml/core/iehacks.min.css"/&gt;
&lt;![endif]--&gt;
</xsl:text>
<xsl:if test="./accessibleTabs[@enabled='true']">
<script type="text/javascript"
href="{$theme-prefix}/yaml/add-ons/accessible-tabs/jquery.tabs.js"/>
<link rel="stylesheet"
type="text/css"
href="{$theme-prefix}/yaml/add-ons/accessible-tabs/tabs.css"/>
</xsl:if>
<xsl:if test="./microformats[@enabled='true']">
<link rel="stylesheet"
type="text/css"
href="{$theme-prefix}/yaml/add-ons/syncheight/jquery.syncheight.js" />
</xsl:if>
<xsl:if test="./forms">
<link rel="stylesheet"
type="text/css">
<xsl:choose>
<xsl:when test="./forms/@theme">
<xsl:attribute name="href">
<xsl:value-of select="concat($theme-prefix, '/', ./forms/@theme)"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="href">
<xsl:value-of select="concat($theme-prefix, '/yaml/forms/gray-theme.css')"/>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</link>
</xsl:if>
<xsl:if test="not(./navigation[@enabled != 'false'])">
<link rel="stylesheet" type="text/css" href="{$theme-prefix}/yaml/navigation/hlist.css"/>
<link rel="stylesheet" type="text/css" href="{$theme-prefix}/yaml/navigation/vlist.css"/>
</xsl:if>
<xsl:if test="not(./print[@enabled != 'false'])">
<link rel="stylesheet" type="text/css" href="{$theme-prefix}/yaml/print/print.css"/>
</xsl:if>
<xsl:if test="./grid">
<link rel="stylesheet"
type="text/css"
href="{$theme-prefix}/yaml/screen/grid-{./grid}.css" />
</xsl:if>
<xsl:if test="./layout">
<link rel="stylesheet"
type="text/css"
href="{$theme-prefix}/yaml/screen/{concat('screen-', ./layout, '-layout.css')}"/>
</xsl:if>
<xsl:if test="./typography[@enabled='true']">
<link rel="stylesheet"
type="text/css"
href="{$theme-prefix}/yaml/screen/typography.css"/>
</xsl:if>
<xsl:if test="./rtlSupport[@enabled='true']">
<link rel="stylesheet"
type="text/css"
href="{$theme-prefix}/yaml/add-ons/rtl-support/core/base-rtl.min.css"/>
<xsl:if test="./navigation[@enabled='true']">
<link rel="stylesheet"
type="text/css"
href="{$theme-prefix}/yaml/add-ons/rtl-support/navigation/hlist-rtl.css"/>
<link rel="stylesheet"
type="text/css"
href="{$theme-prefix}/yaml/add-ons/rtl-support/navigation/vlist-rtl.css"/>
</xsl:if>
<xsl:if test="./typography[@enabled='true']">
<link rel="stylesheet"
type="text/css"
href="{$theme-prefix}/yaml/add-ons/rtl-support/typography/typography-rtl.css"/>
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:stylesheet>