[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] Export::MultilineCSV
Hi Matt,
For multiple items this line is being called
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Fperl_lib%2FEPrints%2FPlugin%2FExport%2FMultilineCSV.pm%23L47&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca3f950a038194c26743d08d7845e415f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=hntE2jOA9ne9aNV%2B7Dokv9wMgnxlV2rnzgA1B%2Bno5Hc%3D&reserved=0
but for a single item there is no equivalent line
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Fperl_lib%2FEPrints%2FPlugin%2FExport%2FMultilineCSV.pm%23L60&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca3f950a038194c26743d08d7845e415f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=eaT1MZ8Slf4AiFhBhHjvZUbKiSzbvJRiAV4ZcBcbJbY%3D&reserved=0
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 at ecs.soton.ac.uk <eprints-tech-bounces at ecs.soton.ac.uk> On Behalf Of Matthew Brady via Eprints-tech
Sent: 19 December 2019 05:42
To: 'eprints-tech at ecs.soton.ac.uk' <eprints-tech at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20191219/47ff962c/attachment.html