Skip to content

Commit

Permalink
[feature] Manage the duplicate naming introduced in Rosetta.
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-spencer committed Mar 15, 2017
1 parent 229cfc2 commit 3ab40a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/RosettaCSVGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ def csvstringoutput(self, csvlist):
rowdata = rowdata + fielddata + ','
rowdata = rowdata.rstrip(',') + '\n'
csvrows = csvrows + rowdata

#this is the best i can think of because ExLibris have named two fields with the same
#title in CSV which doesn't help us when we're trying to use unique names for populating rows
#replaces SIP Title with Title (DC)
csvrows = csvrows.replace('"Object Type","SIP Title"','"Object Type","Title (DC)"')

sys.stdout.write(csvrows)

for dupe in self.duplicateitemsaddedset:
Expand Down

0 comments on commit 3ab40a8

Please sign in to comment.