EPrints Technical Mailing List Archive

Message: #00815


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

[EP-tech] Importing records by XML still defective with --update?


Hi,

I recently updated to EPrints version 3.3.10 hoping that the issue with the disrespected --update parameter will be solved, so all supplied metadata is processed, first and foremost eprintid. Hurray, that one works indeed, and also documents and subjects, but not the rest. Did I miss something?

My command is: bin/import heidok --enable-file-imports --enable-web-imports --user opus --update --enable-import-fields --verbose eprint XML /tmp/opus_10544.xml

Attached to this post:
* opus_10544.xml: Export XML generated by a custom script in the domain of our present repository software to be migrated * heidok-eprint-10544-0.xml: This data represent the record before any import had been tried (a totally different record as eprintid was not respected in 3.3.8) * heidok-oprint-10544-1.xml: bin/import above; only documents added and subjects changed! * heidok-eprint-10544-2.xml: Erased record prior to reimport. Results are as they should be

It is not so big a problem for me to have records erased before another bin/import run (anyway, there won't be any content-exchanging reimports in the productive system). I just suppose that is not intended, why else there would be --update at all, hence I thought that might be a bug and posted this :-)


Kind regards,
Florian



--
UB Heidelberg (Altstadt)
Plöck 107-109, 69117 HD
- Informationstechnik
- WWW-Redaktion
Tel. 06221 / 54 3550
http://www.ub.uni-heidelberg.de/

<!-- This data represent the record before any import had been tried -->
<?xml version='1.0' encoding='utf-8'?>
<eprints xmlns='http://eprints.org/ep2/data/2.0'>
  <eprint id='http://[...]/heidok/id/eprint/10544'>
    <eprintid>10544</eprintid>
    <rev_number>1</rev_number>
    <eprint_status>archive</eprint_status>
    <userid>9</userid>
    <dir>disk0/00/01/05/44</dir>
    <datestamp>2012-04-13 07:54:34</datestamp>
    <lastmod>2012-04-13 07:54:34</lastmod>
    <status_changed>2012-04-13 07:54:34</status_changed>
    <type>HD.PhdThesisAb</type>
    <metadata_visibility>show</metadata_visibility>
    <creators>
      <item>
        <name>
          <family>Ndira</family>
          <given>Simon</given>
        </name>
      </item>
    </creators>
    <title>Assessment of the effect of an EHR system in developing countries (Uganda) on data quality and staff satisfaction, as an indirect contributor to the reduction of maternal mortality - a qualitative and quantitative comparative study</title>
    <ispublished>pub</ispublished>
    <subjects>
      <item>610</item>
    </subjects>
    <divisions>
      <item>051001</item>
    </divisions>
    <adv_faculty>af-05</adv_faculty>
    <full_text_status>none</full_text_status>
    <keywords>Medizinische Biometrie und Informatik</keywords>
    <abstract_translated>
      <lang>ger</lang>
    </abstract_translated>
    <date>2010</date>
    <date_type>published</date_type>
    <ppn_swb>-</ppn_swb>
    <own_urn>urn:nbn:de:bsz:16-opus-115762</own_urn>
    <date_accepted>2010-09-08</date_accepted>
    <advisor>
      <family>Wetter</family>
      <given>T.</given>
      <honourific>Prof. Dr.</honourific>
    </advisor>
    <language>eng</language>
  </eprint>
</eprints>
<!-- Erased record prior to reimport. Results are as they should be: -->
<?xml version='1.0' encoding='utf-8'?>
<eprints xmlns='http://eprints.org/ep2/data/2.0'>
  <eprint id='http://[...]/heidok/id/eprint/10544'>
    <eprintid>10544</eprintid>
    <rev_number>1</rev_number>
    <documents>
      <document id='http://[...]/heidok/id/document/54'>
        <docid>54</docid>
        <rev_number>1</rev_number>
        <files>
          <file id='http://[...]/heidok/id/file/12124'>
            <fileid>12124</fileid>
            <datasetid>document</datasetid>
            <objectid>54</objectid>
            <filename>duersch_2010_dp499.pdf</filename>
            <mime_type>application/pdf</mime_type>
            <hash>ef6ed6fe46b37693990564a52d4d397e</hash>
            <hash_type>MD5</hash_type>
            <filesize>328084</filesize>
            <mtime>2012-06-29 10:13:49</mtime>
            <url>http://[...]/heidok/10544/1/duersch_2010_dp499.pdf</url>
          </file>
        </files>
        <eprintid>10544</eprintid>
        <pos>1</pos>
        <placement>1</placement>
        <format>application/pdf</format>
        <language>en</language>
        <security>public</security>
        <main>duersch_2010_dp499.pdf</main>
      </document>
    </documents>
    <eprint_status>archive</eprint_status>
    <userid>9</userid>
    <dir>disk0/00/01/05/44</dir>
    <datestamp>2012-06-29 10:13:49</datestamp>
    <lastmod>2012-06-29 10:13:49</lastmod>
    <status_changed>2012-06-29 10:13:49</status_changed>
    <type>workingPaper</type>
    <metadata_visibility>show</metadata_visibility>
    <creators>
      <item>
        <name>
          <family>Duersch</family>
          <given>Peter</given>
        </name>
      </item>
      <item>
        <name>
          <family>Oechssler</family>
          <given>Jörg</given>
        </name>
      </item>
      <item>
        <name>
          <family>Schipper</family>
          <given>Burkhard C.</given>
        </name>
      </item>
    </creators>
    <title>Unbeatable Imitation</title>
    <ispublished>pub</ispublished>
    <subjects>
      <item>330</item>
    </subjects>
    <divisions>
      <item>181000</item>
    </divisions>
    <full_text_status>public</full_text_status>
    <keywords>Imitate-the-best , learning , symmetric games , relative payoffs , zero- sum games.</keywords>
    <abstract>We show that for many classes of symmetric two-player games, the simple decision rule &amp;quot;imitate-the-best&amp;quot; can hardly be beaten by any other decision rule. We provide necessary and sufficient conditions for imitation to be unbeatable and show that it can only be beaten by much in games that are of the rock-scissors-paper variety. Thus, in many interesting examples, like 2x2 games, Cournot duopoly, price competition, rent seeking, public goods games, common pool resource games, minimum effort coordination games, arms race, search, bargaining, etc., imitation cannot be beaten by much even by a very clever opponent.</abstract>
    <abstract_translated>
      <lang>eng</lang>
    </abstract_translated>
    <class>
      <scheme>jel</scheme>
      <labels>C72, C73, D43.</labels>
    </class>
    <date>2010</date>
    <date_type>published</date_type>
    <schriftenreihe>
      <cluster_id>sr-3</cluster_id>
      <order>0499</order>
    </schriftenreihe>
    <ppn_swb>321820983</ppn_swb>
    <own_urn>urn:nbn:de:bsz:16-opus-105444</own_urn>
    <language>eng</language>
  </eprint>
</eprints>
<?xml version="1.0"  encoding="utf-8"?>
<eprints>
    <eprint xmlns="http://eprints.org/ep2/data/2.0";>
        <title>Unbeatable Imitation</title>
        <abstract>We show that for many classes of symmetric two-player games, the simple decision rule &amp;quot;imitate-the-best&amp;quot; can hardly be beaten by any other decision rule. We provide necessary and sufficient conditions for imitation to be unbeatable and show that it can only be beaten by much in games that are of the rock-scissors-paper variety. Thus, in many interesting examples, like 2x2 games, Cournot duopoly, price competition, rent seeking, public goods games, common pool resource games, minimum effort coordination games, arms race, search, bargaining, etc., imitation cannot be beaten by much even by a very clever opponent.</abstract>
        <date>2010</date>
        <eprintid>10544</eprintid>
        <ppn_swb>321820983</ppn_swb>
        <language>eng</language>
        <keywords>Imitate-the-best , learning , symmetric games , relative payoffs , zero- sum games.</keywords>
        <abstract_translated>
            <lang>eng</lang>
        </abstract_translated>
        <class>
            <scheme>jel</scheme>
            <labels>C72, C73, D43.</labels>
        </class>
        <subjects>
            <item>330</item>
        </subjects>
        <own_urn>urn:nbn:de:bsz:16-opus-105444</own_urn>
        <schriftenreihe>
            <cluster_id>sr-3</cluster_id>
            <order>0499</order>
        </schriftenreihe>
        <divisions>
            <item>181000</item>
        </divisions>
        <creators>
            <item>
                <name>
                    <given>Peter</given>
                    <family>Duersch</family>
                </name>
            </item>
            <item>
                <name>
                    <given>Jörg</given>
                    <family>Oechssler</family>
                </name>
            </item>
            <item>
                <name>
                    <given>Burkhard C.</given>
                    <family>Schipper</family>
                </name>
            </item>
        </creators>
        <type>workingPaper</type>
        <documents>
            <document>
                <main>duersch_2010_dp499.pdf</main>
                <format>application/pdf</format>
                <security>public</security>
                <files>
                    <file>
                        <filename>duersch_2010_dp499.pdf</filename>
                        <filesize>328084</filesize>
                        <url>http://archiv.ub.uni-heidelberg.de/volltextserver/volltexte/2010/10544/pdf/duersch_2010_dp499.pdf</url>
                    </file>
                </files>
            </document>
        </documents>
        <eprint_status>archive</eprint_status>
        <metadata_visibility>show</metadata_visibility>
        <full_text_status>public</full_text_status>
        <ispublished>pub</ispublished>
        <date_type>published</date_type>
    </eprint>
</eprints>
<!-- bin/import command cf. post: only documents added and subject changed! -->
<?xml version='1.0' encoding='utf-8'?>
<eprints xmlns='http://eprints.org/ep2/data/2.0'>
  <eprint id='http://[...]/heidok/id/eprint/10544'>
    <eprintid>10544</eprintid>
    <rev_number>2</rev_number>
    <documents>
      <document id='http://[...]/heidok/id/document/48'>
        <docid>48</docid>
        <rev_number>1</rev_number>
        <files>
          <file id='http://[...]/heidok/id/file/12115'>
            <fileid>12115</fileid>
            <datasetid>document</datasetid>
            <objectid>48</objectid>
            <filename>duersch_2010_dp499.pdf</filename>
            <mime_type>application/pdf</mime_type>
            <hash>ef6ed6fe46b37693990564a52d4d397e</hash>
            <hash_type>MD5</hash_type>
            <filesize>328084</filesize>
            <mtime>2012-06-29 10:10:12</mtime>
            <url>http://[...]/heidok/10544/1/duersch_2010_dp499.pdf</url>
          </file>
        </files>
        <eprintid>10544</eprintid>
        <pos>1</pos>
        <placement>1</placement>
        <format>application/pdf</format>
        <language>en</language>
        <security>public</security>
        <main>duersch_2010_dp499.pdf</main>
      </document>
    </documents>
    <eprint_status>archive</eprint_status>
    <userid>9</userid>
    <dir>disk0/00/01/05/44</dir>
    <datestamp>2012-04-13 07:54:34</datestamp>
    <lastmod>2012-06-29 10:10:13</lastmod>
    <status_changed>2012-04-13 07:54:34</status_changed>
    <type>HD.PhdThesisAb</type>
    <metadata_visibility>show</metadata_visibility>
    <creators>
      <item>
        <name>
          <family>Ndira</family>
          <given>Simon</given>
        </name>
      </item>
    </creators>
    <title>Assessment of the effect of an EHR system in developing countries (Uganda) on data quality and staff satisfaction, as an indirect contributor to the reduction of maternal mortality - a qualitative and quantitative comparative study</title>
    <ispublished>pub</ispublished>
    <subjects>
      <item>330</item>
    </subjects>
    <divisions>
      <item>051001</item>
    </divisions>
    <adv_faculty>af-05</adv_faculty>
    <full_text_status>public</full_text_status>
    <keywords>Medizinische Biometrie und Informatik</keywords>
    <abstract_translated>
      <lang>ger</lang>
    </abstract_translated>
    <date>2010</date>
    <date_type>published</date_type>
    <ppn_swb>-</ppn_swb>
    <own_urn>urn:nbn:de:bsz:16-opus-115762</own_urn>
    <date_accepted>2010-09-08</date_accepted>
    <advisor>
      <family>Wetter</family>
      <given>T.</given>
      <honourific>Prof. Dr.</honourific>
    </advisor>
    <language>eng</language>
  </eprint>
</eprints>