Skip to content

Commit a9d30f5

Browse files
committed
Give <collex:archive> the MJP id of the journal.
1 parent 2a8a8e7 commit a9d30f5

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

mjp2rdf.xsl

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
<!-- Collex REQUIRES "a shorthand reference to the contributing project or journal." -->
3131
<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+
3234

3335
<!-- Collex REQUIRES one or more federation ids. An authorized string for ModNets would be nice
3436
but this will do for now. -->
@@ -113,7 +115,8 @@ Each requies a different kind of RDF.
113115

114116
<!-- A SINGLE <collex:archive> element is REQUIRED. -->
115117
<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'])" />
117120
</collex:archive>
118121

119122
<!-- A SINGLE <dc:title> element is REQUIRED. -->
@@ -332,6 +335,11 @@ Each requies a different kind of RDF.
332335
<xsl:value-of select="concat('http://dl.lib.brown.edu/mjp/teifiles/', $modsid, '.tei.xml')"
333336
/>
334337
</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>
335343

336344

337345

@@ -348,7 +356,8 @@ Each requies a different kind of RDF.
348356

349357
<!-- A SINGLE <collex:archive> element is REQUIRED. -->
350358
<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'])" />
352361
</collex:archive>
353362

354363
<!-- A SINGLE <dc:title> element is REQUIRED. -->

0 commit comments

Comments
 (0)