OAI Export of translations

41 views
Skip to first unread message

Franck Dupont

unread,
Nov 20, 2017, 9:10:59 AM11/20/17
to AtoM Users
Hi,

I want to export translations (in addition of english) in the same OAI feed.

I'm able to retrieve all translation codes (es, fr, de) for item 

But I wonder how to retrieve a translation from QubitInformationObject object (without change sf_culture in URL).

For example, is there a way to force "fr" culture to $record before call sfDcPlugin ?

<?php echo get_component('sfDcPlugin', 'dc', array('resource' => $record)) ?>

Thanks

Franck.

Dan Gillean

unread,
Nov 20, 2017, 3:27:33 PM11/20/17
to ICA-AtoM Users
Hi Franck, 

I will ask our developers to take a look and see if they have any general recommendations. As far as I'm aware, there's no way to do this currently without code changes. 

Regards, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-users+unsubscribe@googlegroups.com.
To post to this group, send email to ica-atom-users@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/7b64edd7-a6f3-4ce9-b1c0-f915be9ad237%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Franck Dupont

unread,
Nov 21, 2017, 9:16:16 AM11/21/17
to AtoM Users
Hi Dan,

What do you think of :

 - Add an additional parameter to OAI URLs : index.php/;oai?verb=ListRecords&metadataPrefix=oai_dc&Language=fr 
 - Retrieve the "Language" param in the plugin 
 - Change the culture of current user
 $this->getUser()->setCulture($language);

Thanks.

Franck.


Le lundi 20 novembre 2017 21:27:33 UTC+1, Dan Gillean a écrit :
Hi Franck, 

I will ask our developers to take a look and see if they have any general recommendations. As far as I'm aware, there's no way to do this currently without code changes. 

Regards, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

On Mon, Nov 20, 2017 at 9:10 AM, Franck Dupont <kyf...@gmail.com> wrote:
Hi,

I want to export translations (in addition of english) in the same OAI feed.

I'm able to retrieve all translation codes (es, fr, de) for item 

But I wonder how to retrieve a translation from QubitInformationObject object (without change sf_culture in URL).

For example, is there a way to force "fr" culture to $record before call sfDcPlugin ?

<?php echo get_component('sfDcPlugin', 'dc', array('resource' => $record)) ?>

Thanks

Franck.

--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.

Dan Gillean

unread,
Nov 21, 2017, 10:21:34 AM11/21/17
to ICA-AtoM Users
Hi Franck, 

That might work. However, I am pretty sure that we would not want to add such a customization to the public branch of AtoM because it involves adding a parameter not supported by the OAI-PMH standard. If we were going to add functionality that supported this, I think it would likely be a configuration setting in Admin > Settings > OAI Repository to return all translations of the same resource or not, so the OAI protocol, which harvesters expect to follow the standard, would not be changed directly. 

Still I'm very curious about how this goes. I'm still trying to get some developer time for them to respond, but let us know how you progress! 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-users+unsubscribe@googlegroups.com.
To post to this group, send email to ica-atom-users@googlegroups.com.

Dan Gillean

unread,
Jan 12, 2018, 10:39:10 AM1/12/18
to ICA-AtoM Users
Hi again Franck, 

Sorry for the long delay, but I've finally gotten an initial response from one of our developers. Unfortunately, the advice is limited - without digging deeply into the specification and the code to analyze what's possible, there's not too much we can add (and this deeper digging is beyond what we can provide for basic user forum support). Here's what I got back: 

We don't have a multi-culture export at the moment, so this could only be achieved by changing the Symfony culture before the DC or EAD plugin is called to write the XML. But the "sf_culture" param can't be sent in the OAI URLs because it's not recognized as a legal argument.
As a workaround, if you can save and reuse the session, you can change the sf_culture in a non OAI URL and subsequent requests using that session will return the records in that culture. You can test it by using the same browser, going to ".../index.php/?sf_culture=fr" and then to ".../index.php/;oai?verb=ListRecords&metadataPrefix=oai_dc".
I'd guess that having multi-culture DC and EAD export would be the ideal solutions but, if multiple `<oai_dc:dc>` elements per record metadata are allowed, we could get the available cultures for each record and repeat that section per culture, which would be easier than multi-culture exports.

This is pretty similar to what I was already saying. As for the last part, I'm not sure that including multiple <oai_dc:dc> elements per record in a ListRecords response would be a proper response - and for a harvester, these would likely be treated as separate records with the same identifier, causing issues (as this is a non-standard approach). For these same reasons, we would be unlikely to add such features to AtoM. However, if you want to dig into this possibility, you might consider making a post in the OAI-PMH user forum, here: 
You might also consider investigating and modifying the AtoM API instead - since the API is our own specification, there's more leeway, and we could probably devise a way to return all available cultures for a single record in a response. There is also already support for a culture param. See: 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

Reply all
Reply to author
Forward
Message has been deleted
0 new messages