Good morning, 

I finally managed to load the "oaire.version" field and make it visible in 
the OAI. 

It seems I had created the template:

*    <xsl:template*

*        match="doc:element[@name='oaire']/doc:element[@name='version']"*

*        mode="oaire">*

*        <oaire:version>*

*            <xsl:value-of 
select="./doc:element/doc:field[@name='value']"/>*

*        </oaire:version>*

*    </xsl:template>*


but it was missing the application of that template with the following 
configuration:

            <xsl:apply-templates

            
select="doc:metadata/doc:element[@name='oaire']/doc:element[@name='version']" 
mode="oaire"/>

 Finally, I restarted Tomcat, cleared OAI cache and perform a complete OAI 
import, and now the field oaire:version is visible in the OAI: 

*systemctl restart tomcat*

*./dspace oai clean-cache*

*./dspace oai import -c*


I hope this helps someone. Best regards.

El lunes, 18 de noviembre de 2024 a las 15:30:54 UTC+1, Javi Rojo Díaz 
escribió:

> Hello again.
>
> I forgot to mention that the version of DSpace is 7.6. Any small help 
> would be greatly appreciated. 
>
> Thank you and best regards.
>
> El miércoles, 13 de noviembre de 2024 a las 15:45:09 UTC+1, Javi Rojo Díaz 
> escribió:
>
>> Good afternoon. 
>>
>> I am having trouble adding the field `oaire.version` to the OAI. I see 
>> that DSpace does not add this OpenAIRE field by default, so I added the 
>> following configuration in 
>> `/dspace/dspace/config/crosswalks/oai/metadataFormats/oai_openaire.xsl:
>>
>>
>>
>>
>>
>>
>>
>>
>> *<xsl:template        
>> match="doc:element[@name='oaire']/doc:element[@name='version']"        
>> mode="oaire">        <oaire:version>            <xsl:value-of 
>> select="./doc:element/doc:field[@name='value']"/>        </oaire:version>  
>>   </xsl:template>*
>>
>>
>> Then, I performed a full OAI import by running `./dspace oai import -c`, 
>> but the field `oaire:version` still does not appear in the OAI.
>>
>> I also tried reindexing Solr and restarting Tomcat, but it still doesn’t 
>> show up. 
>>
>> Am I missing any other steps? Could you help me? Here is the test item in 
>> the OAI. I should mention that the item has the field `oaire.version` 
>> created in DSpace:
>>
>>
>> https://repositorio.deusto.es/server/oai/openaire4?verb=GetRecord&identifier=oai:repositorio.deusto.es:20.500.14454/1809&metadataPrefix=oai_openaire
>>
>> Thank you very much.
>>
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/56e9a397-bd97-44d8-95f2-cd00504e38e9n%40googlegroups.com.

Reply via email to