Opened 6 years ago

Closed 6 years ago

#1732 closed defect (fixed)

Creator sequence breaks in RDF export with > 10 creators

Reported by: fbennett Owned by: mcburton
Priority: major Milestone:
Component: translators Version: 2.0
Keywords: Cc:

Description

Wading into sort issues here again, watch out. :)

Exporting an importing an item with ten or more authors breaks the sequence, such that reimporting the item yields a different sequence of authors than the original item:

http://forums.zotero.org/discussion/14585/bug-report-multiple-authors-in-wrong-order-after-exportimport/#Comment_71974

The RDF serialization method performs a sort that seems to rely on the uri of the predicate. This contains the sequence number of items in the list as an unpadded string suffix, with the expected result when the list of strings is sorted.

The attached patch splits the uri and sorts independently on the base uri (as a string) and the suffix (as a number). It wants further testing, it assumes that the suffix will always be numeric, and may not be the best or the right fix, but it may provide a basis for a short-term fix.

Attachments (1)

rdf-export-author-ordering.patch (1.5 KB) - added by fbennett 6 years ago.

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by fbennett

comment:1 Changed 6 years ago by simon

  • Resolution set to fixed
  • Status changed from new to closed

(In [6998]) closes #1732, Creator sequence breaks in RDF export with > 10 creators (thanks Frank)

Note: See TracTickets for help on using tickets.