<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Verdana",sans-serif;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        mso-fareast-language:EN-US;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi Matt,<o:p></o:p></p>
<p class="MsoNormal">For multiple items this line is being called<o:p></o:p></p>
<p class="MsoNormal"><a href="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" originalSrc="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/Export/MultilineCSV.pm#L47" shash="is1lHUh9AQLnJn/OY1b9XN2dQKsyuEO17HHDcDVW/PFCs0cNSuWpLN5uAlop+fSDXKkQY9RGXiDfZAKeOkZqXPF24YHZbkk1qB5lDIBWVUHu0KI5FWoYj0GcR8v3WaEA+97CfuJeKvHmwJ/+DPLkQbEhOFP1GjPRllLy0nTIb/0=">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/Export/MultilineCSV.pm#L47</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">but for a single item there is no equivalent line<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a href="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" originalSrc="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/Export/MultilineCSV.pm#L60" shash="zrKrmZ6zr/m2v0djHomhxIBL4vFiHjgjia+85XtcxFOZGCFjZlFnruYiXnbcsQBoMxaeX6ylBFwU7AWmOR1wF1LGh6Jl4NC089IyX8AxGYiarSNLgBXEKvC6gc8oQuubBnExnq6g74nA3Qksvg1Mx60aTODrSErBBfMYCVbHWVY=">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/Export/MultilineCSV.pm#L60</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal">Hope that explains it, if not solve your issue.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Alan<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-GB"> eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk>
<b>On Behalf Of </b>Matthew Brady via Eprints-tech<br>
<b>Sent:</b> 19 December 2019 05:42<br>
<b>To:</b> 'eprints-tech@ecs.soton.ac.uk' <eprints-tech@ecs.soton.ac.uk><br>
<b>Subject:</b> [EP-tech] Export::MultilineCSV<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Verdana",sans-serif">Hi All,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Verdana",sans-serif">Staff have come across a discrepancy, with MultilineCSV exports, and I can’t seem to track down the cause and/or a viable resolution…
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Verdana",sans-serif">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… <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Verdana",sans-serif">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…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Verdana",sans-serif">The discrepancy is…
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Verdana",sans-serif">Scenario 1 provides a Header row, field names etc… , while Scenario 2 does not.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Verdana",sans-serif">Any hints/explanations would be most appreciated..<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Verdana",sans-serif">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Verdana",sans-serif">Matt.<o:p></o:p></span></p>
<pre><span lang="EN-AU">__________________________________________________________________<o:p></o:p></span></pre>
<pre><span lang="EN-AU">This email (including any attached files) is confidential and is <o:p></o:p></span></pre>
<pre><span lang="EN-AU">for the intended recipient(s) only. If you received this email by <o:p></o:p></span></pre>
<pre><span lang="EN-AU">mistake, please, as a courtesy, tell the sender, then delete this <o:p></o:p></span></pre>
<pre><span lang="EN-AU">email.<o:p></o:p></span></pre>
<pre><span lang="EN-AU"><o:p> </o:p></span></pre>
<pre><span lang="EN-AU">The views and opinions are the originator's and do not necessarily <o:p></o:p></span></pre>
<pre><span lang="EN-AU">reflect those of the University of Southern Queensland. Although <o:p></o:p></span></pre>
<pre><span lang="EN-AU">all reasonable precautions were taken to ensure that this email <o:p></o:p></span></pre>
<pre><span lang="EN-AU">contained no viruses at the time it was sent we accept no <o:p></o:p></span></pre>
<pre><span lang="EN-AU">liability for any losses arising from its receipt.<o:p></o:p></span></pre>
<pre><span lang="EN-AU"><o:p> </o:p></span></pre>
<pre><span lang="EN-AU">The University of Southern Queensland is a registered provider <o:p></o:p></span></pre>
<pre><span lang="EN-AU">of education with the Australian Government.<o:p></o:p></span></pre>
<pre><span lang="EN-AU">(CRICOS Institution Code QLD 00244B / NSW 02225M, TEQSA PRV12081 )<o:p></o:p></span></pre>
</div>
-- 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.
</body>
</html>