EPrints Technical Mailing List Archive

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

Message: #03999


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

[EP-tech] Re: Not Importing other metadata fields using the XML Plugin


Hi Admire

It seems to me, that your using quite an old XML Format (the page you mention is from 2003). Actually your record can be imported like that:

<eprints>
<eprint>
<userid>1</userid>
<date>2010-07-26</date>
<type>article</type>
<title>State - Civil Relations and Economic Management: the contribution of the Institute of Development Studies, University of Zimbabwe</title>
  <creators>
    <item>
      <name>
        <given>Donald</given>
        <family>Chimanikire</family>
         </name>
    </item>
</creators>
<divisions>universities</divisions>
<keywords>civil society</keywords>
<keywords>state relations</keywords>
<keywords>economic management</keywords>
<keywords>Southern Africa</keywords>
<keywords>Zimbabwe</keywords>
<eprint_status>archive</eprint_status>
<metadata_visibility>show</metadata_visibility>
<full_text_status>none</full_text_status>
<official_url>http://hdl.handle.net/10646/8</official_url>>
<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</abstract>
</eprint>
</eprints>

As the default keywords field is a simple textfield there will be warning during the import, that element keywords is appearing multiple times. You may merge those keywords together before the import or modify the field type of keywords in Eprints.

Christian


Am 26.02.2015 um 19:31 schrieb Admire Mutsikiwa <amutsikiwa@uzlib.uz.ac.zw<mailto:amutsikiwa@uzlib.uz.ac.zw>>:

Hi

I am trying to import an XML formatted file in Eprints as outlines in http://www.nottingham.ac.uk/~uazmjg/eprints/archives/000074.html . 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 .

<eprints>
<record>
<field name="userid">1</field>
<field name="datestamp">2010-07-26</field>
<field name="type">article</field>
<field name="title">State - Civil Relations and Economic Management: the contribution of the Institute of Development Studies, University of Zimbabwe</field>
<field name="creators">
        <part name="given">Donald</part>
        <part name="family">Chimanikire</part>
</field>
<field name="divisions">universities</field>
<field name="keywords">civil society</field>
<field name="keywords">state relations</field>
<field name="keywords">economic management</field>
<field name="keywords">Southern Africa</field>
<field name="keywords">Zimbabwe</field>
<field name="eprint_status">archive</field>
<field name="metadata_visibility">show</field>
<field name="full_text_status">none</field>
<field name="URL">http://hdl.handle.net/10646/8</field><http://hdl.handle.net/10646/8%3C/field%3E>
<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>
</record>
</eprints>



Now when I import using the command    ./bin/import   researchdatabase  --verbose    --user 1  archive  XML  output.xml
Where output.xml is the file with the xml that is shown above, I get the following message:


Use of qw(...) as parentheses is deprecated at /usr/share/eprints3/bin/../perl_lib/Apache/DBI.pm line 264.
Use of qw(...) as parentheses is deprecated at /usr/share/eprints3/bin/../perl_lib/Apache/DBI.pm line 288.
"my" variable $basename masks earlier declaration in same scope at /usr/share/eprints3/bin/../perl_lib/EPrints/MetaField/Secret.pm line 169.

Starting EPrints Repository.
Connecting to DB ... done.
Number of records imported: 1
525
Ending EPrints Repository.

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
Article #525

UNSPECIFIED UNSPECIFIED

Full text not available from this Research Database.
Publication Type:

Article

Submitting User:

Mr. Research Administrator

Date Submitted:

26 Feb 2015 18:21

Last Modified:

26 Feb 2015 18:21

URI:

http://rczproject.uz.ac.zw/id/eprint/52<http://rczproject.uz.ac.zw/id/eprint/525>



I will appreciate any pointers as to where I am getting it wrong.


Kind Regards,

Admire Mutsikiwa (Mr)
ICT Manager
Libraries
University of Zimbabwe
Tel:+263-4-303276<tel:+263-4-303276>
Mob:+263782476883

“It is easy to dodge our responsibilities, but we cannot dodge the consequences of dodging our responsibilities.”  Josiah Charles Stamp<http://www.goodreads.com/author/show/4867406.Josiah_Charles_Stamp>

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/