Difference between revisions of "XML:AuthorMerge"

From ISFDB
Jump to navigation Jump to search
m (+cat)
(→‎Example: syntax highlighting)
Line 28: Line 28:
 
==Example==
 
==Example==
  
 +
<source lang="xml">
 
  <?xml version="1.0" encoding="iso-8859-1" ?>
 
  <?xml version="1.0" encoding="iso-8859-1" ?>
 
  <IsfdbSubmission>
 
  <IsfdbSubmission>
Line 39: Line 40:
 
   </AuthorMerge>
 
   </AuthorMerge>
 
  </IsfdbSubmission>
 
  </IsfdbSubmission>
 +
</source>
  
 
[[Category:Data Submission Formats|AuthorMerge]]
 
[[Category:Data Submission Formats|AuthorMerge]]

Revision as of 06:12, 22 May 2008

Introduction

The AuthorMerge submission specifies how two author records should be merged.

Required Tags

The submission contains three required tags:

  • KeepId - Required tag. Specifies which author record will be retained.
  • DropId - Required tag. Specifies which author record will be dropped.
  • Range - Required tag. Specifies the range of changes:
    • TITLES - Only merges authors an the canonical_author table.
    • PUBS - Only merges authors in the pub_authors and aspub_author tables.
    • ALL - Applies changes to all author mapping tables.

Optional Tags

The AuthorMerge submission also contains a number of optional tags. When a merging conflict occurs, these tags are used to specify which version of the data should be used:

  • Canonical - Use when a conflict exists between the canonical names.
  • Legalname - Use when a conflict exists between the legal names.
  • Birthplace - Use when a conflict exists between the birthplaces.
  • Birthdate - Use when a conflict exists between the birthdates
  • Deathdate - Use when a conflict exists between the deathdates.
  • Wikipedia - Use when a conflict exists between Wikipedia URLs.
  • Imdb - Use when a conflict exists between IMDB URLs.

Example

 <?xml version="1.0" encoding="iso-8859-1" ?>
 <IsfdbSubmission>
   <AuthorMerge>
      <Submitter>Rkihara</Submitter>
      <Subject>Elliott Dold/Elliott Dold</Subject>
      <KeepId>71501</KeepId>
      <DropId>84301</DropId>
      <Range>ALL</Range>
      <Legalname>84301</Legalname>
   </AuthorMerge>
 </IsfdbSubmission>