[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] multilang fields in EPrints



Hi Tomasz,

I will check to see if multilang fields without "multiple => 1", I 
assumed this would work but maybe there are issues, as I have not 
thoroughly tested the multilang field recently.

I don't expect the multilang fields to work particularly well for other 
export formats, as it is not used in any of the default metadata for 
EPrints.? This could certainly be implemented either by further 
improvements to the export plugins in the core codebase or by extending 
export plugins to better support multilang fields.? I assume by your 
reference to OAI-PMH you are looking at the Dublin Core and similar 
plugins to support the lang attribute.

That eptech thread about importing multilang field is rather tl;dr;.? I 
am not aware of any specific changes to multilang fields with relation 
to import in recent years.? I certainly have not been doing much work on 
multilang fields in EPrints 3.4 in recent releases.? I think you need to 
have a play with exporting and importing multilang fields and report 
back on your experience.? I could test this but I work just be doing 
this in a very generic way to confirm a basic multilang field can be 
exported and then imported and the data for this field in the record 
that was exported looks the same as the data for this field in the 
imported record.

Regards

David Newman


On 27/04/2023 10:55 pm, Tomasz Neugebauer via Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
>
> I?ve been working on recommendations for multilingual support in 
> repositories through a COAR task force, and it?s partly in that 
> context that I?m trying to understand where we?re at with EPrints when 
> it comes to supporting multiple languages.
>
> Specifically, I was wondering about multilingual metadata fields.
>
> I see that we have some documentation here:
>
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FMultilang_field&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C8a19b5966fe8498113de08db4773b9bb%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638182334573328459%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jsRNW%2Bec8DGXbA5K9ftruQR4y86%2Brf%2Fseut0qhF5baE%3D&reserved=0 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FMultilang_field&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C8a19b5966fe8498113de08db4773b9bb%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638182334573328459%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jsRNW%2Bec8DGXbA5K9ftruQR4y86%2Brf%2Fseut0qhF5baE%3D&reserved=0> 
>
>
> But when I tried to add a multilang field to see how and if that would 
> work, I found that it did, when I used the ?multiple? set to 1 
> (otherwise, there?s an error), like this:
>
> {
>
> name => 'title_multilang',
>
> type => 'multilang',
>
> multiple => 1,
>
> fields => [
>
> {
>
> sub_name => 'text',
>
> type => 'text',
>
> },
>
> ],
>
> },
>
> In the EP3 XML export, that looked something like this:
>
> <title_multilang>
>
> ????? <item>
>
> ??????? <text>test</text>
>
> <lang>pl</lang>
>
> ????? </item>
>
> </title_multilang>
>
> But I didn?t find it in any other export format.
>
> Am I correct in understanding that if I were to add multilingual 
> metadata fields, I would also have to modify all of the export 
> plugins? code, including OAI-PMH, to export the multilingual fields 
> correctly (i.e., along with the language name)?? Has this work been 
> done already?
>
> I also found this thread: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eprints.org%2Feptech%2Fmsg05225.html&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C8a19b5966fe8498113de08db4773b9bb%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638182334573328459%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dFkdTPtiW2H%2F0kW7UJy5fpOlzwMciNdfbP9a8RysHOw%3D&reserved=0 
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eprints.org%2Feptech%2Fmsg05225.html&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C8a19b5966fe8498113de08db4773b9bb%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638182334573328459%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dFkdTPtiW2H%2F0kW7UJy5fpOlzwMciNdfbP9a8RysHOw%3D&reserved=0>
>
> which suggested to me that multilingual fields cause problems when 
> importing matadata. Have those issues been resolved since then (2015)?
>
> Thanks to anyone who has some experience or knowledge of this and 
> other multilingual features in EPrints.
>
> Tomasz
>
>
> *** Options:http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C8a19b5966fe8498113de08db4773b9bb%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638182334573328459%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6CwzAOBcKAmhMy7m7tOG%2FnQDSNlh9ZkeJxcfXtMfpOw%3D&reserved=0
> *** EPrints community wiki:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C8a19b5966fe8498113de08db4773b9bb%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638182334573328459%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=v3Qi5Uzb9tgqJJuQFWjx9E7rU6Micd3nwmBTskiMsYA%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20230428/1ffa80ff/attachment-0001.html