Hi,

I am working on a quality control tool using a curation task that checks 
each authority controlled metadata, reports anomalies and optionally fix 
them.  
Basically, for each MetadataValue that is supposed to be connected with an 
authority (in dspace.cfg), it checks:

1) if a MetadataValue's authority is still known by the authority provider 
(ChoiceAuthority) or if it has been removed from the external authority 
source

2) if MetadataValue's text_value is equals to the value returned by the 
authority provider for a given authority key.

In order to check case 2) I need to retrieve the authority's value, however 
it seems that ChoiceAuthority interface is unable to return that, because 
getLabel() method doesn't return the real authority's value, but the 
"canonical user-visible label" as it says in the docs, which may or may not 
be equals to authority's value. Also getMatches() and getBestMatch() 
methods receive a String parameter and not an authority key.

So, how can I get the authority's value for a given authority key?
Perhaps ChoiceAuthority interface should have a new method, 
getAuthority(String key), which returns a Choice for a given authority key.

Thank you
Santi

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to