Solução 2 - TEDE2
De IBICT
Para corrigir o seguinte erro, que ocorre na importação de dados para o TEDE2:
- java.lang.IllegalArgumentException: The metadata field "xxx" requires an authority key but none was provided. Vaue="null"
Devem ser efetuados os seguintes passos:
1) Pare o Tomcat;
2) Apagar o conteúdo da pasta [dspace-base]/imports;
3) Comentar as linhas 1653 à 1678 no arquivo [dsapce-base]/config/dspace.cfg:
choices.plugin.dc.subject.cnpq = common_cnpq choices.presentation.dc.subject.cnpq = suggest choices.closed.dc.subject.cnpq = true authority.controlled.dc.subject.cnpq = true authority.required.dc.subject.cnpq = true ## same idea for dc.publisher.program choices.plugin.dc.publisher.program = common_publisher_programs choices.presentation.dc.publisher.program = suggest choices.closed.dc.publisher.program = true authority.controlled.dc.publisher.program = true authority.required.dc.publisher.program = true ## same idea for dc.publisher.department choices.plugin.dc.publisher.department = common_publisher_department choices.presentation.dc.publisher.department = suggest choices.closed.dc.publisher.department = true authority.controlled.dc.publisher.department = true authority.required.dc.publisher.department = true ## same idea for dc.description.sponsorship choices.plugin.dc.description.sponsorship = common_sponsorship choices.presentation.dc.description.sponsorship = suggest choices.closed.dc.description.sponsorship = true authority.controlled.dc.description.sponsorship = true authority.required.dc.description.sponsorship = true
4) Após salve a edição do arquivo;
5) Inicie o Tomcat;
6) Refaça a importação;
7) Não esquecer de retirar os comentários das linhas, após o término da importação dos itens. Caso isso não seja feito, o auto-completar de alguns campos estará desativado.