-
Notifications
You must be signed in to change notification settings - Fork 0
/
jats-psychosozial-verlag_to_zpid-psycharchives.xslt
43 lines (38 loc) · 1.69 KB
/
jats-psychosozial-verlag_to_zpid-psycharchives.xslt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.1" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY rsquo "’"> ]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xlink="http://www.w3.org/1999/xlink">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<dublin_core schema="zpid">
<dcvalue element="primarypublication" qualifier="journaltitle" language="">
<xsl:value-of select="/article/front/journal-meta/journal-title-group/journal-title"/>
</dcvalue>
<dcvalue element="primarypublication" qualifier="volume" language="">
<xsl:value-of select="article/front/article-meta/volume"/>
</dcvalue>
<xsl:call-template name="get_journal_issue"/>
<xsl:call-template name="get_journal_article_pages"/>
<dcvalue element="tags" qualifier="visible">Version of Record</dcvalue>
</dublin_core>
</xsl:template>
<xsl:template name="get_journal_issue">
<xsl:if test="article/front/article-meta/issue">
<dcvalue element="primarypublication" qualifier="issue" language="">
<xsl:value-of select="article/front/article-meta/issue"/>
</dcvalue>
</xsl:if>
</xsl:template>
<xsl:template name="get_journal_article_pages">
<xsl:if test="article/front/article-meta/fpage">
<dcvalue element="primarypublication" qualifier="pages" language="">
<xsl:value-of select="article/front/article-meta/fpage"/>
<xsl:if test="article/front/article-meta/lpage">
<xsl:text>–</xsl:text>
<xsl:value-of select="article/front/article-meta/lpage"/>
</xsl:if>
</dcvalue>
</xsl:if>
</xsl:template>
</xsl:stylesheet>