Permalink
Browse files

success

  • Loading branch information...
1 parent 9b90a38 commit 806d25c19d665627c3d176fa3e2f19fee67021d3 @ruebot ruebot committed Mar 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 report_ingest.py
View
@@ -158,7 +158,7 @@
#add mods datastream
mods_file_handle.close()
try:
- book_object.addDataStream(u'MODS', mods_contents.encode('ascii', 'xmlcharrefreplace').decode('utf-8'), label = u'MODS',
+ book_object.addDataStream(u'MODS', mods_contents.decode('utf-8'), label = u'MODS',
mimeType = u'text/xml', controlGroup = u'X',
logMessage = u'Added basic mods meta data.')
logging.info('Added MODS datastream to:' + book_pid)
@@ -191,7 +191,7 @@
mrcxml_file_handle.close()
try:
- book_object.addDataStream(u'MRC-XML', mrcxml_contents.encode('ascii', 'xmlcharrefreplace').decode('utf-8'), label=u'MRC-XML',
+ book_object.addDataStream(u'MRC-XML', mrcxml_contents.decode('utf-8'), label=u'MRC-XML',
mimeType = u'application/xml', controlGroup=u'X',
logMessage = u'Added basic mrc xml.')
logging.info('Added mrc xml datastream to:' + book_pid)

0 comments on commit 806d25c

Please sign in to comment.