EPrints Technical Mailing List Archive

Message: #03044


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Retrieving arrays for export


Welcome to the world of dereferencing in perl :o)
http://www.thegeekstuff.com/2010/06/perl-array-reference-examples/

For a slightly more helpful answer, the best thing is to look at other export plugins and see how they handle multiple fields - maybe looking for 'multiple in here: perl_lib/EPrints/Plugin/Export/Simple.pm might get you started!

Cheers,
John


-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Andrew Beeken
Sent: 19 May 2014 14:37
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Retrieving arrays for export

Hello!

Okay, so I’m writing a new export template at the moment. Basic CSV output, but I want to extract some data that seems to be stored in arrays – namely, ISBN. So, when I extract the ISBN in my export template I get the following: ARRAY(some_hex), where some_hex actually changes every time the output is regenerated. I’ve tried outputting the value with a join command to pipe delimit the data but it doesn’t do anything to the output – any ides?

Andrew

The University of Lincoln, located in the heart of the city of Lincoln, has established an international reputation based on high student satisfaction, excellent graduate employment and world-class research.

The information in this e-mail and any attachments may be confidential. If you have received this email in error please notify the sender immediately and remove it from your system. Do not disclose the contents to another person or take copies.

Email is not secure and may contain viruses. The University of Lincoln makes every effort to ensure email is sent without viruses, but cannot guarantee this and recommends recipients take appropriate precautions.

The University may monitor email traffic data and content in accordance with its policies and English law. Further information can be found at: http://www.lincoln.ac.uk/legal.

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/