How to display dc.description(en) or dc.description(es) depending on the interface language.

115 views
Skip to first unread message

Carlos Campo

unread,
Dec 4, 2022, 10:04:41 AM12/4/22
to DSpace Technical Support
Hello everyone.

I am new to Dspace. I am configuring DSpace to have a web with a bilingual interface (English, Spanish)
Among other things, I have added the dc.description field, both for English and Spanish.

When I navigate to the full item page, I see both fields: dc.description(en) and dc.description(es).
When I navigate to the simple item page, I also see the two fields. However, on this page, the simple item page, I would like to see only the field that corresponds to the interface language. That is, if the interface at a given moment is in Spanish, I would like to see only the dc.description(es) field. However, if the interface at another time is in English, I'd like to see just the dc.description(en) field.

I've been reading the documentation and I see that I can modify the structure of the simple item page by modifying the "untyped-item.component.html" file. There, I can add and remove fields, but how can I make it show only dc.description(en) or dc.description(es) depending on the interface language?

Thank you very much.

Carlos Campo

unread,
Dec 7, 2022, 2:49:00 AM12/7/22
to DSpace Technical Support
Hello,

My question has not received any answer.
Please, would you tell me why?
Is the question insufficiently explained and not understood?
Is it too obvious?
Is it too difficult to answer?

This matter is important to me. I would greatly appreciate any input.

Thank you very much.

Fitchett, Deborah

unread,
Dec 7, 2022, 4:01:11 PM12/7/22
to Carlos Campo, DSpace Technical Support

It’s useful to include the version number you’re using. I’m *guessing* (based on a file you mention which I don’t recognise) that you’re on 7.x.

 

I don’t have enough familiarity with that version yet to be able to answer, but my suspicion is that DSpace doesn’t have the ability to use the interface language as a factor when deciding what metadata fields to display. I could be wrong though!

 

Deborah

 

From: dspac...@googlegroups.com <dspac...@googlegroups.com> On Behalf Of Carlos Campo
Sent: Wednesday, 7 December 2022 8:49 pm
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] Re: How to display dc.description(en) or dc.description(es) depending on the interface language.

 

You don't often get email from hipot...@gmail.com. Learn why this is important

 

Caution: This email originated from outside our organisation. Do not click links or open attachments unless you recognize the sender and know the content is safe.

 

--
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 dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/bb3ae934-be71-44c8-8ffa-112e410add01n%40googlegroups.com.




"The contents of this e-mail (including any attachments) may be confidential and/or subject to copyright. Any unauthorised use, distribution, or copying of the contents is expressly prohibited. If you have received this e-mail in error, please advise the sender by return e-mail or telephone and then delete this e-mail together with all attachments from your system."

Carlos Campo

unread,
Dec 7, 2022, 5:50:06 PM12/7/22
to DSpace Technical Support
Thank you very much for your reply.
You're right. I haven't said which version I'm using
I'm using DSpase 7.4

Carlos Campo

unread,
Dec 12, 2022, 5:53:26 AM12/12/22
to DSpace Technical Support
Hello,

I've located an example of what I want to do.

We can see the simple item page in English, which shows the summary only in English:
https://www.kuleuven.be/onderzoek/portaal/#/projecten/3M160540?hl=en&lang=en

We can also see the simple item page in Dutch, which shows the summary in Dutch.

DSpace Technical Support

unread,
Dec 12, 2022, 11:55:43 AM12/12/22
to DSpace Technical Support
Hi,

No, this isn't currently possible in DSpace 7.  I think it's possible for someone to implement that locally, since obviously DSpace can store fields in different languages.  But, currently, the DSpace UI won't select different language-based fields based on the selected language. 

If someone wanted to dig into this, I do think it'd be possible in the codebase. I also believe that others would likely be interested in this feature for DSpace. But, I think it'd require finding a volunteer to help us figure out how to implement.  It also might be possible for an institution to hire a service provider to build this feature & bring it back to the core codebase. https://dspace.lyrasis.org/rsp/ (as that's another way in with improvements like this can be brought back into the core codebase)

Tim

Reply all
Reply to author
Forward
0 new messages