<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;}
/* 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;}
h1
        {mso-style-priority:9;
        mso-style-link:"Heading 1 Char";
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:24.0pt;
        font-family:"Times New Roman",serif;
        font-weight:bold;}
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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.Heading1Char
        {mso-style-name:"Heading 1 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 1";
        font-family:"Times New Roman",serif;
        mso-fareast-language:EN-ZW;
        font-weight:bold;}
span.personname
        {mso-style-name:person_name;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@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-ZW link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am trying to import an XML formatted file in Eprints as outlines in <a href="http://www.nottingham.ac.uk/~uazmjg/eprints/archives/000074.html">http://www.nottingham.ac.uk/~uazmjg/eprints/archives/000074.html</a> . Below is the file that I have created using the XML::Writer from metadata harvested from an OAI-compliant repository using the Net::OAI::Harvester .<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><eprints><o:p></o:p></p><p class=MsoNormal><record><o:p></o:p></p><p class=MsoNormal><field name="userid">1</field><o:p></o:p></p><p class=MsoNormal><field name="datestamp">2010-07-26</field><o:p></o:p></p><p class=MsoNormal><field name="type">article</field><o:p></o:p></p><p class=MsoNormal><field name="title">State - Civil Relations and Economic Management: the contribution of the Institute of Development Studies, University of Zimbabwe</field><o:p></o:p></p><p class=MsoNormal><field name="creators"><o:p></o:p></p><p class=MsoNormal> <part name="given">Donald</part><o:p></o:p></p><p class=MsoNormal> <part name="family">Chimanikire</part><o:p></o:p></p><p class=MsoNormal></field><o:p></o:p></p><p class=MsoNormal><field name="divisions">universities</field><o:p></o:p></p><p class=MsoNormal><field name="keywords">civil society</field><o:p></o:p></p><p class=MsoNormal><field name="keywords">state relations</field><o:p></o:p></p><p class=MsoNormal><field name="keywords">economic management</field><o:p></o:p></p><p class=MsoNormal><field name="keywords">Southern Africa</field><o:p></o:p></p><p class=MsoNormal><field name="keywords">Zimbabwe</field><o:p></o:p></p><p class=MsoNormal><field name="eprint_status">archive</field><o:p></o:p></p><p class=MsoNormal><field name="metadata_visibility">show</field><o:p></o:p></p><p class=MsoNormal><field name="full_text_status">none</field><o:p></o:p></p><p class=MsoNormal><field name="URL">http://hdl.handle.net/10646/8</field><o:p></o:p></p><p class=MsoNormal><field name="abstract">Paper presented at a National Workshop sponsored by OSSREA on "Promoting Good Governance and Wider Civil Society Participation in Eastern and Southern Africa: The Case of Zimbabwe", 15 September 2000</field><o:p></o:p></p><p class=MsoNormal></record><o:p></o:p></p><p class=MsoNormal></eprints> <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Now when I import using the command<span style='font-family:"Courier New"'> ./bin/import researchdatabase --verbose --user 1 archive XML output.xml</span><o:p></o:p></p><p class=MsoNormal>Where output.xml is the file with the xml that is shown above, I get the following message:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Use of qw(...) as parentheses is deprecated at /usr/share/eprints3/bin/../perl_lib/Apache/DBI.pm line 264.<o:p></o:p></p><p class=MsoNormal>Use of qw(...) as parentheses is deprecated at /usr/share/eprints3/bin/../perl_lib/Apache/DBI.pm line 288.<o:p></o:p></p><p class=MsoNormal>"my" variable $basename masks earlier declaration in same scope at /usr/share/eprints3/bin/../perl_lib/EPrints/MetaField/Secret.pm line 169.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Starting EPrints Repository.<o:p></o:p></p><p class=MsoNormal>Connecting to DB ... done.<o:p></o:p></p><p class=MsoNormal>Number of records imported: 1<o:p></o:p></p><p class=MsoNormal>525<o:p></o:p></p><p class=MsoNormal>Ending EPrints Repository.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>However, on accessing the record 525, the record has no metadata values that were in the file output.xml. It only contains the auto-generated metadata fields<o:p></o:p></p><h1><span style='font-size:12.0pt'>Article #525 <o:p></o:p></span></h1><p style='margin-bottom:12.0pt'>UNSPECIFIED <em>UNSPECIFIED</em> <o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt'>Full text not available from this Research Database. <o:p></o:p></span></p><table class=MsoNormalTable border=0 cellpadding=0><tr><td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'><p class=MsoNormal align=right style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;text-align:right'><b><span style='font-size:12.0pt'>Publication Type:<o:p></o:p></span></b></p></td><td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'><p class=MsoNormal style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm'><span style='font-size:12.0pt'>Article <o:p></o:p></span></p></td></tr><tr><td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'><p class=MsoNormal align=right style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;text-align:right'><b><span style='font-size:12.0pt'>Submitting User:<o:p></o:p></span></b></p></td><td valign=top style='padding:2.25pt 2.25pt 2.25pt 2.25pt'><p class=MsoNormal style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm'><span class=personname><span style='font-size:12.0pt'>Mr. Research Administrator</span></span><span style='font-size:12.0pt'> <o:p></o:p></span></p></td></tr><tr><td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'><p class=MsoNormal align=right style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;text-align:right'><b><span style='font-size:12.0pt'>Date Submitted:<o:p></o:p></span></b></p></td><td valign=top style='padding:2.25pt 2.25pt 2.25pt 2.25pt'><p class=MsoNormal style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm'><span style='font-size:12.0pt'>26 Feb 2015 18:21<o:p></o:p></span></p></td></tr><tr><td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'><p class=MsoNormal align=right style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;text-align:right'><b><span style='font-size:12.0pt'>Last Modified:<o:p></o:p></span></b></p></td><td valign=top style='padding:2.25pt 2.25pt 2.25pt 2.25pt'><p class=MsoNormal style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm'><span style='font-size:12.0pt'>26 Feb 2015 18:21<o:p></o:p></span></p></td></tr><tr><td style='padding:2.25pt 2.25pt 2.25pt 2.25pt'><p class=MsoNormal align=right style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;text-align:right'><b>URI:<o:p></o:p></b></p></td><td valign=top style='padding:2.25pt 2.25pt 2.25pt 2.25pt'><p class=MsoNormal style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm'><a href="http://rczproject.uz.ac.zw/id/eprint/525">http://rczproject.uz.ac.zw/id/eprint/52</a><o:p></o:p></p></td></tr></table><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>I will appreciate any pointers as to where I am getting it wrong.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZW'>Kind Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZW'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZW'>Admire Mutsikiwa (Mr)<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZW'>ICT Manager<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZW'>Libraries<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZW'>University of Zimbabwe<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZW'><a href="Tel:+263-4-303276">Tel:+263-4-303276</a><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZW'>Mob:+263782476883<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZW'><o:p> </o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style='font-size:9.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-ZW'>“It is easy to dodge our responsibilities, but we cannot dodge the consequences of dodging our responsibilities.” </span></b><span style='mso-fareast-language:EN-ZW'><a href="http://www.goodreads.com/author/show/4867406.Josiah_Charles_Stamp">Josiah Charles Stamp</a></span><b><span style='font-size:9.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-ZW'><o:p></o:p></span></b></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>