Skip to content

Commit ebfbb51

Browse files
committed
Notizen und Auflagen
1 parent 5d87e6a commit ebfbb51

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

Mapping Notizen 21.docx

122 KB
Binary file not shown.

xsl/konservAuflagen.xsl

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<xsl:stylesheet version="2.0"
2+
xmlns="http://www.mpx.org/npx"
3+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xmlns:npx="http://www.mpx.org/npx"
6+
xmlns:z="http://www.zetcom.com/ria/ws/module"
7+
8+
exclude-result-prefixes="npx z">
9+
10+
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
11+
<xsl:strip-space elements="*" />
12+
13+
<!--
14+
- Konserv. Auflagen in separate Datei
15+
- am 2.7 schlägt Cornelia vor, dass wir die Konservatorischen Auflagen leer lassen, wenn wir sie nicht liefern.
16+
-->
17+
18+
<xsl:template match="/">
19+
<npx version="20210607">
20+
<!--include only smb-freigebene medien!-->
21+
<xsl:apply-templates select="/z:application/z:modules/z:module[@name='Object']/z:moduleItem" />
22+
</npx>
23+
</xsl:template>
24+
25+
<!-- TOP-LEVEL ELEMENTS -->
26+
27+
<xsl:template match="/z:application/z:modules/z:module[@name='Object']/z:moduleItem">
28+
<xsl:variable name="id" select="@id"/>
29+
<xsl:message>
30+
<xsl:value-of select="$id"/>
31+
</xsl:message>
32+
<sammlungsobjekt>
33+
<objId>
34+
<xsl:value-of select="@id"/>
35+
</objId>
36+
<!-- kerservatorische Auflagen -->
37+
<xsl:apply-templates select="z:repeatableGroup[@name='ObjConservationTermsGrp']"/>
38+
</sammlungsobjekt>
39+
</xsl:template>
40+
41+
<!-- felder:
42+
datum,
43+
Status,
44+
Leihfähigkeit,
45+
Schädl. Belast.,
46+
Luftfeuchte,
47+
Temperatur,
48+
Handling,
49+
Verpackung,
50+
Transport,
51+
Lagerung,
52+
Sicherheit,
53+
Präsentation,
54+
MoRASO
55+
Bemerkungen
56+
-->
57+
<xsl:template match="z:repeatableGroup[@name = 'ObjConservationTermsGrp']">
58+
<freigabe>
59+
<xsl:for-each select="z:repeatableGroupItem">
60+
<xsl:text>[</xsl:text>
61+
<xsl:value-of select="z:vocabularyReference[@name = 'TypeVoc']/z:vocabularyReferenceItem/@name"/>
62+
<xsl:text>] </xsl:text>
63+
<xsl:value-of select="z:vocabularyReference[@name = 'ApprovalVoc']/z:vocabularyReferenceItem/@name"/>
64+
<xsl:if test="position()!=last()">
65+
<xsl:text>; </xsl:text>
66+
</xsl:if>
67+
</xsl:for-each>
68+
</freigabe>
69+
</xsl:template>
70+
71+
</xsl:stylesheet>

0 commit comments

Comments
 (0)