mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Add shortcut "business" logic to get the key of a metadata field
This commit is contained in:
@@ -40,4 +40,12 @@ public class DCValue
|
||||
|
||||
/** Authority control confidence */
|
||||
public int confidence = Choices.CF_UNSET;
|
||||
|
||||
/**
|
||||
* Get the field in dot notation. i.e. schema.element.qualifier, as in dc.date.issued
|
||||
* @return
|
||||
*/
|
||||
public String getField() {
|
||||
return schema + "." + element + (qualifier==null?"":("." + qualifier));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user