Revision 45985
Added by Sandro La Bruzzo about 7 years ago
efg2edm.xml | ||
---|---|---|
12 | 12 |
<SCRIPT> |
13 | 13 |
<TITLE>Efg to EDM</TITLE> |
14 | 14 |
<CODE> |
15 |
<![CDATA[ |
|
16 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
15 |
<![CDATA[<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
17 | 16 |
xmlns:efg="http://www.europeanfilmgateway.eu/efg" xmlns:dc="http://purl.org/dc/elements/1.1/" |
18 | 17 |
xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xs="http://www.w3.org/2001/XMLSchema" |
19 | 18 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri" |
... | ... | |
62 | 61 |
<xsl:choose> |
63 | 62 |
<xsl:when test="$body = 'true' and $keywords = 'true'"> |
64 | 63 |
<!--exslt:node-set($body)/*">--> |
65 |
<xsl:apply-templates select=".//efg:efgEntity/efg:avcreation"/> |
|
66 |
<xsl:apply-templates select=".//efg:efgEntity/efg:nonavcreation"/> |
|
64 |
<oai:record xmlns:dri="http://www.driver-repository.eu/namespace/dri" |
|
65 |
xmlns:oai="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
|
66 |
<oai:header> |
|
67 |
<dri:objIdentifier> |
|
68 |
<xsl:value-of select=".//dri:objIdentifier"/> |
|
69 |
</dri:objIdentifier> |
|
70 |
<dri:recordIdentifier> |
|
71 |
<xsl:value-of select=".//dri:recordIdentifier"/> |
|
72 |
</dri:recordIdentifier> |
|
73 |
<dri:repositoryId> |
|
74 |
<xsl:value-of select=".//dri:repositoryId"/> |
|
75 |
</dri:repositoryId> |
|
76 |
<dri:datasourceprefix> |
|
77 |
<xsl:value-of select=".//dri:datasourceprefix"/> |
|
78 |
</dri:datasourceprefix> |
|
79 |
<oai:identifier> |
|
80 |
<xsl:value-of select=".//oai:identifier"/> |
|
81 |
</oai:identifier> |
|
82 |
</oai:header> |
|
83 |
<oai:metadata> |
|
84 |
<xsl:apply-templates select=".//efg:efgEntity/efg:avcreation"/> |
|
85 |
<xsl:apply-templates select=".//efg:efgEntity/efg:nonavcreation"/> |
|
86 |
</oai:metadata> |
|
87 |
</oai:record> |
|
67 | 88 |
</xsl:when> |
68 | 89 |
<xsl:otherwise> |
69 | 90 |
|
... | ... | |
174 | 195 |
<xsl:if test="string-length(//efg:isShownBy[1]) > 0"> |
175 | 196 |
|
176 | 197 |
<edm:isShownBy> |
177 |
<xsl:value-of select="."/>
|
|
198 |
<xsl:value-of select="//efg:isShownBy[1]"/>
|
|
178 | 199 |
</edm:isShownBy> |
179 | 200 |
|
180 | 201 |
</xsl:if> |
... | ... | |
186 | 207 |
</xsl:for-each> |
187 | 208 |
<xsl:if test="string-length(//efg:isShownAt[1]) > 0"> |
188 | 209 |
<edm:isShownAt> |
189 |
<xsl:value-of select="."/>
|
|
210 |
<xsl:value-of select="//efg:isShownAt[1]"/>
|
|
190 | 211 |
</edm:isShownAt> |
191 | 212 |
</xsl:if> |
192 | 213 |
|
Also available in: Unified diff
updated EFG 2 EDM transformation rule and the wf to use it