Skip to content

Commit 7082af5

Browse files
committed
abstract column setting
1 parent d08c4e0 commit 7082af5

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

  • dspace/src/main
    • edu/georgetown/library/fileAnalyzer/importer
    • resources/edu/georgetown/library/fileAnalyzer

dspace/src/main/edu/georgetown/library/fileAnalyzer/importer/EAD2DC.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public Stats create(String key) {
6262
.create(EAD2DCStatsItems.class);
6363
public static String P_COLL = "Collection";
6464
public static String P_RIGHTS = "RIGHTS";
65+
public static String P_REFCOL = "refid-column-name";
6566

6667

6768
public EAD2DC(FTDriver dt) {
@@ -72,6 +73,9 @@ public EAD2DC(FTDriver dt) {
7273
this.ftprops.add(new FTPropString(dt, this.getClass().getSimpleName(),
7374
P_RIGHTS, P_RIGHTS,
7475
"dc.rights statement",""));
76+
this.ftprops.add(new FTPropString(dt, this.getClass().getSimpleName(),
77+
P_REFCOL, P_REFCOL,
78+
"Metadata registry field name to store the archival object refid","gu.archivesspace.id"));
7579
}
7680

7781
public String toString() {
@@ -91,6 +95,7 @@ public ActionResult importFile(File selectedFile) throws IOException {
9195
HashMap<String, Object> params = new HashMap<>();
9296
params.put("collection", this.getProperty(P_COLL));
9397
params.put("rights", this.getProperty(P_RIGHTS));
98+
params.put("refcol", this.getProperty(P_REFCOL));
9499
Timer timer = new Timer();
95100
TreeMap<String, Stats> types = new TreeMap<String, Stats>();
96101

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
<xsl:output method="text"/>
66
<xsl:param name="collection"></xsl:param>
77
<xsl:param name="rights">All Rights Reserved by Georgetown University Library.</xsl:param>
8+
<xsl:param name="refcol">gu.archivesspace.id</xsl:param>
89
<xsl:template match="/">
910
<xsl:text>id</xsl:text>
1011
<xsl:text>,</xsl:text>
1112
<xsl:text>collection</xsl:text>
1213
<xsl:text>,</xsl:text>
13-
<xsl:text>gu.archivesspace.id</xsl:text>
14+
<xsl:value-of select="$refcol"/>
1415
<xsl:text>,</xsl:text>
1516
<xsl:text>dc.title[en]</xsl:text>
1617
<xsl:text>,</xsl:text>

0 commit comments

Comments
 (0)