<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:x="urn:schemas-microsoft-com:office:excel" 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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.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="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">Hi Dan,<br>
I suspect it may be related to this:<br>
<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fblob%2Fd805362779e1bab2451531061e932c034702b63f%2Fperl_lib%2FEPrints%2FDataObj%2FEPrint.pm%23L247&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd70dd751d0d4477931408d834d154aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=W83boMqWI%2FZFjWmRoS3Avr6Rc9avKv%2FDgRom73LT%2Buc%3D&reserved=0" originalSrc="https://github.com/eprints/eprints3.4/blob/d805362779e1bab2451531061e932c034702b63f/perl_lib/EPrints/DataObj/EPrint.pm#L247" shash="l+KyQ+kHmFTxVBF7bGs7x+xVSokIOhNVZSUgydEjGtQeZf7yDX4mUVVtcc5UESooBkXZ9gHs7gbR2ymbhuPRk5AqE2oj4Zy7DtVh6r2O8qtwLLxH4t+TtUGO108RascCcpyDg9hXRzF/gCMzTbTmVMZnwh46JsmRQLtzJUnqL3o=">https://github.com/eprints/eprints3.4/blob/d805362779e1bab2451531061e932c034702b63f/perl_lib/EPrints/DataObj/EPrint.pm#L247</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">The corresponding block in v3.3 is:<br>
<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Fperl_lib%2FEPrints%2FDataObj%2FEPrint.pm%23L198-L247&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd70dd751d0d4477931408d834d154aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=RhhqkDRf%2BcjKUkS4F8BIt%2BLgjYDlVOsqu%2BS77fk7DeE%3D&reserved=0" originalSrc="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/DataObj/EPrint.pm#L198-L247" shash="W2iDQcfR4PbSV6+4Neye73kZoED89ctgOV4VAmCpJ1m0q617+RcxENxUHedl6yI9kbN6Ld3ccq2WZnOogF8hW3H4Uj+lXrKjWRwWzyy8FMsfwxsQWWA2QJ84pw78QecrKR/TtFxGb7aQ7zxiNd3J6XSRVV0ONZr2Cj5zl6PxJo0=">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/DataObj/EPrint.pm#L198-L247</a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">- which doesn't have the 'export_as_xml=>0,' flag.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">One approach to solve this (entirely untested!) would be to replace the core field in an archive specific config file e.g.:<br>
~/archives/ARCHIVE/cfg/cfg.d/zz_export_item_issues.pl<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">push @{ $c->{fields}->{eprint} }, {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">### a copy of the definition of the field in the first link above, and:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"> export_as_xml => 1,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"> replace_core=>1
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">> </span>
<span lang="EN-US">I’m a sysadm, not a dev.</span><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">I've put the following gist together which might be easier - incase the perl gets mangled in email form:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Fjesusbagpuss%2Fb1720d3ea23ac1ff7201a3263a247713&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd70dd751d0d4477931408d834d154aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=tq0Xxcok5Pj%2FeyNs%2FmC8FtJqv%2BYCKm%2BNpTB3%2BLWnJvY%3D&reserved=0" originalSrc="https://gist.github.com/jesusbagpuss/b1720d3ea23ac1ff7201a3263a247713" shash="u/UDEbV7kFzfyT9706oaP2ExKqJmf4S+OEXPBmbMwmB5OGLg31pgcdv5qgpFJzT4fhEmUJI68c0YoJdaHp9de8AhJI/NZyJUiVdKvezCQte+2KA72qZ4waH7I6gj7OlT6D8fTT/KpPWtA68u2INNJnv+d87bxw5KYSUltH4dsTU=">https://gist.github.com/jesusbagpuss/b1720d3ea23ac1ff7201a3263a247713</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">Put that file in e.g. ~/archives/ARCHIVE/cfg/cfg.d/zz_export_item_issues.pl<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">run bin/epadmin test ARCHIVEID<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">try an export of one eprint - see if it's helped!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">John<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></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">From:</span></b><span lang="EN-US"> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
<b>On Behalf Of </b>Stieneke, Dan via Eprints-tech<br>
<b>Sent:</b> 28 July 2020 17:09<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk<br>
<b>Subject:</b> [EP-tech] EP 3.4.1 + pub flavour doesn't export <item_issues><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Old server: Ubuntu 16.04LTS with EP 3.3.15. Worked great for years.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">migrating to<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">New server: Ubuntu 18.04LTS, apt installed EP 3.4.1 from
<a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdeb.eprints-hosting.org%2F3.4%2Fstable%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd70dd751d0d4477931408d834d154aa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=Udv4mBWdv3EETKcr70tUO%2Bb4Vg5ZkojWTj%2Bdp9fv6tg%3D&reserved=0" originalSrc="http://deb.eprints-hosting.org/3.4/stable/" shash="woPIgZDhRmQkN3D+gNLb9h7Y/9XU611en5BwINW5Xqa9AgpPe04QdlUc7xM/i1kSICONLXwLMvJ0vV52lGSAMJTr4vaCn/3XBuFL9Hx0zqHod/51JURguHURK5dW9p0GHVSLJXr7BUI7UnyZW1USTQ/Mw4fGcCo4Ti2sfX7KgCQ=">
http://deb.eprints-hosting.org/3.4/stable/</a>; manually downloaded & unzipped publication flavor v3.4.1.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">After setup of the new server, to verify that all data came over, I compared a complete XML export from the 3.3.15 server to a complete XML export from the 3.4.1 server, both using the ~/bin/export CLI tool.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The 3.3.15 export correctly contains <item_issues> tags & corresponding subtags. The 3.4.1 server correctly imports the <item_issues>, as they are visible on the 3.4.1 web pages, but it does not export any <item_issues>
tags / subtags at all.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’d like the 3.4.1 export to contain the <item_issues> tags, as next time I do a migration like this I’ll want that data to be moved over to the newer machine.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m a sysadm, not a dev. I have basic perl skills, but looking at ~/perl_lib/EPrints/Plugin/Export/XML.pm, I don’t understand how XML export works or where the actual heavy lifting occurs.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Suggestions?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Dan Stieneke<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">IT Specialist<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">AFM ITSD<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">USDA - ARS - NWISRL<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3793 N 3600 E<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Kimberly, ID 83341<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman",serif"><br>
<br>
<br>
<br>
This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil
or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.
<o:p></o:p></span></p>
</div>
</body>
</html>