Skip to content

Commit d08c4e0

Browse files
committed
extract as refid from EAD
1 parent 0abf5fa commit d08c4e0

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

dspace/src/main/resources/edu/georgetown/library/fileAnalyzer/ead-dao.xsl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
<xsl:value-of select="@id"/>
4343
</xsl:otherwise>
4444
</xsl:choose>
45-
<xsl:value-of select="@id"/>
4645

4746
<xsl:text>&quot;,&quot;</xsl:text>
4847
<!-- empty -->

dspace/src/main/resources/edu/georgetown/library/fileAnalyzer/ead.xsl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<xsl:text>,</xsl:text>
1111
<xsl:text>collection</xsl:text>
1212
<xsl:text>,</xsl:text>
13+
<xsl:text>gu.archivesspace.id</xsl:text>
14+
<xsl:text>,</xsl:text>
1315
<xsl:text>dc.title[en]</xsl:text>
1416
<xsl:text>,</xsl:text>
1517
<xsl:text>dc.coverage.temporal[en]</xsl:text>
@@ -40,6 +42,16 @@
4042
<xsl:text>&quot;,&quot;</xsl:text>
4143
<xsl:value-of select="$collection"/>
4244

45+
<xsl:text>&quot;,&quot;</xsl:text>
46+
<xsl:choose>
47+
<xsl:when test="starts-with(@id, 'aspace_')">
48+
<xsl:value-of select="substring(@id, 8)"/>
49+
</xsl:when>
50+
<xsl:otherwise>
51+
<xsl:value-of select="@id"/>
52+
</xsl:otherwise>
53+
</xsl:choose>
54+
4355
<xsl:text>&quot;,&quot;</xsl:text>
4456
<xsl:value-of select=".//ead:unittitle"/>
4557

0 commit comments

Comments
 (0)