29
29
30
30
<!-- Collex REQUIRES "a shorthand reference to the contributing project or journal." -->
31
31
<xsl : variable name =" project-id" as =" xs:string" >mjp</xsl : variable >
32
+ <!-- Update (1/25/2015): We're now supplying a journal-specific collex:archive value (see below) -->
33
+
32
34
33
35
<!-- Collex REQUIRES one or more federation ids. An authorized string for ModNets would be nice
34
36
but this will do for now. -->
@@ -113,7 +115,8 @@ Each requies a different kind of RDF.
113
115
114
116
<!-- A SINGLE <collex:archive> element is REQUIRED. -->
115
117
<collex : archive >
116
- <xsl : value-of select =" $project-id" />
118
+ <!-- <xsl:value-of select="$project-id"/> -->
119
+ <xsl : value-of select =" mjp:archive-id(mods:identifier[@type='local'])" />
117
120
</collex : archive >
118
121
119
122
<!-- A SINGLE <dc:title> element is REQUIRED. -->
@@ -332,6 +335,11 @@ Each requies a different kind of RDF.
332
335
<xsl : value-of select =" concat('http://dl.lib.brown.edu/mjp/teifiles/', $modsid, '.tei.xml')"
333
336
/>
334
337
</xsl : function >
338
+
339
+ <xsl : function name =" mjp:archive-id" >
340
+ <xsl : param name =" mjpid" as =" xs:string" />
341
+ <xsl : value-of select =" concat('mjp_', substring-before($mjpid, ':'))" />
342
+ </xsl : function >
335
343
336
344
337
345
@@ -348,7 +356,8 @@ Each requies a different kind of RDF.
348
356
349
357
<!-- A SINGLE <collex:archive> element is REQUIRED. -->
350
358
<collex : archive >
351
- <xsl : value-of select =" $project-id" />
359
+ <!-- <xsl:value-of select="$project-id"/> -->
360
+ <xsl : value-of select =" mjp:archive-id(ancestor::mods:mods/mods:identifier[@type='local'])" />
352
361
</collex : archive >
353
362
354
363
<!-- A SINGLE <dc:title> element is REQUIRED. -->
0 commit comments