EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #03043
< 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
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Retrieving arrays for export
- From: Ian Stuart <Ian.Stuart@ed.ac.uk>
- Date: Mon, 19 May 2014 14:56:29 +0100
On 19/05/14 14:37, Andrew Beeken wrote:
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?
## Not sure the $eprint->get call.... but you know that bit already
if ('ARRAY' eq ref $eprint->get($field) ) {
$value = join ', ', @{ $eprint->get($field) }; # get the list
$value = q{"} . $value . {"} # quote 'cos of commas
} else {
$value = $eprint->get($field) # string is unchanged
}
.... or something similar
--
Ian Stuart.
Developer: ORI, RJ-Broker, and OpenDepot.org
Bibliographics and Multimedia Service Delivery team,
EDINA,
The University of Edinburgh.
http://edina.ac.uk/
This email was sent via the University of Edinburgh.
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
- References:
- [EP-tech] Retrieving arrays for export
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Retrieving arrays for export
- Prev by Date: [EP-tech] Retrieving arrays for export
- Next by Date: [EP-tech] Re: Retrieving arrays for export
- Previous by thread: [EP-tech] Retrieving arrays for export
- Next by thread: [EP-tech] Re: Retrieving arrays for export
- Index(es):
