EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #05962
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Quick export plugin question
- To: Robin Sylvestre <robin.sylvestre@polymtl.ca>, "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Quick export plugin question
- From: Adam Field <Adam.Field@jisc.ac.uk>
- Date: Mon, 26 Sep 2016 08:45:38 +0000
Cool – I’ve never used tree_to_utf8 with extra arguments. I learned something today
J From: Robin Sylvestre <robin.sylvestre@polymtl.ca> Thanks everyone for your help! I tweaked Adam’s code a bit and I managed to get exactly what I wanted with: $data->{B} = EPrints::Utils::tree_to_utf8($dataobj->render_value('divisions') , undef , undef , undef , 1) if $dataobj->exists_and_set('divisions'); Have a nice weekend! Robin De : Adam Field [mailto:Adam.Field@jisc.ac.uk]
Depending on the structure of your subject tree, you might get away with: $data->{B} = EPrints::Utils::tree_to_utf8($dataobj->render_value(‘divisions’)) if $dataobj->exists_and_set(‘divisions’); From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Robin Sylvestre <robin.sylvestre@polymtl.ca> Hello everyone, I’m wondering if someone could help me here. Using an export plugin, I would like to export a value from a subject tree. Currently, the code is:
$data->{B} = $dataobj->get_value( "divisions" ) if $dataobj->exists_and_set( "divisions" ); This works, but it exports the “subject ID string” rather than the rendered subject.
How can I export the associated subject instead of the ID? Our archive is multilingual but these “subjects” are in only one language. Thanks! Robin Sylvestre Technicien en documentation Services techniques et systèmes informatisés Bibliothèque Louise-Lalonde-Lamarre École Polytechnique de Montréal Tél.: 514-340-4711 poste 3743
|
- References:
- Re: [EP-tech] Quick export plugin question
- From: Adam Field <Adam.Field@jisc.ac.uk>
- Re: [EP-tech] Quick export plugin question
- From: Robin Sylvestre <robin.sylvestre@polymtl.ca>
- Re: [EP-tech] Quick export plugin question
- Prev by Date: Re: [EP-tech] Quick export plugin question
- Next by Date: Re: [EP-tech] Quick export plugin question
- Previous by thread: Re: [EP-tech] Quick export plugin question
- Next by thread: Re: [EP-tech] Quick export plugin question
- Index(es):