EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #08075


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

Re: [EP-tech] Export::MultilineCSV


Hi Matt,

For multiple items this line is being called

https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/Export/MultilineCSV.pm#L47

 

but for a single item there is no equivalent line

 

https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/Export/MultilineCSV.pm#L60

 

The list function outputs a header, then calls the individual item function for each thing in the list, whilst the single item only calls the second function.

Hope that explains it, if not solve your issue.

 

Alan

 

From: eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> On Behalf Of Matthew Brady via Eprints-tech
Sent: 19 December 2019 05:42
To: 'eprints-tech@ecs.soton.ac.uk' <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Export::MultilineCSV

 

Hi All,

 

Staff have come across a discrepancy, with MultilineCSV exports, and I can’t seem to track down the cause and/or a viable resolution…

 

Scenario 1)  Perform an item search, get a list of results returned, select MultilineCSV, --> Export…  The resulting CSV file, contains everything expected… for each item in the search result list…

Scenario 2)  While Logged in, performing editorial tasks, on the ‘Actions’ tab, there is an Export option..  Generating the CSV this way, the same data fields are provided in the CSV file, but obviously only for the single item…

 

The discrepancy is…

Scenario 1 provides a Header row, field names etc… , while Scenario 2 does not.

 

 

Any hints/explanations would be most appreciated..

 

Cheers,

Matt.

__________________________________________________________________
This email (including any attached files) is confidential and is 
for the intended recipient(s) only. If you received this email by 
mistake, please, as a courtesy, tell the sender, then delete this 
email.
 
The views and opinions are the originator's and do not necessarily 
reflect those of the University of Southern Queensland. Although 
all reasonable precautions were taken to ensure that this email 
contained no viruses at the time it was sent we accept no 
liability for any losses arising from its receipt.
 
The University of Southern Queensland is a registered provider 
of education with the Australian Government.
(CRICOS Institution Code QLD 00244B / NSW 02225M, TEQSA PRV12081 )
-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority in relation to its secondary activity of credit broking.