Skip to content

Commit

Permalink
Rename label 'Resource Role'
Browse files Browse the repository at this point in the history
- Rename label 'Resource Role' to "CPF to Resource Relation Type'
  • Loading branch information
glassjoseph committed May 19, 2022
1 parent b4f2cca commit 5bde51f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/org/snaccooperative/exporters/SNACConstellationItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ public SNACConstellationItem(
resourceRelation.setOperation("insert");
resourceRelation.setResource(resource);

// find and add optional associated resource role in this row
String resourceRoleColumn = schema.getReverseColumnMappings().get("resource role");
// find and add optional associated 'cpf to resource relation type' in this row
String resourceRoleColumn = schema.getReverseColumnMappings().get("cpf to resource relation type");

if (resourceRoleColumn != null) {
String resourceRole =
Expand All @@ -289,7 +289,7 @@ public SNACConstellationItem(

continue;

case "resource role": // queried alongside "resource id"
case "cpf to resource relation type": // queried alongside "resource id"
continue;

case "related snac cpf id":
Expand Down Expand Up @@ -419,7 +419,7 @@ public String getPreviewText() {
preview += snacText + ": " + _constellation.getRelations() + "\n";
break;

// TODO: Add Resource ID, Resource Role.
// TODO: Add Resource ID, cpf to resource relation type.
// TODO: Add Related CPFs
}
}
Expand Down Expand Up @@ -626,7 +626,7 @@ private Term createResourceRoleTerm(String resourceRole) {

default:
logger.warn(
"createResourceRoleTerm(): invalid/unhandled resource role: [" + resourceRole + "]");
"createResourceRoleTerm(): invalid/unhandled cpf to resource relation type: [" + resourceRole + "]");
return null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ SNACSchemaAlignmentDialog.getSNACModel = function() {
{ name: "SNAC CPF ID", required: false, tooltip: "SNAC identifier for the CPF entity. Leave blank if the CPF is NOT in SNAC." },
{ name: "CPF to CPF Relation Type", required: false, tooltip: "Nature of the relation of the CPF entity with the related CPF entity. The following values may be used: associatedWith, correspondedWith" },
{ name: "Related SNAC CPF ID", required: false, tooltip: "SNAC ID of a CPF entity in SNAC related to the CPF entity. Repeatable in relation to entity." },
{ name: "Resource Role", required: false, tooltip: "Role of the CPF entity in relation to the Resource. The following values may be used: contributorOf, creatorOf, editorOf, referencedIn"},
{ name: "CPF to Resource Relation Type", required: false, tooltip: "Role of the CPF entity in relation to the Resource. The following values may be used: contributorOf, creatorOf, editorOf, referencedIn"},
{ name: "SNAC Resource ID", required: false, tooltip: "SNAC ID for a related Resource in SNAC." } //TODO: SNAC RESOURCE ID rename
];

Expand Down

0 comments on commit 5bde51f

Please sign in to comment.