Hi All,

I am trying to Migrate my Old Documents Into Invenio following
this:http://invenio-demo.cern.ch/help/admin/howto-migrate and an example
demobibdata.xml inside the directory [invenio installation
directory]/var/tmp/. So I created the attached  xml file (uploader.xml)
and run the command : bibupload -i uploader.xml . Unfortunately I get the
error shown below.
##########ERROR Uploading ##########################################
2012-05-29 12:33:52 --> Task #17 started.
2012-05-29 12:33:52 --> Input file '/home/adminuser/uploader.xml', input
mode 'insert'.
2012-05-29 12:33:52 --> Error: [Errno 13] Permission denied:
'/home/adminuser/uploader.xml'
2012-05-29 12:33:52 --> Exiting.
2012-05-29 12:33:52 --> Task #17 finished. [ERROR]
##################################################################

Can anyone please help out pointing out where i went wrong. I understand
one can create an old data text file (datadump.txt) as in the URL above
and then create the data format file dump.cfg file also and convert own
format into XML MARC by running the commands: bibconvert -cdatadump.cfg <
datadump.txt > datadump.xml. But what is in the datadump.cfg and
datadump.txt file (Sample please any one)? What about the datadump.xml? Is
the data in my uploader.xml file isn't suppose to be the same as that in
the datadump.xml file generated by the bibconvert command?

I presume the demobibdata.xml (Same format as in datadump.xml file created
above) file can directly be used to upload the demo record by simply
running the bibupload -i demobibdata.xml commands, hence why I created a
similar file and straight-away ran the commands bibupload -i uploader.xml
for my case. Am I wrong?

Please guide me.

Regards.
Lerato
<?xml version="1.0" encoding="UTF-8"?>
<collection xmlns="http://www.loc.gov/MARC21/slim";>
    <datafield tag="088" ind1=" " ind2=" ">
      <subfield code="a">apr032007</subfield>
    </datafield>
    <datafield tag="245" ind1=" " ind2=" ">
      <subfield code="a">The Test Document submission using BatchUploader</subfield>
    </datafield>
    <datafield tag="700" ind1=" " ind2=" ">
      <subfield code="a">Lerato J. Mohapi</subfield>
    </datafield>
    <datafield tag="520" ind1=" " ind2=" ">
      <subfield code="a">Test Document submission by Lerato J. Mohapi.</subfield>
    </datafield>
    <datafield tag="300" ind1=" " ind2=" ">
      <subfield code="a">8</subfield>
    </datafield>
    <datafield tag="041" ind1=" " ind2=" ">
      <subfield code="a">English</subfield>
    </datafield>
    <datafield tag="269" ind1=" " ind2=" ">
      <subfield code="c">03/04/2007</subfield>
    </datafield>
    <datafield tag="653" ind1="1" ind2=" ">
      <subfield code="a">test</subfield>
    </datafield>
    <datafield tag="856" ind1="0" ind2=" ">
      <subfield code="f">/home/adminuser/DOCS/apr032007.pdf</subfield>
    </datafield>
    <datafield tag="856" ind1="4" ind2=" ">
	<subfield code="u">http://localhost/data/files/APR032007.pdf</subfield>
	<subfield code="z">Access to files</subfield>
    </datafield>
    <datafield tag="980" ind1=" " ind2=" ">
      <subfield code="a">TESTCOLLECTION</subfield>
    </datafield>
</collection>

Reply via email to